[linux-lvm] Disk dying and LVM2
jbrassow at redhat.com
Mon Feb 11 14:49:31 UTC 2008
I haven't ever tried moving a root partition, but it should be possible.
pvmove will ignore the errors it encounters and "do the best it can"
to transfer all data. If it can't read a certain sector, that will be
missing from the move.
On Feb 8, 2008, at 8:06 AM, Martin Sarsale wrote:
> I have a volume made up by two SATA disks, one 80g other 250g. The 80g
> is dying and I'm about to replace it.
> The volume is mounted as the root fs.
> This is my plan, can you tell me if I'm on the right track?
> 1) empty at least 80g in the volume
> 2) reboot, mount readonly and resize the reiserfs to 80gb less than
> current (this is, to 250g)
> 3) pvmove /dev/old_disk
> 4) reboot
> 5) take the old disk out
> While the system boots and works more-or-less, when trying to open
> some files I get input/output errors: what will happen when pvmove
> tries to move the sector containing this file? After the pvmove the
> system shouldn't be in a worse condition that it's now, right?
> Martin Sarsale - martin at malditainternet.com
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm