[linux-lvm] Forcibly remove broken disk from LV
Bryn M. Reeves
breeves at redhat.com
Fri Jun 29 10:19:15 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Turbo Fredriksson wrote:
> I have a disk that only gives SCSI errors etc which
> I want to remove from the VG. But vgreduce only hangs
> and so does pvremove...
> If I physically remove the disk, the vg/pv/lv etc isn't
> accessible so the vgreduce won't work (claims that it
> can't find any PV's etc).
> So how do I remove the disk?
You can activate what's left of the volume group with:
vgchange --partial -ay <VolGroup>
You can remove the missing PV from the VG with:
vgreduce --removemissing <VolGroup>
Note that this will also remove any logical volumes that were using the
missing physical volume. You can run it with --test first to see what
effect it will have.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the linux-lvm