Wednesday, August 25, 2010

When partman-lvm Sucks Your Taint (with teeth)

While installing ubuntu lucid, I ran into an error with LVM.  I couldn't make an LVG and the partitioning portion of the installer failed and said to view the error message(s) in /var/log/syslog

If you see the below, be filled with joy.  There is a simple solution.

partman-lvm:   Incorrect metadata area header checksum

If you are seeing this behavior and this error in your /var/log/messages, perform the following:

dd if=/dev/zero of=/dev/xxxxx

For me this is what I needed to do:

dd if=/dev/zero of=/dev/sda; dd if=/dev/zero of=/dev/sdb

Then you need to rediscover the drive(s)

Enjoy and continue putting your taint on partman-lvm's face