deficient lvs interface: worked around: restore premerge state to stop merge...

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

 





FWIW,

posting the way to stop a merge, (given that no one else seemed
to have the answer)... removed the 'uninteresting vg/lv's...

Home still merging:
# lvs --all -o lv_name,lv_attr,origin
 LV                       Attr    Origin
 Home                     Owi-ao
 [Home-2011.09.03-00.28.36] Swi---  Home


Since the device for the snapshot was gone (dmsetup removed it),
the only place it seemed to be stored on disk was
the on-disk VolGroup table...so...lets fix that!

Find right backup...

# vgcfgrestore -l Home+Space
 File:             /etc/lvm/archive/Home+Space_00199.vg
 VG name:          Home+Space
 Description:      Created *before* executing 'lvconvert --merge  \
                  /dev/Home+Space/Home-2011.09.03-00.28.36'
 Backup Time:      Sun Sep 11 17:29:56 2011

Restore:


# vgcfgrestore -f /etc/lvm/archive/Home+Space_00199.vg   Home+Space
 Restored volume group Home+Space
# lvs
 LV                       VG         Attr     LSize   Origin
 Home                     Home+Space owi-ao   1.00t
 Home-2011.09.03-00.28.36 Home+Space swi---   1.00t   Home
# lvremove /dev/Home+Space/Home-2011.09.03-00.28.36
 Logical volume "Home-2011.09.03-00.28.36" successfully removed

Didn't even have to use "-f" on the lvremove...

Hey, seems like it's the only way to stop a merge (?)

-l






_______________________________________________
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