[linux-lvm] how to recover after thin pool metadata did fill up?
zkabelac at redhat.com
Thu Oct 18 11:29:28 UTC 2012
Dne 18.10.2012 12:42, Andres Toomsalu napsal(a):
> Yes I know that its not currently possible to recover this pool anymore - and we got data copied from read-only mode anyway - but bigger problem is that there is even no known way to reset/recreate pool - as I cant delete/remove the pool - which means that only erasing all PV will help probably. Im just looking for a way to erase faulty pool (with erasing data) and to be able recreate it without full OS reinstall. Is there a way to do it - DM mapper low level commands perhaps?
This case is pretty simple this way:
vgcfgbackup -f vg.bak vgname
edit vg.bak and remove all thinp related volumes
vgcfgrestore -f vg.bak vgname
The reason why current upstream code rather avoids modifying metadata by
tools is - to avoid making first worst for recover in the first place.
Please note we already have some work done towards removing mutliple LVs
more efficiently - https://bugzilla.redhat.com/show_bug.cgi?id=817768
More information about the linux-lvm