1834403 Members
2754 Online
110067 Solutions
New Discussion

Replace striped LVM disk

 
Tony Walker_2
Frequent Advisor

Replace striped LVM disk

Hi Guys,

I have a machine with various LV's which are made up of 10 stripes. One of the the disks in this set is faulty and I've got an engineer out to replace it later on today. Just wanted to check the activities I need to do once the new one has been up in. Right now I'm thinking:

Bring the box up in single user mode
mount up root filesystems etc
vgcfgresore -n VGNAME NEWDISK
vgchange -a y VGNAME
Restore data back to affected filesystems

This all seems a bit to easy so can someone confirm I've not missed anything out?

Cheers,

Tony
7 REPLIES 7
Bernhard Mueller
Honored Contributor

Re: Replace striped LVM disk

Tony,

life can be so easy! However, a restore may take some time...

Regards,
Bernhard
Devender Khatana
Honored Contributor

Re: Replace striped LVM disk

Hi,

It don't have any problems and should be enough. Moreover this is what we loose for getting performance, you may require to restore many files systems, which you might found in some old documentations as well, if you have.
Impossible itself mentions "I m possible"
Binu_2
Advisor

Re: Replace striped LVM disk

Hi

The procedure looks fine!

Thanks
Binu
Tony Walker_2
Frequent Advisor

Re: Replace striped LVM disk

Cheers guys.

Extra points going if you can tell me how to determine the Nport ID of the disk so I can use fcmsutil replace_disk?
erics_1
Honored Contributor

Re: Replace striped LVM disk

Tony,

fcmsutil /dev/tdX

X being the card which this disk hangs from.

Regards,
Eric
Patrick Wallek
Honored Contributor

Re: Replace striped LVM disk

# grep -i nport /var/adm/syslog/syslog.log

You should see the Nport ID logged in the syslog file. Once you know that AND the appropriate fibre card instance you just do:

# fcmsutil /dev/tdX replace_disk 0x?????

Where the 0x????? is the Nport ID.
Devesh Pant_1
Esteemed Contributor

Re: Replace striped LVM disk

Here is how I do

#ioscan -funC fc
and this will return the HBAs
do the fcmsutil /dev/XXX | grep -i port
as you can see the device from the output of the ioscan.

thanks
Devesh