[linux-lvm] problem with lvcreate and redirection of stdout/stderr

Alasdair G Kergon agk at redhat.com
Wed Aug 20 15:50:10 UTC 2014

On Wed, Aug 20, 2014 at 05:27:52PM +0200, Lentes, Bernd wrote:
> lvcreate -v -L 45G -n lv_root_snapshot -s vg1/lv_root >> /var/log/update.log 2>&1
> lvcreate    Suspending vg1-lv_root (252:0) with filesystem sync with device flush

/var/log is presumably part of a filesystem on the same LV that is getting its I/O
paused for a brief moment while the snapshot is taken.

1) Run lvm dumpconfig log/activation  to double-check this is not set to 1.

2) What filesystem is this and precisely what kernel?  (cat /proc/mounts)

3) Try to obtain a stack trace at the point where this locks up e.g.  
echo t > /proc/sysrq-trigger followed by dmesg (or divert your logging
of kernel messages to a different filesystem outside the snapshot).


More information about the linux-lvm mailing list