Operating System - HP-UX
1825796 Members
2550 Online
109687 Solutions
New Discussion

Re: How to add device swap on HP-UX?

 
Christine Zhao
Occasional Contributor

How to add device swap on HP-UX?

I need add swap space on L2000 server. I want use a whole disk in vg01. Anyone know how to do it?

Thanks,
Christine
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: How to add device swap on HP-UX?

Well, if you are using LVM then the first thing you need to do is create an LVOL that uses the entire disk. (If you are using the entire disk, the disk really doesn't need to be part of LVM unless you are planning to mirror the swap - a good idea). Next you create a swap entry in /etc/fstab and issue a swapon command. Since you seem to be a novice at this, perhaps your best approach is to use SAM->Disks and File Systems. It will do all the step for you. You may also need to increase the kenel tunable "maxswapchunks" to be able to use this much swap. Very seldom do modern UNIX boxes need anywhere near the amount of swap you seem to be adding.
If it ain't broke, I can fix that.