I can confirm that this is still an issue in Ubuntu 14.04.4. I ran into
this problem trying to backup a server hosting lxc containers, some of
them using overlayfs as the root fs. When the containers are running
(and therefore overlayfs is mounted) lvcreate -s hangs forever. The
debug output is:

root@host:~# lvcreate -n foobar -L 5G -s -d -v /dev/vg0/var
    Setting logging type to disk
    Setting chunksize to 8 sectors.
    Finding volume group "vg0"
    Archiving volume group "vg0" metadata (seqno 5091).
    Creating logical volume foobar
    Creating volume group backup "/etc/lvm/backup/vg0" (seqno 5092).
    Found volume group "vg0"
    activation/volume_list configuration setting not defined: Checking only 
host tags for vg0/foobar
    Creating vg0-foobar
    Loading vg0-foobar table (252:5)
    Resuming vg0-foobar (252:5)
    Clearing start of logical volume "foobar"
    Creating logical volume snapshot0
    Found volume group "vg0"
    Found volume group "vg0"
    Executing: /sbin/modprobe dm-snapshot
    Creating vg0-var-real
    Loading vg0-var-real table (252:6)
    Loading vg0-var table (252:3)
    Creating vg0-foobar-cow
    Loading vg0-foobar-cow table (252:7)
    Resuming vg0-foobar-cow (252:7)
    Loading vg0-foobar table (252:5)
    Suspending vg0-var (252:3) with filesystem sync with device flush

When the containers are stopped (and therefore overlayfs is no longer
mounted), the snapshot is created without issues.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1328595

Title:
  lvcreate -s hangs when overlayfs is in use

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1328595/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to