On Sun, May 06, 2012 at 08:04:35PM -0700, Marc Shapiro wrote:
> I think that my old disk is dying and I want to get the data off of
> it before that happens.  I just had the system drop out of X-windows
> and lock up completely.
> 

[...]

> The old drive is /dev/sda and there are two PVs on the disk
> /dev/sda3 and /dev/sda4, both are in vg1
> 
> The new drive is /dev/sdc and it has only 1 LVM PV and that is /dev/sdc4
> 

[...]

> 
> Is this the correct method to preserve my data:
> 
> pvmove /dev/sda3 /dev/sdc4
> 
> wait for it to finish
> 
> pvmove /dev/sda4 /dev/sdc4
> 
> once that has finished
> 
> vgreduce vg1 /dev/sda3
> vgreduce vg1 /dev/sda4
> 
> pvremove /dev/sda3
> pvremove /dev/sda4
> 
> 
> I really need to know that this is the correct procedure and get
> this done as quickly as possible.  I don't want to lose data.
> 

This is the method I use.
pvmove fails sometimes, you just need to restart it and it will continue
where it stopped.

Philippe


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120507065726.ga17...@ozigo.org

Reply via email to