On Wed, 22 Dec 2010, Ross Boylan wrote: > I have a volume group made from 3 partitions on 2 different physical > disks. One of the disks is failing. I have a new disk connected via > USB; it is large but a bit slow (5400RPM, though the USB might be > temporary). It is large enough to hold the entire contents of the > existing VG. > > I am looking for suggestions about how to approach this. The pvmove > command looks promising, but the docs warn that things are in a delicate > state during the migration (and advise backups). Since it seems almost > certain there will be I/O errors on the old drive, I'm not sure if > pvmove is a good idea. Is it? If it is not necessary to keep the VG live, the following will handle errors better and be faster (depending on how much of the failing PV is in use): 1) Make a new partition(s) at least as big as the failing partition, and use ddrescue to copy the failing partition(s). Don't do anything that might cause a vgscan (lvm commands) during the copy (since the copy will have the same UUID). (Or else do the copy with the VG offline, booted from CD if needed.) 2) Shutdown and remove the failing drive. The new copy should be recognized by its UUID. 3) Record blocks skipped due to io errors, and map them to files and filesystems to take appropriate action: http://smartmontools.sourceforge.net/badblockhowto.html#id3073907 -- Stuart D. Gathman <stuart@bmsi.com> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/