RAID, LVM2 on USB disks with Ubuntu makes me a sad panda

Talk about a total pain to operate. After a reboot, the following is needed:

  1. modprobe dm_snapshot (if you don’t do this, you get “device-mapper: reload ioctl failed: Invalid argument” in step 6 – a really helpful error message. no dmesg or verbose things gets you any closer)
  2. some magic foo to scan the md array back
  3. pvscan
  4. vgscan
  5. lvscan
  6. lvchange -ay FooVG/barLV
  7. mount
  8. urgh.

Why this doesn’t just all detect itself on boot who knows. I’m surely not the only one doing this….

3 thoughts on “RAID, LVM2 on USB disks with Ubuntu makes me a sad panda

  1. Thank You very much for this pointer, one would never think there is lvm activated if booting Ubuntu live-CD but the module is missing in kernel… This is exactly the case of Ubuntu desktop 6.06 (in the alter Ubuntu versions is LVM not present by default in the live-CD).

    Thank You very much, we had some problems with the computer using LVM, it could not boot, so we booted with the live-CD to check the situation – it looked so all our logical volumes with snapshots gone…

    :-)

  2. Thanks for the superb instructions,LVM on my CF card also has the boot problem.follow your instructions,it works well after I reconfigure it.It turns out I skipped one important step,so…

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.