# swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 reserve - 391 -391 memory 1938 628 1310 32% total 14226 1019 13207 7% - 0 - # lvcreate -L 1024 -n swap2 /dev/vg01 Logical volume "/dev/vg01/swap2" has been successfully created with character device "/dev/vg01/rswap2". Logical volume "/dev/vg01/swap2" has been successfully extended. Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf # swapon -p 1 /dev/vg01/swap2 # swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 dev 1024 0 1024 0% 0 - 1 /dev/vg01/swap2 reserve - 391 -391 memory 1938 628 1310 32% total 15250 1019 14231 7% - 0 - # swapoff /dev/vg01/swap2 # swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 reserve - 391 -391 memory 1938 628 1310 32% total 14226 1019 13207 7% - 0 - # lvremove /dev/vg01/swap2 The logical volume "/dev/vg01/swap2" is not empty; do you really want to delete the logical volume (y/n) : y Logical volume "/dev/vg01/swap2" has been successfully removed. Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
What do you think about this Article? Add your Opinion..! EmoticonEmoticon