Guys,
This could be something very informative for all LVM experts !!
The lvm system maintains backup copies of the lvm configuration in the /etc/lvm/archive folder. I found the backup copy from just before my lvm volume was deleted. By using "vgcfgrestore" and the archive file i was able to restore the lvm configuration as it was before the lvm volume was deleted.
The command:
"vgcfgrestore -l VolGroup00"
shows a list of backed up configurations.
I found that the correct configuration was in the file "/etc/lvm/archive/VolGroup00_00054.vg".
Running "vgcfgrestore -f /etc/lvm/archive/VolGroup00_00054.vg" did the trick.
i hope i am giving credit where it is due. yes i boned my system. yes i backup, oh wait i didnt backup the backup. i was reading a guide with intent on learning my preferred os instead of being a gui zombie. after the chapter dealing with lvm it seemed doable and off to my openfiler i went. it didnt end well. in a frenzy which turned into a 3hr drunken somewhat stupor i franticly clawed for help this line worked "Running "vgcfgrestore -f /etc/lvm/archive/VolGroup00_00054.vg" did the trick." i hope i learn enough to give back. thanks again
ReplyDeleteIn case vgcfgrestore doesn't do the trick, the bits and pieces on this page moved me along further:
Deletehttp://www.microdevsys.com/WordPress/2011/09/19/linux-lvm-recovering-a-lost-volume/