[linux-lvm] new process dead after create multiple snapshot volumes

Bear Wolf sportbear at gmail.com
Mon Sep 12 02:34:15 UTC 2005

Dear all 

I test snapshot function on my system.
when I create the first snapshot, everything works fine.
then I create more snapshot, everything works fine too.
but when I access the source volume and do sync
the sync command will be dead.

and I test with a script file

for I in 1 2 3 4 5 6 7 8 9
cp -af /etc /mnt/volume1
lvcreate -s -L 64 -n snaplv${I} /dev/VG01/volume1
sleep 1

after create the 4th sn apshot volume, the system process hang without
any error message.

result of ps
 2259 pts/1    S+     0:00 bash test.sh
 2267 ?        S      0:00 [xfssyncd]
 2278 ?        S<     0:00 [kcopyd]
 2318 pts/1    D+     0:00 cp -af /etc /mnt/volume1/etc5

log of create the 4th snapstot volume
    Setting chunksize to 16 sectors.
    Finding volume group "VG01"
    Creating logical volume snaplv4
    Creating volume group backup "/etc/lvm/backup/VG01" (seqno 9).
    Found volume group "VG01"
    Loading VG01-snaplv4
    Zeroing start of logical volume "snaplv4"
    Found volume group "VG01"
    Removing VG01-snaplv4
    Found volume group "VG01"
    Found volume group "VG01"
    Found volume group "VG01"
    Loading VG01-snaplv1-cow
    Loading VG01-volume1-real
    Loading VG01-snaplv1
    Loading VG01-snaplv3-cow
    Loading VG01-snaplv3
    Loading VG01-snaplv4-cow
    Loading VG01-snaplv4
    Loading VG01-snaplv2-cow
    Loading VG01-snaplv2
    Loading VG01-volume1
    Creating volume group backup "/etc/lvm/backup/VG01" (seqno 10).
  Logical volume "snaplv4" created

resultof lvscan
  ACTIVE   Original '/dev/VG01/volume1' [128.00 MB] inherit
  ACTIVE   Snapshot '/dev/VG01/snaplv1' [64.00 MB] inherit
  ACTIVE   Snapshot '/dev/VG01/snaplv2' [64.00 MB] inherit
  ACTIVE   Snapshot '/dev/VG01/snaplv3' [64.00 MB] inherit
  ACTIVE   Snapshot '/dev/VG01/snaplv4' [64.00 MB] inherit

dmesg and messages has no error.

is this a known issue of snapshot?

Kernel 2.6.13
LVM version:     2.01.14 (2005-08-04)
Library version: 1.01.04 (2005-08-02)
Driver version:  4.4.0


More information about the linux-lvm mailing list