<div class="gmail_quote">
<div>Hi All,</div>
<div> I create vg00 using /dev/sd[b-e] four disks. Then I create lv00 as origin lv and use 'dd if=/dev/zero of=/dev/vg00/lv00 bs=1M' cmd to make big IO on lv00. When the dd is copying data, I use 'lvcreate -L 10G -s /dev/vg00/lv00 -n lv_snap1 -vvvv' to create a snapshot lv, the command suspend, while this cmd is suspending, the 'vgs' or 'lvs' will also be suspended.</div>
<div> I get the '-vvvv' debug message, the last 3 lines of the lvcreate snap 's suspending message are:<br></div>
<div><font color="#0000f0">#ioctl/libdm-iface.c:1782 dm info (254:0) NF [16384]<br>#libdm-deptree.c:986 Suspending vg00-lv00 (254:0) with filesystem sync with device flush<br>#ioctl/libdm-iface.c:1782 dm suspend (254:0) NF [16384]</font></div>
<div><font color="#0000f0"></font> </div>
<div><font color="#000000">the 'vgs -vvvv' cmd last 3 lines message are :</font></div>
<div> </div>
<div><font color="#000080">#locking/file_locking.c:141 _do_flock /var/lock/lvm/V_vg00:aux WB<br>#locking/file_locking.c:51 _undo_flock /var/lock/lvm/V_vg00:aux<br>#locking/file_locking.c:141 _do_flock /var/lock/lvm/V_vg00 RB</font></div>
<div><font color="#000080"></font> </div>
<div><font color="#000000">it seems the vgs suspend because the lvcreate cmd don't unlock the flock, but why the lvcreating of snapshot lv will be suspended while the origin is on big data IO?</font></div>
<div> </div>
<div> The output of the '-vvvv' till the suspend are as attachments of this email. 'lvcreate_snap_suspend.txt' is the debug messages of the lvcreate and the lvcreate_snap_vgs_suspend.txt' is the 'vgs -vvvv' while the snap lv creating.</div>
<div> </div>
<div> Thank you very much.</div>
<div> </div>
<div>Best Regards,</div>
<div>Busby</div><br></div>