Frequently Asked Questions

Please add questions here.

  1. Do I need a special lvm2 kernel module?

  2. I get errors about /dev/mapper/control when I try to use the LVM 2 tools. What's going on?

  3. Is pvmove reasonably atomic? If the system goes down mid-pvmove, is my data hosed or do I just need to restart and try again?

  4. I think I found a bug. What information should I gather and how should I report it?

  5. Is there a way to activate/mount a copy of a volume group taken with a disk-array based point-in-time copy on the same host? The problem I have occurs because the disk-array copy contains all information on the disk, including PVID/VGID's, which is confusing for Linux's LVM.

  6. I am using LVM2 in a shared SAN environment, and would like to restrict access to a single server, and periodically switch the access of the volume groups from one host to another. Under vxvm, "vxdg <import


Can I use pvmove on root volume ? What's special with it ?

To perform pvmove of root device you can

  1. Boot from differrent device (live cd) and perform move from here.

  2. If not possible: prepare environment and avoid some locking issues

  3. - obviously, backup data on the volume you are trying to move :-)

  4. - try to avoid moving swap (deactivate it)
  5. - use statically linked binaries lvm.static (and dmsetup.static) (use lvm.static pvmove <pars> instead of pvmove)

  6. - move these binaries to ramdisk or volume not included in root (moving) volume (keep in mind that shell runs from moving volume too !)
  7. - you can try disable locking: if you will process only one action with volume you can switch off locking (dangerous ! you can seriously corrupt metadata if you will enter more commands during move) (in lvm.conf set locking_type = 0)
  8. - run pvmove
  9. - you can use pvmove --abort to abandon it or pvmove [or with same source pv as before] to retry.

    • If it fails (or stucks)
      • - if you reset machine, pvmove will restart automatically.
      • - (dangerous): you can wake up suspended device (which caused deadlock) by running dmsetup resume <suspended device>


How can I debug problem myself ?

uname -a}}}

activation = 1 }}}

}}}

dmsetup table dmsetup status}}}

echo m > /proc/sysrq-trigger list ls -R /sys/block/dm*}}}


I see "reload ioctl failed", what's wrong ?

}}}


I cannot create more than X (usually 32) snapshots...


None: FrequentlyAskedQuestions (last edited 2008-01-10 19:42:39 by localhost)