1850496 Members
2649 Online
104054 Solutions
New Discussion

Re: Device Swap

 
Javier Ortiz Guajardo
Frequent Advisor

Device Swap

I have two swap areas in vg00 lvol2(1800 MB) and lvol10(1200Mb).
I need space in vg00 and decide to remove lvol2. I comment the entry in /etc/fstab and then reboot the system, but after reboot i see the lvol2 again as swap device.

i know the system must have at least one device swap in vg00. but i want to lvol10 to be the device swap from the system.

What can i do to remove the lvol2 from vg00?

Thanks
The obstacles are those things that the people see when they left to see their goals.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Device Swap

The easy way.

Sam

Disks and Filesystems

Swap


Select the device you want to deactivate

Use actions off the menu to deactivate.

You will have to boot again but this time all the housekeeping will be done for you.

Do make sure swap is at least half of RAM or you may get some nasty error messages back from your system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
KapilRaj
Honored Contributor

Re: Device Swap

SEP,

that is the primary swap and i think it can not be removed like that. after all it needs to be contegeous along with boot & root. If u want to re-size, we will need to re-define the boot,swap etc

easy job is to get rid of lvol10

Kaps
Nothing is impossible
RAC_1
Honored Contributor

Re: Device Swap

after you comment out the entry in /etc/fstab, you will have to do lvlnboot -s /dev/vg00/lvol10
lvlnboot -R and check it with lvlnboot -v

Also you will have to tune kernel parameter maxswapchunks to reflect new swap area. (total swap space on system)

Reboot and your are done.

Anil
There is no substitute to HARDWORK
Rita C Workman
Honored Contributor

Re: Device Swap

I do not recommend doing this....if you need space back for vg00, then reduce the space on lvol10....not lvol2.

Seems to me there was an old rule that said.." if a logical volume was to be used for root, primary swap, or dump, the physical extents must be contiguous."


Rgrds,
Rita
Geoff Wild
Honored Contributor

Re: Device Swap

I agree with others - do NOT remove lvol2.

Best to remove lvol10.

This is best done in SAM - and requires a reboot.

Put your lvol2 back in the fstab file.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sridhar Bhaskarla
Honored Contributor

Re: Device Swap

Hi Javie,

You cannot remove lvol2 as it is primary swap and is enabled by the 'lvlnboot' command not through /etc/fstab.

You can remove lvol10. Simply comment it out in /etc/fstab and reboot the system and then remove that LV.

If you have pseudo_swap on, then it is possible to reduce the primary swap also, but I wouldn't suggest that procedure as there is a good chance to mess up the system.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try