Adding swap device from a logical volume in HP-Ux
1) Use swapinfo command to view the current status of swap devices.
#swapinfo
2) Create a new logical volume called lv-swap, in the vg01 volume group, to be used as a secondary swap device.
#lvcreate -L 1000 -C y -n lv-swap vg01
3) Edit the /etc/fstab file to add the swap device.
#vi /etc/fstab
Add the line: /dev/vg01/lv-swap /swap swap 0 0
4) Activate the new swap device.
#swapon –a
5) Finally, check the swapinfo for the newly added swap device.
#swapinfo
1) Use swapinfo command to view the current status of swap devices.
#swapinfo
2) Create a new logical volume called lv-swap, in the vg01 volume group, to be used as a secondary swap device.
#lvcreate -L 1000 -C y -n lv-swap vg01
3) Edit the /etc/fstab file to add the swap device.
#vi /etc/fstab
Add the line: /dev/vg01/lv-swap /swap swap 0 0
4) Activate the new swap device.
#swapon –a
5) Finally, check the swapinfo for the newly added swap device.
#swapinfo
No comments:
Post a Comment