|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: IT Resource Center (support_feedback
us-support.external.hp.com)Date: Sun Jul 15 2001 - 10:11:51 CDT
HP Support Information Digests
===============================================================================
o IT Resource Center World Wide Web Service
---------------------------------------------------
If you subscribed through the IT Resource Center and would
like to be REMOVED from this mailing list, access the
IT Resource Center on the World Wide Web at:
http://www.itresourcecenter.hp.com/
Login using your IT Resource Center User ID and Password.
Then select Support Information Digests (located under
Maintenance and Support). You may then unsubscribe from the
appropriate digest.
===============================================================================
Digest Name: monthly HP-UX technical tips digest
Created: Sun Jul 15 3:10:03 PDT 2001
Table of Contents:
Document ID Title
--------------- -----------
3200070937 SYS ADM: How to create Swap or Dump logical volumes
The documents are listed below.
-------------------------------------------------------------------------------
Document ID: 3200070937
Date Loaded: 20010704
Title: SYS ADM: How to create Swap or Dump logical volumes
PROBLEM
Please describe how to create swap or dump logical volumes
on an HP-UX 11.0 computer.
CONFIGURATION
Operating System - HP-UX
Version - 11.0
Subsystem - SYS ADM
RESOLUTION
To create a dump logical volume, do the following:
Note: The dump devices have to be part of vg00.
1. Create a contiguous logical volume inside vg00 with bad
block reallocation turned off:
lvcreate -C y -r n /dev/vg00
2. Turn on the dump device for the logical volume just
created:
lvlnboot -d /dev/vg00/lvolX
To create a swap logical volume, do the following:
Note: The swap and dump can be created on the same logical
volumes. The swap devices do not need to be part of
vg00, but they can be.
1. Create a contiguous logical volume:
lvcreate -C y /dev/vgX
2. Turn swap on in the logical volume:
swapon /dev/vgX/lvolY
IMPORTANT: The default priority for swap is "1". It is a
recommended to have all the swap devices set to
the same priority.
3. Edit the /etc/fstab so that swap will be turned on at
boot-up; add the following line:
/dev/vgX/lvolY ... swap defaults 0 2
NOTE: If you want to remove swap or change the priority of
swap, then it is necessary to edit the /etc/fstab and
then reboot the system.
The difference between file system swap and device swap is as
follows:
File system swap:
o can be configured dynamically.
o allows a process to use an existing file system if it
needs more than the designated device swap space.
o is used only when device swap space is insufficient to
meet demand-paging needs.
o consumes a variable amount of space because it only uses
that portion of a file system that it needs.
Once a file system has been enabled for file system swap, it is
not possible to unmount that file system until the swap is
disabled at the next reboot. It is possible to limit file system
swap to a fixed size to prevent it from consuming too much space.
<!-- ALT KEYWORDS -->
-----End of Document ID: 3200070937------------------------------------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]