System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

after lvextend making the added space active. How to do this

 
HAQBAHU
Occasional Contributor

after lvextend making the added space active. How to do this

i have created a physical volume, then add this physical volume in existing volume group. Then i have extended a logical volume in this volume group by adding the 9GB space in it. This volume group is a SWAP vol grp. It is showing the new size after adding space but on OS level when i see the swap space usinf "free" command it is showing the old swap size. please help.........regards.....Adeel
5 REPLIES
Alexander Chuzhoy
Honored Contributor

Re: after lvextend making the added space active. How to do this

Did you try the following:
swapoff
mkswap
swapon
Robert Walker_8
Valued Contributor

Re: after lvextend making the added space active. How to do this

HAQBAHU,

After creating new swap space as mentioned above (mkswap etc), you will have to add to /etc/fstab (this will ensure it is available next reboot), then swapon -a.

swapon -s will show mounted swap files.

Robert.
avizen9
Esteemed Contributor

Re: after lvextend making the added space active. How to do this

refer below link, its having enough info, will take less then 10 min for this task,

http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-swap-adding.html

HAQBAHU
Occasional Contributor

Re: after lvextend making the added space active. How to do this

thanks

my RHEL5 system cannot see memory more then 3.5 GB. I have 8 GB Memeory in my system. can you please suggest


Regards,
Adeel
HAQBAHU
Occasional Contributor

Re: after lvextend making the added space active. How to do this

done