[mdlug] LVM woes

Aaron Kulkis akulkis3 at hotpop.com
Thu Feb 22 16:50:30 EST 2007


greenproc wrote:
> I accidentally have destroyed an lvm group.  My intent was to mount an lvm volume, but accidentally created a new one instead.  Now pvscan tells me there is an physical volume group using 0 of 9GB -- the expected size but not the usage.
> 
> Let this be a warning to those who are tempted to use lvm, but are not familiar with the proper use of the tools.  My original intent was to mount the volume
> group with a live CD and back up the data -- the result was inadvertently deleting the volume group.
> 
> TestDisk has not been able to recover the partitions.  It looks like I have to do a disk dump and perform recovery on the raw data.  Any suggestions?
That's why, when i've used it in commercial environments,
I always put the commands i want to run in a file
and ran them as a shell script.

I would print out the file, first, make sure everything is right
and also use -x (echo commands before execution) and also whatever
flag for verify (y/n) before executing each command.

To err is human
To really screw things up requires a computer.

All too true.




More information about the mdlug mailing list