[linux-lvm] Can I dd one disc of a lv

Tobias Wagener tobias-lvm at tobias.wagener.nu
Thu Nov 6 06:43:02 UTC 2003


OK, currently dd (or better dd_rescue) is at work. What have I to do after 
the dd?

vgexport the VG, and then vgimport with the new device? Or do I use
a "vgcfgrestore" and "vgcfgbackup" also?

Greetings Tobias

On 06/11/03 13:20, Rickard Olsson wrote:
> Tobias Wagener wrote:
> > Now the question: Can I "dd" the faulty 200 GB drive to the new 200 GB
> > drive? And if, how? Does "dd if=/dev/hde1 of=/dev/hdf1" the job, or what
> > have I to do?
> Heinz told me:
> "You need to dd starting from the first physical extent (use pvdata -PP 
> on the old one and look for pe_on_disk.base) to the same offset on the 
> new disk (skip and seek dd option) and you want dd to continue after 
> read errors (noerror option)."
> Also, I was recently told about the dd_rescue utility, but I haven't had 
> the misfortune/opportunity to try that one yet.
>     / Rickard Olsson,IT-Konsult/
>    / Telefon: +46 70 635 01 42/
>   / http://www.webhackande.se/
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

More information about the linux-lvm mailing list