System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove swap from a failed disk?

 
SOLVED
Go to solution
dictum9
Super Advisor

How to remove swap from a failed disk?

rx5670 running 11.23

I have 2x36GB disk in vg00.

One of them has failed. It contained swap1, swap2 and swap4.

Is there any way to deactivate these swap partitions and remove the disk, while the machine is up?

PV Name /dev/dsk/c0t2d0s2
PV Status unavailable
Total PE 4228
Free PE 2844
Autoswitch On
Proactive Polling On

#: swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 2000 0 2000 0% 0 - 1 /dev/vg00/swap1
dev 6000 0 6000 0% 0 - 1 /dev/vg00/swap2
dev 15360 0 15360 0% 0 - 1 /dev/vg00/swap3
dev 3072 0 3072 0% 0 - 1 /dev/vg00/swap4
reserve - 19157 -19157
memory 49140 18621 30519 38%
total 79668 37778 41890 47% - 0 -

4 REPLIES
Don Morris_1
Honored Contributor
Solution

Re: How to remove swap from a failed disk?

Not with v2, no. This came in as a post-release enhancement to v3: http://docs.hp.com/en/5992-4174/ch04s05.html
James R. Ferguson
Acclaimed Contributor

Re: How to remove swap from a failed disk?

Hi:

> Is there any way to deactivate these swap partitions and remove the disk, while the machine is up?

No, not unless you're running 11.31 and have 'swapoff'.

Prior to 11.31, you must edit '/etc/fstab' so that the secondary device swap's aren't mounted at boot/startup and then reboot to remove them.

Be guided, however, by:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: How to remove swap from a failed disk?

If I assume all the LVOLs are mirrored, there is no need to remove the swap. Just replace that disk. But it looks like there is only swap on this disk and the disk is unavailable already, so the system cannot use the swap any longer. If the disk was dead before the last boot the swap won't be activated. If the disk was going bad recently and it was unmirrored and used for swap, you should see it crashing anyway.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
VK2COT
Honored Contributor

Re: How to remove swap from a failed disk?

Hello,

May I offer some additional advice, to protect
you agains future disasters:

a) You have set up unbalanced paging devices (swap areas). They do not have the same or similar size.

b) You have multiple swaps on the SAME
physical disks. This is against
best practices. If you ever start using swap,
your disk I/O will be very poor.

c) You are not mirroring your swaps.
Another bad design element. If a physical
disk fails, you are likely to crash the
server.

Cheers,

VK2COT
VK2COT - Dusan Baljevic