1830730 Members
2486 Online
110015 Solutions
New Discussion

swap space

 
SOLVED
Go to solution
Donna Powell
Advisor

swap space

I am in the process of redoing my filesystem layout. I have two existing vg's, vg00 and vg01. I want to remove vg01 completely using vgexport, but there is a lv that was created for swap space. Is there a way to deactivate the swap space so that I can recreate this lv to used for something else. I want to put the new swap space in vg02 on lvol1
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: swap space

Hi Donna:

Comment the entry in /etc/fstab with a leading '#' and reboot then only your primary swap on vg00 will be active.
If it ain't broke, I can fix that.
Craig Rants
Honored Contributor

Re: swap space

Donna,
There is no way to get rid of swap space without rebooting. Comment the entry out of /etc/fstab and reboot.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
James R. Ferguson
Acclaimed Contributor

Re: swap space

Hi Donna:

While you can add swap without rebooting (assuming that you have an adequate 'maxswapchunks' kernel setting), to deactivate it you must boot. Simply remove the secondary swap specification from /etc/fstab and reboot. Afterwards you will be able to 'lvremove' the logical volume to which it was assigned.

Regrads!

...JRF...
Deshpande Prashant
Honored Contributor

Re: swap space

Hi
To free up the swap lv, you will have to comment the entry in /etc/fstab and reboot the machine.

Thanks.
Prashant.
Take it as it comes.
Roger Baptiste
Honored Contributor

Re: swap space

hi,

Since swap is used by the system dynamically, you cannot
delete it on-line.

Reboot is the only option.
But make sure that you
comment out or remove the
swap entry from the /etc/fstab file , before
you reboot. Otherwise, the
swap will get mounted/enabled
again!

-raj
Take it easy.