1833589 Members
4390 Online
110061 Solutions
New Discussion

Re: quick ques on swap

 
Chris Fadrowski
Super Advisor

quick ques on swap

I added a logical volume called swap 2 on a different volume group (vg01) on a different disk than vg00. I need to make an entry in /etc/fstab for swap2. I am not sure what to enter in fstab for this. can someone tell me what the entry should look like?

also, i have 16gb of RAM, but only 10gig of swap. I think i should be okay, but that's about all the disk i have. any suggestions?
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: quick ques on swap

Here's an example from one of my unix machines for a secondary swap area.

/dev/vg07/lvol2 ... swap pri=1 0 0

John Poff
Honored Contributor

Re: quick ques on swap

Hi,

The amount of swap you configure really depends on the applications you are running and how much memory they reserve. Just keep an eye on your swap usage and see how it runs. That will be your best indicator as to how much swap you really need.

JP
MANOJ SRIVASTAVA
Honored Contributor

Re: quick ques on swap

Hi Chris

The entry should look like this :


/dev/vg00/swap2 ... swap pri=0 0 0
/dev/vg00/lvol9 ... swap pri=0 0 0

you can use sam to add swap if in case you are not sure of the entry to be made in /etc/fstab . Also the size is ample .


Manoj Srivastava
Sridhar Bhaskarla
Honored Contributor

Re: quick ques on swap

Hi,

I would add the following entry

/dev/vg01/swap2 ... swap pri=0 0 0

Above makes the priority to 0 so that this swap area is used first as the default priority of primary swap is 1. Most of the times, we would not want primary swap to be used as it will impact the root disk.

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

Re: quick ques on swap

Hi,

the entry in /etc/fstab should look like

/dev/vg01/swap2 ... swap pri=0 0 0
if you want this to be primary swap. for secondary swap entry must look like
/dev/vg01/swap2 ... swap pri=1 0 0

swap that you have(10GB) should be ok for any application
never give up