Operating System - HP-UX
1758801 Members
3024 Online
108875 Solutions
New Discussion юеВ

Re: How do I remove a failed external disk.

 
SOLVED
Go to solution
Betty Fessler
Frequent Advisor

How do I remove a failed external disk.

How do I remove a failed external disk.
lvremove errors because the disk doesn't respond,
Can I just do a rename of /etc/lvmtab and then a vgscan -v. I don't intend to replace the failed disk.
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: How do I remove a failed external disk.


Hi

If disk is mirrored then you don't have much problem.

This thread would give you more informations.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=3c04f197124c0fb0a5/screen=ckiDisplayDocument?docId=200000058036738

-USA..
Good Luck..
Helen French
Honored Contributor
Solution

Re: How do I remove a failed external disk.

Hi,

1) If you are going to replace it and if the disk is a hot-swap, then replace it online and do a 'vgcfgrestore'

# vgcfgrestore -n vgname pvname

It is not a hot-swap disk, then shutdown the server and replace it. Then do the 'vgcfgrestore'

2) If you are not going to replace and not going to use that file systems, you can just do a 'vgexport'.

HTH,
Shiju
Life is a promise, fulfill it!
Michael Tully
Honored Contributor

Re: How do I remove a failed external disk.

Hi,

If the disk is part of a volume group
you would need to run vgscan. If it
is in a group on it's own run the
vgexport command

# vgexport /dev/youvg

HTH
-Michael
Anyone for a Mutiny ?
Sanjay_6
Honored Contributor
S.K. Chan
Honored Contributor

Re: How do I remove a failed external disk.

A really nice and sure way of removing it is as such .. (assuming you want to remove lvol1 in vg03 and that LV is mirrored).

# lvdisplay -v -k /dev/vg03/lvol1
==> The PV1 and PV2 column, instead of displaying the device path, it'll show the "disk-key" value (either 0 or 1).

# lvreduce -m 0 -k 1 /dev/vg03/lvol1
==> Now reduce it with the "disk-key" value. In this case it's 1.

# mv /etc/lvmtab /etc/lvmtab.org
# vgscan -v
# vgreduce -f vg03
==>f option force removal of missing PVs