| « Clariion: Commands for Navisphere CLI | How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ? » |
Apr
21
HP-UX : How To Create Swap - Command Line
HP-UX
To create swap, we need a contiguous space on a disk / LUN.
Create vg01:
pvcreate /dev/rdsk/c12t0d0
pvcreate /dev/rdsk/c12t2d0
vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/c12t0d0 /dev/dsk/c12t2d0
vgchange -a y /dev/vg01
lvcreate -C y -L 16384 -n lvswap /dev/vg01
/usr/sbin/swapon -f -p 3 /dev/vg01/lvswap
add to /etc/fstab:
/dev/vg01/lvswap ... swap pri=3 0 0
2 comments
-
§ ashish
said on : 04/26/11 @ 23:24
Good post -
§ ashish
said on : 04/26/11 @ 23:27
Nice work
Recent comments