Operating System - Linux
1820028 Members
3279 Online
109608 Solutions
New Discussion юеВ

To Drop Primary Swap Device??

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

To Drop Primary Swap Device??

I have a problem and hope to get help from here:

I often have a paging i/o error, which frozen user process. With HP help, the problem found on /dev/vg00/lvol2, the primary swap device.

I have additional swap device/file as:
---------------------------------------
/dev/vg00/lvol2 device 1.0gb 33mb 1
/dev/vg01/lvol1 device 1000mb 32mb 1
/disk5/paging filesys 2.0gb 0mb 1
pseudo-swap memory 1.5gb 386mb na
---------------------------------------

Other than replacing the whole vg00 drive, do I have the option of 'drop' primary swap, and use the 2nd ones?

Your comments are very appreciated!

Steven


Steve
2 REPLIES 2
Mark Grant
Honored Contributor
Solution

Re: To Drop Primary Swap Device??

If this is a Linux box then there is no problem with this. Just change it in /etc/fstab. Of course, without vg01 activated you won't have any swap but linux can usually cope with this.

However, I suspect this is an HPUX box. HPUX reserves swap for each process that runs, even if it will never need it. During the boot processs, before vg01 is activated, HPUX will not be able to pre-allocate this swap so I fear, it will not boot. You could try re-creating the logical volume that contains your primary swap. It might let you delete the logical volume and re-create it if you have swap elsewhere.

I would think that if you suspect your swap volume has i/o errors and they come from the same disk that contains the rest of vg00, you should change the disk anyway.
Never preceed any demonstration with anything more predictive than "watch this"
Shaikh Imran
Honored Contributor

Re: To Drop Primary Swap Device??

Hi,
Primary Swap cannot be dropped.So,You will have to repalce the Vg00 Disk and carry on.
I recommend you to take a ignite or any other backup first.
If it would have been the other ones it can be tried.

Regards
I'll sleep when i am dead.