Sutff about my job and comments about personal activities. Take a look to the first idea.

Sunday, January 07, 2007

PV metadata

I've access to a SAN environment and due a confusion, a PV metadata was overwritten, so I decided to google for a solution and found LVM saves configuration backup at /etc/lvmconf.d/ and LVM package includes a utility to recover partial information from it. In my case, I'd to deactivate the VG and restore the PV metadata
vgcfgrestore -f /etc/lvmconf.d/myvgfile.conf.1 /dev/sdX
I'm still amused by the power and flexibility of LVM...