Re: [linux-lvm] remove a drive from an array not like described inthe howto

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

 




> I would like to remove a HD from my VG, but the VG contains an LV, that
> uses the entire space of the VG. the howto describes I have to pvmove
> everything from my HD I want to remove to another physical volume in the
> VG. well I have no other physical volume for this purpose. is this a good
> way to resize my partition with resize_reiserfs, and then lvreduce my LV,
> then vgreduce the physical volume from it? is this a good way to not
> loose my data? regards,

The safest way to do this is backing up the offending LV
source at the unix file system level (e.g., via cpio to
a tape or another LV), do whatever you are going to do,
then restore the data.

Even if the pvmove shuffle operation works perfectly,
you'll still need to back it all up in advance just in
case the move fails and scrambles your data.

If you back the data up onto a spare disk drive (e.g.,
find /lvmountpoint -xdev | cpio -ov -Hcrc > /dev/vgXX/templv;)
then the backup operation won't take all that long and
you may be able to restore it all in less time than
dealing with the shuffle operation.



--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.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