1828415 Members
3175 Online
109977 Solutions
New Discussion

Re: Swap size

 
SOLVED
Go to solution
Karthikeyan.j
Frequent Advisor

Swap size

Hi All
i have a issue we have created a swap partition on /dev/cciss/c0d0p2 of 4 GB and pv has been created on remaining space ie 65Gb and the sizes are as follows
/dev/cciss/c0d0p1 / 1Gb
/dev/cciss/c0d0p2 swap 4 GB

pv 65 GB
vg 65 Gb
lvs
lvol1 /usr 10 GB
lvol2 /var 10Gb
lvol3 /home 1 Gb
lvol4 /opt 10GB

Now the thing is i have create a swap space of 10 Gb not 4 Gb ,, the requirement is it should be on a normal partition not lvm .

Regards
Karthik
3 REPLIES 3
Hemmetter
Esteemed Contributor

Re: Swap size

Hi Karthik

Create the swap-partition on another disk.

Otherwise you have to destroy your c0d0p3 partition to resize it ( c0d0p2 as well )

rgds
HGH




Steven E. Protter
Exalted Contributor

Re: Swap size

Shalom,

You can increase the size of the current swap partition.

lvextend
ext2online (resize2fs if RH5 or above FC6)

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
Hemmetter
Esteemed Contributor
Solution

Re: Swap size

Hi

Steven:
due to the requirement ( some "standard managed server"-definition )
Karthik has to have this swap on a "fdisk-partition" not a LV-partition aka lvol.

dont forget mkswap(8)

rgds
HGH