1827214 Members
2656 Online
109716 Solutions
New Discussion

primary swap question

 
kholikt
Super Advisor

primary swap question

I was told to create a 20GB swap on a separate disk.

/vg01/swap

Just to find out is this possible to create a primary swap on vg01 other than the rootvg.

If so howto??
abc
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor

Re: primary swap question

Hi,

vg00 is always activated at boot time because it holds the root, primary swap, and dump partitions. However, other VGs will not have been activated yet.

Thus, the answer is no. Only the root VG (vg00) can hold the primary swap.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Gillard_2
Honored Contributor

Re: primary swap question

No, primary swap must be in vg00. You can enable secondary device swap on other volume groups through "swap" entries in /etc/fstab.

I'm also curious why you feel you need as much as 20Gig of swap? How much physical memory do you have on your system?

Regards,
Steve
kholikt
Super Advisor

Re: primary swap question

If this is the case. Is this possible that I put the swap into a separate disk but in the same vg00.

If so, how could I done the mirroring
abc
Animesh Chakraborty
Honored Contributor

Re: primary swap question

Hi,
Use SAM to create a new swap of 20 gb on vg01 and keep the prority same.
Can you post your swapinfo -atm output ?

Cheers
Animesh
Did you take a backup?
Bill Hassell
Honored Contributor

Re: primary swap question

I would be VERY concerned as to why you need 20 Gb of swap space. Are you planning on running 15 Gb worth of processes? If not, this 20Gb space has just been donated to the bit-fairy because it will never be used. Perhaps an application vendor told you to do this based on very outdated information?


Bill Hassell, sysadmin
Josh_13
Super Advisor

Re: primary swap question

i agree with bill, there is a big problem if you were told that you need 15 gb of swap space for a single program. is this a server? if so i can see the ned for a large swap space, but 20 gb still seems high. that's practically a hd dedicated to swap.

outside of reinstalling the os, there is no way to increase swap space. i recently needed to increase it to install a program. i made a secondary swap space with the same priority. the secondary space is 3 times the size of the first. i now have 2 gb of swap total.

could you have been asked to extend it to 2.0 gb of swap? that sounds much more reasonable.

-Josh