Operating System - HP-UX
1833476 Members
2878 Online
110052 Solutions
New Discussion

swap space on sg volume group.

 
SOLVED
Go to solution
Ian Killer_1
Regular Advisor

swap space on sg volume group.

Hi SG experts...

I need swapspace. Ideally I want to increase the swap in the root vg, but am a little space restricted. It's a two node cluster with 1 package on each node.

I want to know what the implications would be of creating secondary filesystem swap on an vg that moves with a package. Has anyone done it?

Ian
Where ever the gypsies rome.
9 REPLIES 9
Dietmar Konermann
Honored Contributor
Solution

Re: swap space on sg volume group.

Since there is no swapoff command you would no longer be able te deactivate the VG without rebooting.

Not a really good idea, I believe.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Ashwani Kashyap
Honored Contributor

Re: swap space on sg volume group.

Ideally a secondary device swap on both the nodes is preffered .

Since swap are local to a node , I am not sure failing over a swap is a good idea . Any way since the file system is active exclusively on one node , how would you turn on the FS swap on the other node .

Also note that swap has to be contiguous in allocation .
Martin Johnson
Honored Contributor

Re: swap space on sg volume group.

Besides not being able to deactivate the package, you will negatively affect performance of your application when you start swaping, especially if your application is I/O intensive.

HTH
Marty
Ian Killer_1
Regular Advisor

Re: swap space on sg volume group.

Excellent. I thought it might be ugly. Thanks all. It's an lp printing cluster so no super heavy io.
Cheers...

ian
Where ever the gypsies rome.
Jeff Schussele
Honored Contributor

Re: swap space on sg volume group.

Hi Ian,

Nope...no way...

I would certainly NOT advise you do this.
Swap has to ALWAYS be local to the box.

Add a VG/LV to the system someway/somewhere that will not switch.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: swap space on sg volume group.

This will not work but the first question you should ask is "Do I need the swapspace?". Are you paging out now? The old rules about 2x-3x memory for swap space almost never apply these days. I often run very large systems with only 512MB of primary swap and that's it.
If it ain't broke, I can fix that.
Ian Killer_1
Regular Advisor

Re: swap space on sg volume group.

Hey A. Clay...

Sorry.. I couldn't resist.
LIkewise I've only got 512mb swap. I was definitely swap we ran out of though. "Unable the fork: no space". We just have 3000+ printers and we run lpstat's on them every 5 minutes. lpstat and lpsched both use 3+mb of virtual memory. Thanks.
Where ever the gypsies rome.
Dietmar Konermann
Honored Contributor

Re: swap space on sg volume group.

Is kernel the tunable swapmem_on set to 1? Of course you need lots of "real" swap otherwise.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Ian Killer_1
Regular Advisor

Re: swap space on sg volume group.

Yep.
Where ever the gypsies rome.