[gentoo-user] recover from disk crash lvm2 group
Hello, One of the disks in a 3-disk lvm2 group crashed. I would like to continue with the remaining 2 disks. How to remove the non-functioning disk from the group and re-create the volume with 2 disks? I have backups. # vgremove home_vol Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Volume group home_vol not found # vgscan Reading all physical volumes. This may take a while... Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Volume group home_vol not found Thank you Eray
Re: [gentoo-user] recover from disk crash lvm2 group
On Sat, 2008-08-02 at 12:49 +0300, Eray Aslan wrote: Hello, One of the disks in a 3-disk lvm2 group crashed. I would like to continue with the remaining 2 disks. How to remove the non-functioning disk from the group and re-create the volume with 2 disks? I have backups. # vgremove home_vol Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Volume group home_vol not found # vgscan Reading all physical volumes. This may take a while... Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Couldn't find device with uuid 'D0HvzD-Vw9B-40Vd-NSn1-RW0d-SlVF-pM4jOH'. Couldn't find all physical volumes for volume group home_vol. Volume group home_vol not found The lvm(8) man page lists the --partial flag. A quick Google search reveals: vgchange -ay --partial -a
Re: [gentoo-user] recover from disk crash lvm2 group
On 02.08.2008 15:02, Albert Hopkins wrote: On Sat, 2008-08-02 at 12:49 +0300, Eray Aslan wrote: [...] One of the disks in a 3-disk lvm2 group crashed. I would like to continue with the remaining 2 disks. How to remove the non-functioning disk from the group and re-create the volume with 2 disks? I have backups. [...] The lvm(8) man page lists the --partial flag. A quick Google search reveals: vgchange -ay --partial Grr, it does indeed. For the archives, also had to use vgreduce with --removemissing flag. Sorry and thank you for the quick response. Eray