Re: Forcibly remove broken disk from LV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGhNyj6YSQoMYUY94RAj1/AKC5MV2UOwX1H9fJDEPB29gAzAwLXQCg1c6b
fd0Tnpn1dInlwx5TnH8G2fM=
=WGy8
-----END PGP SIGNATURE-----

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux