As expected, it's easy enough to repro with raw dm_snapshot:

  root@bug-1894780-focal-3:~# for f in base snap1 snap2; do dd if=/dev/zero 
of=$f.img bs=1M count=1 seek=512; done
  root@bug-1894780-focal-3:~# losetup -f base.img 
  root@bug-1894780-focal-3:~# losetup -f snap1.img 
  root@bug-1894780-focal-3:~# losetup -f snap2.img 
  root@bug-1894780-focal-3:~# dmsetup create snap-base --table "0 524288 
snapshot-origin /dev/loop3"
  root@bug-1894780-focal-3:~# for i in 4 5; do dmsetup create snap-$i --table 
"0 524288 snapshot /dev/mapper/snap-base /dev/loop$i P 16" & done

It works fine once you sneak a "sleep 1" into the loop.

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

Title:
  Oops and hang when starting LVM snapshots on 5.4.0-47

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

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

Reply via email to