new process dead after create multiple snapshot volumes
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
I=0
for I in 1 2 3 4 5 6 7 8 9
do
cp -af /etc /mnt/volume1
lvcreate -s -L 64 -n snaplv${I} /dev/VG01/volume1 sleep 1
done
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
Thanks.
SportBear
/ 2005-09-12 10:34:15 +0800
\ Bear Wolf:
Quoted 18 lines
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
I=0
for I in 1 2 3 4 5 6 7 8 9
do
cp -af /etc/mnt/volume1
lvcreate -s -L 64 -n snaplv${I}/dev/VG01/volume1sleep 1
done
Quoted 2 lines
after create the 4th sn apshot volume, the system process hang without any error message.
lvcreate calls into device mapper.
it suspends the affected targets, changes "tables", creates new targets, and resumes the targets again.
if it fails to create the new targets, or fails to adjust the "tables",
then it unfortunately aborts, leaving the existing targets in suspended state. I think that is a bug.
to get the system working (sort of) again, you could try to for d in /dev/mapper/* ; do
[[ $d == control ]] && continue
dmsetup resume $d &
# ^^^ important! background it!
done
background it, because if you "resume" some target that depends on some other target in suspended state, it will hang and wait for that other target to be resumed... doh.
worked for me... (well, to get the system back, at least).
see also dmsetup ls, dmsetup info, dmsetp table etc.
cheers,
Signature · 3 lines
: Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :
Dear Lars
I tried but not work,
the process is still hang when I trying to copy some data in source volume or do sync command after create the 4rd snapshot volume.
should I patch the 8 and 9 of dm module? ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/2.6.12-rc2/2.6.12-rc2-udm1/
I saw that some discuss in previous mail-list
SportBear
2005/9/12, Lars Ellenberg <[email protected]>:
Quoted 60 lines
/ 2005-09-12 10:34:15 +0800
\ Bear Wolf:Quoted 18 lines
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
I=0
for I in 1 2 3 4 5 6 7 8 9
do
cp -af /etc/mnt/volume1
lvcreate -s -L 64 -n snaplv${I}/dev/VG01/volume1sleep 1
doneQuoted 2 lines
after create the 4th sn apshot volume, the system process hang without any error message.
lvcreate calls into device mapper.
it suspends the affected targets, changes "tables", creates new targets, and resumes the targets again.if it fails to create the new targets, or fails to adjust the "tables",
then it unfortunately aborts, leaving the existing targets in suspended state. I think that is a bug.
to get the system working (sort of) again, you could try to for d in
/dev/mapper/*; do
[[ $d == control ]] && continue
dmsetup resume $d &
# ^^^ important! background it!
donebackground it, because if you "resume" some target that depends on some other target in suspended state, it will hang and wait for that other target to be resumed... doh.
worked for me... (well, to get the system back, at least).
see also dmsetup ls, dmsetup info, dmsetp table etc.
cheers,
--
: Lars Ellenberg Tel +43-1-8178292-0 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
I also found the process dead, that is "pdflush"
there're 2 "pdflush" always running on my system,
but one is dead after I create the 3rd snapshot volumes and access the source volume then sync
-bash-3.00# ps x
PID TTY STAT TIME COMMAND
1 ? S 0:01 init [2]
2 ? S 0:00 [migration/0]
3 ? SN 0:00 [ksoftirqd/0]
4 ? S< 0:00 [events/0]
5 ? S< 0:00 [khelper]
6 ? S< 0:00 [kthread]
8 ? S< 0:00 [kacpid]
70 ? S< 0:00 [kblockd/0]
73 ? S< 0:00 [khubd]
129 ? S 0:00 [pdflush]
130 ? D 0:00 [pdflush]
132 ? S< 0:00 [aio/0]
131 ? S 0:00 [kswapd0]
134 ? S< 0:00 [xfslogd/0]
133 ? S 0:00 [cifsoplockd]
135 ? S< 0:00 [xfsdatad/0]
136 ? S 0:00 [xfsbufd]
723 ? S< 0:00 [kseriod]
773 ? S 0:00 [scsi_eh_0]
777 ? S< 0:00 [ata/0]
801 ? S< 0:00 [kcryptd/0]
934 ? S< 0:00 [kcopyd]
1330 ? Ss 0:00 syslogd -m 0
1334 ? Ss 0:00 klogd -x
1343 ? Ss 0:00 /usr/httpd/bin/httpd
1353 ? Ss 0:00 crond
1359 ? Ss 0:00 /bin/profamd
1479 tty1 Ss 0:00 -bash
1481 tty2 Ss+ 0:00 -bash
1483 tty3 Ss+ 0:00 /sbin/mingetty tty3
1485 tty4 Ss+ 0:00 /sbin/mingetty tty4
1487 tty5 Ss+ 0:00 /sbin/mingetty tty5
1903 ? S 0:00 [xfssyncd]
1915 tty1 D+ 0:00 sync
2037 pts/0 R+ 0:00 ps xRocky
2005/9/12, Bear Wolf <[email protected]>:
Quoted 75 lines
Dear Lars
I tried but not work,
the process is still hang when I trying to copy some data in source volume or do sync command after create the 4rd snapshot volume.should I patch the 8 and 9 of dm module? ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/2.6.12-rc2/2.6.12-rc2-udm1/
I saw that some discuss in previous mail-list
SportBear
2005/9/12, Lars Ellenberg <[email protected]>:
Quoted 60 lines
/ 2005-09-12 10:34:15 +0800
\ Bear Wolf:Quoted 18 lines
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
I=0
for I in 1 2 3 4 5 6 7 8 9
do
cp -af /etc/mnt/volume1
lvcreate -s -L 64 -n snaplv${I}/dev/VG01/volume1sleep 1
doneQuoted 2 lines
after create the 4th sn apshot volume, the system process hang without any error message.
lvcreate calls into device mapper.
it suspends the affected targets, changes "tables", creates new targets, and resumes the targets again.if it fails to create the new targets, or fails to adjust the "tables",
then it unfortunately aborts, leaving the existing targets in suspended state. I think that is a bug.
to get the system working (sort of) again, you could try to for d in
/dev/mapper/*; do
[[ $d == control ]] && continue
dmsetup resume $d &
# ^^^ important! background it!
donebackground it, because if you "resume" some target that depends on some other target in suspended state, it will hang and wait for that other target to be resumed... doh.
worked for me... (well, to get the system back, at least).
see also dmsetup ls, dmsetup info, dmsetp table etc.
cheers,
--
: Lars Ellenberg Tel +43-1-8178292-0 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
here's the verbose log of successful and failed after created snapshot volumes
verbose log of successful after created snapshot volumes
*************************************************************************config/config.c:778 log/activation not found in config: defaulting to 0commands/toolcontext.c:146 Logging initialised at Sun Sep 18 00:12:57 2005
config/config.c:773 Setting global/umask to 63commands/toolcontext.c:165 Set umask to 0077
config/config.c:758 Setting devices/dir to /dev config/config.c:758 Setting global/proc to /proc config/config.c:773 Setting global/activation to 1 config/config.c:778 global/suffix not found in config: defaulting to 1 config/config.c:764 global/units not found in config: defaulting to h regex/matcher.c:267 Matcher built with 5 dfa states config/config.c:758 Setting devices/cache to /etc/lvm/.cache config/config.c:773 Setting devices/write_cache_state to 1 device/dev-io.c:425 Opened /etc/lvm/.cache RO device/dev-io.c:456 Closed /etc/lvm/.cache device/dev-cache.c:228 /dev/sda: Added to device cache filters/filter-persistent.c:127 Loaded persistent filter cache from /etc/lvm/. cache config/config.c:773 Setting activation/reserved_stack to 256 config/config.c:773 Setting activation/reserved_memory to 8192 config/config.c:773 Setting activation/process_priority to -18
format1/format1.c:588 Initialised format: lvm1format_pool/format_pool.c:355 Initialised format: poolformat_text/format-text.c:1706 Initialised format: lvm2config/config.c:764 global/format not found in config: defaulting to lvm2striped/striped.c:231 Initialised segtype: stripedzero/zero.c:100 Initialised segtype: zeroerror/errseg.c:100 Initialised segtype: errorsnapshot/snapshot.c:165 Initialised segtype: snapshotmirror/mirrored.c:315 Initialised segtype: mirror
config/config.c:773 Setting backup/retain_days to 30 config/config.c:773 Setting backup/retain_min to 10 config/config.c:758 Setting backup/archive_dir to /etc/lvm/archive config/config.c:758 Setting backup/backup_dir to /etc/lvm/backup config/config.c:778 global/fallback_to_lvm1 not found in config: defaulting to 0 lvmcmdline.c:812 Parsing: lvcreate -s -L64 -n s5 /dev/VG01/lv1 lvmcmdline.c:836 Processing: lvcreate -s -L64 -n s5 /dev/VG01/lv1 lvmcmdline.c:839 O_DIRECT will be used
config/config.c:773 Setting global/locking_type to 1config/config.c:758 Setting global/locking_dir to /var/lock/lvmlocking/locking.c:139 File-based locking enabled.
lvcreate.c:306 Setting chunksize to 16 sectors.activate/activate.c:302 Getting target version for snapshotioctl/libdm-iface.c:1326 dm version Oioctl/libdm-iface.c:1326 dm versions Oactivate/activate.c:302 Getting target version for snapshot-originioctl/libdm-iface.c:1326 dm versions Oconfig/config.c:773 Setting activation/mirror_region_size to 512locking/file_locking.c:164 Locking /var/lock/lvm/V_VG01 WB
lvcreate.c:435 Finding volume group "VG01"device/dev-io.c:425 Opened /dev/sda RW O_DIRECTdevice/dev-io.c:134 /dev/sda: block size is 4096 byteslabel/label.c:168 /dev/sda: lvm2 label detectedcache/lvmcache.c:426 lvmcache: /dev/sda now orphanedcache/lvmcache.c:426 lvmcache: /dev/sda now in VG VG01label/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (10) from /dev/sda at 20480 s ize 2600 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 146: NULL(0:0) metadata/lv_manip.c:1153 Creating logical volume s5 metadata/pv_map.c:47 Allowing allocation on /dev/sda start PE 6 length 146 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0)
format_text/format-text.c:397 Writing VG01 metadata to /dev/sda at 23552 len 2
826format_text/format-text.c:483 Pre-Committing VG01 metadata (11) to /dev/sda he
ader at 4096format_text/archiver.c:364 Creating volume group backup "/etc/lvm/backup/VG01"
(seqno 11).format_text/format-text.c:661 Writing VG01 metadata to /etc/lvm/backup/.lvm_proNAS_2497_686647911format_text/format-text.c:705 Committing VG01 metadata (11)format_text/format-text.c:706 Renaming /etc/lvm/backup/VG01.tmp to /etc/lvm/ba
ckup/VG01format_text/format-text.c:483 Committing VG01 metadata (11) to /dev/sda header
at 4096locking/file_locking.c:245 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEG
pk4nXxhxd75lDLjzMXKs1nD7 (R)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7label/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (11) from /dev/sda at 23552 s ize 2826 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"config/config.c:758 Setting activation/missing_stripe_filler to /dev/ioerroractivate/dev_manager.c:1048 Getting device info for VG01-s5ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4n
Xxhxd75lDLjzMXKs1nD7 Nioctl/libdm-iface.c:1326 dm info VG01-s5 Nmm/memlock.c:119 Unlocking memorymm/memlock.c:138 memlock_count dec to 0activate/fs.c:176 Linking /dev/VG01/s5 -> /dev/mapper/VG01-s5
toollib.c:1087 Zeroing start of logical volume "s5"device/dev-cache.c:228 /dev/VG01/s5: Added to device cache
device/dev-io.c:425 Opened /dev/VG01/s5 RW O_DIRECT device/dev-io.c:584 Wiping /dev/VG01/s5 at sector 0 length 8 sectors device/dev-io.c:134 /dev/VG01/s5: block size is 4096 bytes device/dev-io.c:456 Closed /dev/VG01/s5
locking/file_locking.c:240 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEG
pk4nXxhxd75lDLjzMXKs1nD7 (NL)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7label/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (11) from /dev/sda at 23552 s ize 2826 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-s5ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4n
Xxhxd75lDLjzMXKs1nD7 Omm/memlock.c:119 Unlocking memorymm/memlock.c:138 memlock_count dec to 0activate/fs.c:211 Removing link /dev/VG01/s5locking/file_locking.c:235 Unlocking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5J
EGpk4nXxhxd75lDLjzMXKs1nD7metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7label/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (11) from /dev/sda at 23552 s ize 2826 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-s5ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4n
Xxhxd75lDLjzMXKs1nD7 Nioctl/libdm-iface.c:1326 dm info VG01-s5 Nlocking/file_locking.c:250 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qi
e6tyA0ztVEJcQvJi9CvcngrT (W)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrTlabel/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (11) from /dev/sda at 23552 s ize 2826 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-lv1ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6ty
A0ztVEJcQvJi9CvcngrT Nmm/memlock.c:119 Unlocking memorymm/memlock.c:138 memlock_count dec to 0
activate/fs.c:169 Removing /dev/VG01/s3 activate/fs.c:176 Linking /dev/VG01/s3 -> /dev/mapper/VG01-s3 activate/fs.c:176 Linking /dev/VG01/s5 -> /dev/mapper/VG01-s5 activate/fs.c:169 Removing /dev/VG01/s1 activate/fs.c:176 Linking /dev/VG01/s1 -> /dev/mapper/VG01-s1 activate/fs.c:169 Removing /dev/VG01/s4 activate/fs.c:176 Linking /dev/VG01/s4 -> /dev/mapper/VG01-s4 activate/fs.c:169 Removing /dev/VG01/s2 activate/fs.c:176 Linking /dev/VG01/s2 -> /dev/mapper/VG01-s2 activate/fs.c:169 Removing /dev/VG01/lv1 activate/fs.c:176 Linking /dev/VG01/lv1 -> /dev/mapper/VG01-lv1
format_text/archiver.c:364 Creating volume group backup "/etc/lvm/backup/VG01"
(seqno 12).format_text/format-text.c:661 Writing VG01 metadata to /etc/lvm/backup/.lvm_proNAS_2497_1510734533format_text/format-text.c:705 Committing VG01 metadata (12)format_text/format-text.c:706 Renaming /etc/lvm/backup/VG01.tmp to /etc/lvm/ba
ckup/VG01
lvcreate.c:783 Logical volume "s5" createdlocking/file_locking.c:59 Unlocking /var/lock/lvm/V_VG01device/dev-io.c:456 Closed /dev/sdafilters/filter-persistent.c:181 Dumping persistent device cache to /etc/lvm/.c
achecache/lvmcache.c:574 Wiping internal VG cache
here is the verbose log of create snapshot volume but hang
**************************************************************************config/config.c:778 log/activation not found in config: defaulting to 0commands/toolcontext.c:146 Logging initialised at Sun Sep 18 00:13:12 2005
config/config.c:773 Setting global/umask to 63commands/toolcontext.c:165 Set umask to 0077
config/config.c:758 Setting devices/dir to /dev config/config.c:758 Setting global/proc to /proc config/config.c:773 Setting global/activation to 1 config/config.c:778 global/suffix not found in config: defaulting to 1 config/config.c:764 global/units not found in config: defaulting to h regex/matcher.c:267 Matcher built with 5 dfa states config/config.c:758 Setting devices/cache to /etc/lvm/.cache config/config.c:773 Setting devices/write_cache_state to 1 device/dev-io.c:425 Opened /etc/lvm/.cache RO device/dev-io.c:456 Closed /etc/lvm/.cache device/dev-cache.c:228 /dev/sda: Added to device cache filters/filter-persistent.c:127 Loaded persistent filter cache from /etc/lvm/. cache config/config.c:773 Setting activation/reserved_stack to 256 config/config.c:773 Setting activation/reserved_memory to 8192 config/config.c:773 Setting activation/process_priority to -18
format1/format1.c:588 Initialised format: lvm1format_pool/format_pool.c:355 Initialised format: poolformat_text/format-text.c:1706 Initialised format: lvm2config/config.c:764 global/format not found in config: defaulting to lvm2striped/striped.c:231 Initialised segtype: stripedzero/zero.c:100 Initialised segtype: zeroerror/errseg.c:100 Initialised segtype: errorsnapshot/snapshot.c:165 Initialised segtype: snapshotmirror/mirrored.c:315 Initialised segtype: mirror
config/config.c:773 Setting backup/retain_days to 30 config/config.c:773 Setting backup/retain_min to 10 config/config.c:758 Setting backup/archive_dir to /etc/lvm/archive config/config.c:758 Setting backup/backup_dir to /etc/lvm/backup config/config.c:778 global/fallback_to_lvm1 not found in config: defaulting to 0 lvmcmdline.c:812 Parsing: lvcreate -s -L64 -n s6 /dev/VG01/lv1 lvmcmdline.c:836 Processing: lvcreate -s -L64 -n s6 /dev/VG01/lv1 lvmcmdline.c:839 O_DIRECT will be used
config/config.c:773 Setting global/locking_type to 1config/config.c:758 Setting global/locking_dir to /var/lock/lvmlocking/locking.c:139 File-based locking enabled.
lvcreate.c:306 Setting chunksize to 16 sectors.activate/activate.c:302 Getting target version for snapshotioctl/libdm-iface.c:1326 dm version Oioctl/libdm-iface.c:1326 dm versions Oactivate/activate.c:302 Getting target version for snapshot-originioctl/libdm-iface.c:1326 dm versions Oconfig/config.c:773 Setting activation/mirror_region_size to 512locking/file_locking.c:164 Locking /var/lock/lvm/V_VG01 WB
lvcreate.c:435 Finding volume group "VG01"device/dev-io.c:425 Opened /dev/sda RW O_DIRECTdevice/dev-io.c:134 /dev/sda: block size is 4096 byteslabel/label.c:168 /dev/sda: lvm2 label detectedcache/lvmcache.c:426 lvmcache: /dev/sda now orphanedcache/lvmcache.c:426 lvmcache: /dev/sda now in VG VG01label/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s5 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (12) from /dev/sda at 26624 s ize 3047 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 145: NULL(0:0) metadata/lv_manip.c:1153 Creating logical volume s6 metadata/pv_map.c:47 Allowing allocation on /dev/sda start PE 7 length 145 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 1: s6(0:0) metadata/pv_manip.c:242 /dev/sda 7: 8 144: NULL(0:0)
format_text/format-text.c:397 Writing VG01 metadata to /dev/sda at 29696 len 3
273format_text/format-text.c:483 Pre-Committing VG01 metadata (13) to /dev/sda he
ader at 4096format_text/archiver.c:364 Creating volume group backup "/etc/lvm/backup/VG01"
(seqno 13).format_text/format-text.c:661 Writing VG01 metadata to /etc/lvm/backup/.lvm_proNAS_2516_4686790format_text/format-text.c:705 Committing VG01 metadata (13)format_text/format-text.c:706 Renaming /etc/lvm/backup/VG01.tmp to /etc/lvm/ba
ckup/VG01format_text/format-text.c:483 Committing VG01 metadata (13) to /dev/sda header
at 4096locking/file_locking.c:245 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZ
K7A5JOgpUBnciRrm1UQPLpjP (R)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjPlabel/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s5 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (13) from /dev/sda at 29696 s ize 3273 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 1: s6(0:0) metadata/pv_manip.c:242 /dev/sda 7: 8 144: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"config/config.c:758 Setting activation/missing_stripe_filler to /dev/ioerroractivate/dev_manager.c:1048 Getting device info for VG01-s6ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5
JOgpUBnciRrm1UQPLpjP Nioctl/libdm-iface.c:1326 dm info VG01-s6 Nmm/memlock.c:119 Unlocking memorymm/memlock.c:138 memlock_count dec to 0activate/fs.c:176 Linking /dev/VG01/s6 -> /dev/mapper/VG01-s6
toollib.c:1087 Zeroing start of logical volume "s6"device/dev-cache.c:228 /dev/VG01/s6: Added to device cache
device/dev-io.c:425 Opened /dev/VG01/s6 RW O_DIRECT device/dev-io.c:584 Wiping /dev/VG01/s6 at sector 0 length 8 sectors device/dev-io.c:134 /dev/VG01/s6: block size is 4096 bytes device/dev-io.c:456 Closed /dev/VG01/s6
locking/file_locking.c:240 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZ
K7A5JOgpUBnciRrm1UQPLpjP (NL)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjPlabel/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s5 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (13) from /dev/sda at 29696 s ize 3273 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 1: s6(0:0) metadata/pv_manip.c:242 /dev/sda 7: 8 144: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-s6ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5
JOgpUBnciRrm1UQPLpjP Omm/memlock.c:119 Unlocking memorymm/memlock.c:138 memlock_count dec to 0activate/fs.c:211 Removing link /dev/VG01/s6locking/file_locking.c:235 Unlocking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnU
RZK7A5JOgpUBnciRrm1UQPLpjPmetadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjPlabel/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s5 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (13) from /dev/sda at 29696 s ize 3273 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 1: s6(0:0) metadata/pv_manip.c:242 /dev/sda 7: 8 144: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-s6ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5
JOgpUBnciRrm1UQPLpjP Nioctl/libdm-iface.c:1326 dm info VG01-s6 Nlocking/file_locking.c:250 Locking LV mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qi
e6tyA0ztVEJcQvJi9CvcngrT (W)metadata/metadata.c:1158 Finding volume group for uuid mGsdNLkAeP8eWiFjBTybhs3
5PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrTlabel/label.c:168 /dev/sda: lvm2 label detectedlabel/label.c:168 /dev/sda: lvm2 label detected
config/config.c:758 Setting cow_store to s1 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s2 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s3 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s4 config/config.c:758 Setting origin to lv1 config/config.c:758 Setting cow_store to s5 config/config.c:758 Setting origin to lv1 format_text/format-text.c:311 Read VG01 metadata (13) from /dev/sda at 29696 s ize 3273 metadata/pv_manip.c:242 /dev/sda 0: 0 2: lv1(0:0) metadata/pv_manip.c:242 /dev/sda 1: 2 1: s1(0:0) metadata/pv_manip.c:242 /dev/sda 2: 3 1: s2(0:0) metadata/pv_manip.c:242 /dev/sda 3: 4 1: s3(0:0) metadata/pv_manip.c:242 /dev/sda 4: 5 1: s4(0:0) metadata/pv_manip.c:242 /dev/sda 5: 6 1: s5(0:0) metadata/pv_manip.c:242 /dev/sda 6: 7 1: s6(0:0) metadata/pv_manip.c:242 /dev/sda 7: 8 144: NULL(0:0)
metadata/metadata.c:1164 Found volume group "VG01"activate/dev_manager.c:1048 Getting device info for VG01-lv1ioctl/libdm-iface.c:1326 dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6ty
A0ztVEJcQvJi9CvcngrT N
hand when get device mapper info ID,
and no Unlocking memory log found.....
verbose log from console when created snapshot then process hang. lvcreate -s -L64 -n s6 /dev/VG01/lv1
*************************************
.............
Suspending VG01-s3-cow
dm suspend VG01-s3-cow N
Suspending VG01-s1
dm suspend VG01-s1 N
Suspending VG01-s4
dm suspend VG01-s4 N
Suspending VG01-s2
dm suspend VG01-s2 N
Suspending VG01-lv1-real
dm suspend VG01-lv1-real N
Suspending VG01-s1-cow
dm suspend VG01-s1-cow N
Suspending VG01-s4-cow
dm suspend VG01-s4-cow N
Suspending VG01-s2-cow
dm suspend VG01-s2-cow N
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 145: NULL(0:0)
Writing VG01 metadata to /dev/sda at 26624 len 3047 Pre-Committing VG01 metadata (12) to /dev/sda header at 4096 Committing VG01 metadata (12) to /dev/sda header at 4096 Unlocking LV
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT
Finding volume group for uuid
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (12) from /dev/sda at 26624 size 3047
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 145: NULL(0:0)
Found volume group "VG01"
Getting device info for VG01-lv1
dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT N
dm names O
Found existing layer 'VG01-s2-cow'
Getting device info for VG01-s2-cow
dm info VG01-s2-cow N
Found existing layer 'VG01-s3-cow'
Getting device info for VG01-s3-cow
dm info VG01-s3-cow N
Found existing layer 'VG01-s4'
Getting device info for VG01-s4
dm info VG01-s4 N
Found existing layer 'VG01-s3'
Getting device info for VG01-s3
dm info VG01-s3 N
Found existing layer 'VG01-lv1-real'
Getting device info for VG01-lv1-real
dm info VG01-lv1-real N
Found existing layer 'VG01-lv1'
Getting device info for VG01-lv1
dm info VG01-lv1 N
Found existing layer 'VG01-s4-cow'
Getting device info for VG01-s4-cow
dm info VG01-s4-cow N
Found existing layer 'VG01-s2'
Getting device info for VG01-s2
dm info VG01-s2 N
Found existing layer 'VG01-s1'
Getting device info for VG01-s1
dm info VG01-s1 N
Found existing layer 'VG01-s1-cow'
Getting device info for VG01-s1-cow
dm info VG01-s1-cow N
Found active lv lv1 (suspended)
Found active lv s1 (suspended)
Found active lv s2 (suspended)
Found active lv s3 (suspended)
Found active lv s4 (suspended)
Getting device info for VG01-s5-cow
dm info
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7-cow N
dm info VG01-s5-cow N
Getting device info for VG01-s5
dm info
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7 N
dm info VG01-s5 N
Loading VG01-s3-cow
Adding target: 0 131072 linear /dev/sda 525440
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq0pE5C9lW88MYp9h2NH27bpf49N0DB2lA-cow N
Activated VG01-s3-cow
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq0pE5C9lW88MYp9h2NH27bpf49N0DB2lA-cow 253:006
Loading VG01-lv1-real
Adding target: 0 262144 linear /dev/sda 1152
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT-real N
Resuming VG01-lv1-real
dm resume VG01-lv1-real N
Activated VG01-lv1-real
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT-real 253:001
Loading VG01-s3
Adding target: 0 262144 snapshot 253:001 253:006 P 16
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq0pE5C9lW88MYp9h2NH27bpf49N0DB2lA N
Activated VG01-s3
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq0pE5C9lW88MYp9h2NH27bpf49N0DB2lA 253:007
Loading VG01-s5-cow
Adding target: 0 131072 linear /dev/sda 787584
dm create VG01-s5-cowmGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7-cow O
dm reload VG01-s5-cow O
dm resume VG01-s5-cow N
Activated VG01-s5-cow
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7-cow 253:010
Loading VG01-s5
Adding target: 0 262144 snapshot 253:001 253:010 P 16
dm create VG01-s5mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7 O
dm reload VG01-s5 O
dm resume VG01-s5 N
Activated VG01-s5
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqsGoa5JEGpk4nXxhxd75lDLjzMXKs1nD7 253:011
Loading VG01-s1-cow
Adding target: 0 131072 linear /dev/sda 263296
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqU8iY0rdEugG8mBkjL0p24O2XxuG67fCC-cow N
Activated VG01-s1-cow
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqU8iY0rdEugG8mBkjL0p24O2XxuG67fCC-cow 253:002
Loading VG01-s1
Adding target: 0 262144 snapshot 253:001 253:002 P 16
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqU8iY0rdEugG8mBkjL0p24O2XxuG67fCC N
Activated VG01-s1
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqU8iY0rdEugG8mBkjL0p24O2XxuG67fCC 253:003
Loading VG01-s4-cow
Adding target: 0 131072 linear /dev/sda 656512
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqpkUBhz1E4jcl9ljQOayfUUwZY0nF3u8M-cow N
Activated VG01-s4-cow
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqpkUBhz1E4jcl9ljQOayfUUwZY0nF3u8M-cow 253:008
Loading VG01-s4
Adding target: 0 262144 snapshot 253:001 253:008 P 16
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqpkUBhz1E4jcl9ljQOayfUUwZY0nF3u8M N
Activated VG01-s4
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqpkUBhz1E4jcl9ljQOayfUUwZY0nF3u8M 253:009
Loading VG01-s2-cow
Adding target: 0 131072 linear /dev/sda 394368
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq3IM2X651mCRcEXfTqa7AkNJsKv1skiBu-cow N
Activated VG01-s2-cow
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq3IM2X651mCRcEXfTqa7AkNJsKv1skiBu-cow 253:004
Loading VG01-s2
Adding target: 0 262144 snapshot 253:001 253:004 P 16
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq3IM2X651mCRcEXfTqa7AkNJsKv1skiBu N
Activated VG01-s2
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsq3IM2X651mCRcEXfTqa7AkNJsKv1skiBu 253:005
Loading VG01-lv1
Adding target: 0 262144 snapshot-origin 253:001
dm reload mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT N
Activated VG01-lv1
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT 253:000
Resuming VG01-s3-cow
dm resume VG01-s3-cow N
Resuming VG01-s3
dm resume VG01-s3 N
Resuming VG01-s2-cow
dm resume VG01-s2-cow N
Resuming VG01-s1-cow
dm resume VG01-s1-cow N
Resuming VG01-s1
dm resume VG01-s1 N
Resuming VG01-s4-cow
dm resume VG01-s4-cow N
Resuming VG01-s4
dm resume VG01-s4 N
Resuming VG01-s2
dm resume VG01-s2 N
Resuming VG01-lv1
dm resume VG01-lv1 N
Unlocking memory
memlock_count dec to 0
Removing /dev/VG01/s3
Linking /dev/VG01/s3 -> /dev/mapper/VG01-s3
Linking /dev/VG01/s5 -> /dev/mapper/VG01-s5
Removing /dev/VG01/s1
Linking /dev/VG01/s1 -> /dev/mapper/VG01-s1
Removing /dev/VG01/s4
Linking /dev/VG01/s4 -> /dev/mapper/VG01-s4
Removing /dev/VG01/s2
Linking /dev/VG01/s2 -> /dev/mapper/VG01-s2
Removing /dev/VG01/lv1
Linking /dev/VG01/lv1 -> /dev/mapper/VG01-lv1
Creating volume group backup "/etc/lvm/backup/VG01" (seqno 12).
Writing VG01 metadata to /etc/lvm/backup/.lvm_proNAS_2497_1510734533 Committing VG01 metadata (12)
Renaming /etc/lvm/backup/VG01.tmp to /etc/lvm/backup/VG01
Logical volume "s5" created
Unlocking /var/lock/lvm/V_VG01
Closed /dev/sda
Dumping persistent device cache to /etc/lvm/.cache
Wiping internal VG cache
-bash-3.00# cp -af /etc/ /mnt/lv1/etc6
-bash-3.00# lvcreate -s -L64 -n s6 /dev/VG01/lv1
Setting log/indent to 1
Setting log/prefix to
Setting log/command_names to 0
Setting global/test to 0
Setting log/overwrite to 1
Setting log/file to /var/log/lvm2.log
log/activation not found in config: defaulting to 0
Logging initialised at Sun Sep 18 00:13:12 2005
Setting global/umask to 63
Set umask to 0077
Setting devices/dir to /dev
Setting global/proc to /proc
Setting global/activation to 1
global/suffix not found in config: defaulting to 1 global/units not found in config: defaulting to h
Matcher built with 5 dfa states
Setting devices/cache to /etc/lvm/.cache
Setting devices/write_cache_state to 1
Opened /etc/lvm/.cache RO
Closed /etc/lvm/.cache
/dev/sda: Added to device cache
Loaded persistent filter cache from /etc/lvm/.cache Setting activation/reserved_stack to 256
Setting activation/reserved_memory to 8192
Setting activation/process_priority to -18
Initialised format: lvm1
Initialised format: pool
Initialised format: lvm2
global/format not found in config: defaulting to lvm2 Initialised segtype: striped
Initialised segtype: zero
Initialised segtype: error
Initialised segtype: snapshot
Initialised segtype: mirror
Setting backup/retain_days to 30
Setting backup/retain_min to 10
Setting backup/archive_dir to /etc/lvm/archive
Setting backup/backup_dir to /etc/lvm/backup global/fallback_to_lvm1 not found in config: defaulting to 0
Parsing: lvcreate -s -L64 -n s6 /dev/VG01/lv1
Processing: lvcreate -s -L64 -n s6 /dev/VG01/lv1 O_DIRECT will be used
Setting global/locking_type to 1
Setting global/locking_dir to /var/lock/lvm
File-based locking enabled.
Setting chunksize to 16 sectors.
Getting target version for snapshot
dm version O
dm versions O
Getting target version for snapshot-origin
dm versions O
Setting activation/mirror_region_size to 512
Locking /var/lock/lvm/V_VG01 WB
Finding volume group "VG01"
Opened /dev/sda RW O_DIRECT
/dev/sda: block size is 4096 bytes
/dev/sda: lvm2 label detected
lvmcache: /dev/sda now orphaned
lvmcache: /dev/sda now in VG VG01
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (12) from /dev/sda at 26624 size 3047
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 145: NULL(0:0)
Creating logical volume s6
Allowing allocation on /dev/sda start PE 7 length 145
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 1: s6(0:0)
/dev/sda 7: 8 144: NULL(0:0)
Writing VG01 metadata to /dev/sda at 29696 len 3273 Pre-Committing VG01 metadata (13) to /dev/sda header at 4096
Creating volume group backup "/etc/lvm/backup/VG01" (seqno 13).
Writing VG01 metadata to /etc/lvm/backup/.lvm_proNAS_2516_4686790 Committing VG01 metadata (13)
Renaming /etc/lvm/backup/VG01.tmp to /etc/lvm/backup/VG01 Committing VG01 metadata (13) to /dev/sda header at 4096 Locking LV
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP (R)
Finding volume group for uuid
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (13) from /dev/sda at 29696 size 3273
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 1: s6(0:0)
/dev/sda 7: 8 144: NULL(0:0)
Found volume group "VG01"
Setting activation/missing_stripe_filler to /dev/ioerror
Getting device info for VG01-s6
dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP N
dm info VG01-s6 N
Locking memory
memlock_count inc to 1
dm names O
Found existing layer 'VG01-s2-cow'
Getting device info for VG01-s2-cow
dm info VG01-s2-cow N
Found existing layer 'VG01-s5'
Getting device info for VG01-s5
dm info VG01-s5 N
Found existing layer 'VG01-s3-cow'
Getting device info for VG01-s3-cow
dm info VG01-s3-cow N
Found existing layer 'VG01-s4'
Getting device info for VG01-s4
dm info VG01-s4 N
Found existing layer 'VG01-s3'
Getting device info for VG01-s3
dm info VG01-s3 N
Found existing layer 'VG01-lv1-real'
Getting device info for VG01-lv1-real
dm info VG01-lv1-real N
Found existing layer 'VG01-lv1'
Getting device info for VG01-lv1
dm info VG01-lv1 N
Found existing layer 'VG01-s4-cow'
Getting device info for VG01-s4-cow
dm info VG01-s4-cow N
Found existing layer 'VG01-s2'
Getting device info for VG01-s2
dm info VG01-s2 N
Found existing layer 'VG01-s1'
Getting device info for VG01-s1
dm info VG01-s1 N
Found existing layer 'VG01-s5-cow'
Getting device info for VG01-s5-cow
dm info VG01-s5-cow N
Found existing layer 'VG01-s1-cow'
Getting device info for VG01-s1-cow
dm info VG01-s1-cow N
Found active lv lv1
Found active lv s1
Found active lv s2
Found active lv s3
Found active lv s4
Found active lv s5
Getting device info for VG01-s6
dm info
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP N
dm info VG01-s6 N
Loading VG01-s6
Adding target: 0 131072 linear /dev/sda 918656
dm create VG01-s6
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP O
dm reload VG01-s6 O
dm resume VG01-s6 N
Activated VG01-s6
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP 253:012
Unlocking memory
memlock_count dec to 0
Linking /dev/VG01/s6 -> /dev/mapper/VG01-s6
Zeroing start of logical volume "s6"
/dev/VG01/s6: Added to device cache
Opened /dev/VG01/s6 RW O_DIRECT
Wiping /dev/VG01/s6 at sector 0 length 8 sectors /dev/VG01/s6: block size is 4096 bytes
Closed /dev/VG01/s6
Locking LV
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP (NL)
Finding volume group for uuid
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (13) from /dev/sda at 29696 size 3273
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 1: s6(0:0)
/dev/sda 7: 8 144: NULL(0:0)
Found volume group "VG01"
Getting device info for VG01-s6
dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP O
Locking memory
memlock_count inc to 1
dm names O
Found existing layer 'VG01-s2-cow'
Getting device info for VG01-s2-cow
dm info VG01-s2-cow N
Found existing layer 'VG01-s6'
Getting device info for VG01-s6
dm info VG01-s6 N
Found existing layer 'VG01-s5'
Getting device info for VG01-s5
dm info VG01-s5 N
Found existing layer 'VG01-s3-cow'
Getting device info for VG01-s3-cow
dm info VG01-s3-cow N
Found existing layer 'VG01-s4'
Getting device info for VG01-s4
dm info VG01-s4 N
Found existing layer 'VG01-s3'
Getting device info for VG01-s3
dm info VG01-s3 N
Found existing layer 'VG01-lv1-real'
Getting device info for VG01-lv1-real
dm info VG01-lv1-real N
Found existing layer 'VG01-lv1'
Getting device info for VG01-lv1
dm info VG01-lv1 N
Found existing layer 'VG01-s4-cow'
Getting device info for VG01-s4-cow
dm info VG01-s4-cow N
Found existing layer 'VG01-s2'
Getting device info for VG01-s2
dm info VG01-s2 N
Found existing layer 'VG01-s1'
Getting device info for VG01-s1
dm info VG01-s1 N
Found existing layer 'VG01-s5-cow'
Getting device info for VG01-s5-cow
dm info VG01-s5-cow N
Found existing layer 'VG01-s1-cow'
Getting device info for VG01-s1-cow
dm info VG01-s1-cow N
Found active lv lv1
Found active lv s6
Found active lv s1
Found active lv s2
Found active lv s3
Found active lv s4
Found active lv s5
Removing VG01-s6
Unlocking memory
memlock_count dec to 0
Removing link /dev/VG01/s6
Unlocking LV
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP
Finding volume group for uuid
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (13) from /dev/sda at 29696 size 3273
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 1: s6(0:0)
/dev/sda 7: 8 144: NULL(0:0)
Found volume group "VG01"
Getting device info for VG01-s6
dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP N
dm info VG01-s6 N
Locking LV
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT (W)
Finding volume group for uuid
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT
/dev/sda: lvm2 label detected
/dev/sda: lvm2 label detected
Read VG01 metadata (13) from /dev/sda at 29696 size 3273
/dev/sda 0: 0 2: lv1(0:0)
/dev/sda 1: 2 1: s1(0:0)
/dev/sda 2: 3 1: s2(0:0)
/dev/sda 3: 4 1: s3(0:0)
/dev/sda 4: 5 1: s4(0:0)
/dev/sda 5: 6 1: s5(0:0)
/dev/sda 6: 7 1: s6(0:0)
/dev/sda 7: 8 144: NULL(0:0)
Found volume group "VG01"
Getting device info for VG01-lv1
dm info mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqmUxJX5Qie6tyA0ztVEJcQvJi9CvcngrT N
Locking memory
memlock_count inc to 1
dm names O
Found existing layer 'VG01-s2-cow'
Getting device info for VG01-s2-cow
dm info VG01-s2-cow N
Found existing layer 'VG01-s5'
Getting device info for VG01-s5
dm info VG01-s5 N
Found existing layer 'VG01-s3-cow'
Getting device info for VG01-s3-cow
dm info VG01-s3-cow N
Found existing layer 'VG01-s4'
Getting device info for VG01-s4
dm info VG01-s4 N
Found existing layer 'VG01-s3'
Getting device info for VG01-s3
dm info VG01-s3 N
Found existing layer 'VG01-lv1-real'
Getting device info for VG01-lv1-real
dm info VG01-lv1-real N
Found existing layer 'VG01-lv1'
Getting device info for VG01-lv1
dm info VG01-lv1 N
Found existing layer 'VG01-s4-cow'
Getting device info for VG01-s4-cow
dm info VG01-s4-cow N
Found existing layer 'VG01-s2'
Getting device info for VG01-s2
dm info VG01-s2 N
Found existing layer 'VG01-s1'
Getting device info for VG01-s1
dm info VG01-s1 N
Found existing layer 'VG01-s5-cow'
Getting device info for VG01-s5-cow
dm info VG01-s5-cow N
Found existing layer 'VG01-s1-cow'
Getting device info for VG01-s1-cow
dm info VG01-s1-cow N
Found active lv lv1
Found active lv s1
Found active lv s2
Found active lv s3
Found active lv s4
Found active lv s5
Getting device info for VG01-s6
dm info
mGsdNLkAeP8eWiFjBTybhs35PB8xBwsqkryMnURZK7A5JOgpUBnciRrm1UQPLpjP N
dm info VG01-s6 N
Suspending VG01-lv1
dm suspend VG01-lv1 N
*************************
process hang here..........
/ 2005-09-17 14:27:10 +0800
\ Bear Wolf:
Quoted 4 lines
I also found the process dead, that is "pdflush"
there're 2 "pdflush" always running on my system,
but one is dead after I create the 3rd snapshot volumes and access the source volume then sync
it is not "dead", it is in "uninteruptible sleep". that is a big difference.
yes, those are the kernel threads responsible for the sync. there are initially two of them per cpu.
if they (try to) sync to some device mapper target which is suspended, they themselves get suspended.
this can hang the system: no io possible, nothing possible anymore that needs io...
Quoted 37 lines
-bash-3.00# ps x
PID TTY STAT TIME COMMAND 1 ? S 0:01 init [2] 2 ? S 0:00 [migration/0] 3 ? SN 0:00 [ksoftirqd/0] 4 ? S< 0:00 [events/0] 5 ? S< 0:00 [khelper] 6 ? S< 0:00 [kthread] 8 ? S< 0:00 [kacpid] 70 ? S< 0:00 [kblockd/0] 73 ? S< 0:00 [khubd] 129 ? S 0:00 [pdflush] 130 ? D 0:00 [pdflush] 132 ? S< 0:00 [aio/0] 131 ? S 0:00 [kswapd0] 134 ? S< 0:00 [xfslogd/0] 133 ? S 0:00 [cifsoplockd] 135 ? S< 0:00 [xfsdatad/0] 136 ? S 0:00 [xfsbufd] 723 ? S< 0:00 [kseriod] 773 ? S 0:00 [scsi_eh_0] 777 ? S< 0:00 [ata/0] 801 ? S< 0:00 [kcryptd/0] 934 ? S< 0:00 [kcopyd] 1330 ? Ss 0:00 syslogd -m 0 1334 ? Ss 0:00 klogd -x 1343 ? Ss 0:00 /usr/httpd/bin/httpd 1353 ? Ss 0:00 crond 1359 ? Ss 0:00 /bin/profamd 1479 tty1 Ss 0:00 -bash 1481 tty2 Ss+ 0:00 -bash 1483 tty3 Ss+ 0:00 /sbin/mingetty tty3 1485 tty4 Ss+ 0:00 /sbin/mingetty tty4 1487 tty5 Ss+ 0:00 /sbin/mingetty tty5 1903 ? S 0:00 [xfssyncd] 1915 tty1 D+ 0:00 sync 2037 pts/0 R+ 0:00 ps x
Signature · 3 lines
: Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :
Thank you Ellenberg.
now I learn more things..^_^
should I put this at Redhat Bugzila?
because it's always reproducible with RH-FC3,
"demsetup resume target &" still not work..
2005/9/18, Lars Ellenberg <[email protected]>:
Quoted 54 lines
/ 2005-09-17 14:27:10 +0800
it is not "dead", it is in "uninteruptible sleep". that is a big difference.yes, those are the kernel threads responsible for the sync. there are initially two of them per cpu.
if they (try to) sync to some device mapper target which is suspended, they themselves get suspended.
this can hang the system: no io possible, nothing possible anymore that needs io...Quoted 29 lines
-bash-3.00# ps x
PID TTY STAT TIME COMMAND 1 ? S 0:01 init [2] 2 ? S 0:00 [migration/0] 3 ? SN 0:00 [ksoftirqd/0] 4 ? S< 0:00 [events/0] 5 ? S< 0:00 [khelper] 6 ? S< 0:00 [kthread] 8 ? S< 0:00 [kacpid] 70 ? S< 0:00 [kblockd/0] 73 ? S< 0:00 [khubd] 129 ? S 0:00 [pdflush] 130 ? D 0:00 [pdflush] 132 ? S< 0:00 [aio/0] 131 ? S 0:00 [kswapd0] 134 ? S< 0:00 [xfslogd/0] 133 ? S 0:00 [cifsoplockd] 135 ? S< 0:00 [xfsdatad/0] 136 ? S 0:00 [xfsbufd] 723 ? S< 0:00 [kseriod] 773 ? S 0:00 [scsi_eh_0] 777 ? S< 0:00 [ata/0] 801 ? S< 0:00 [kcryptd/0] 934 ? S< 0:00 [kcopyd] 1330 ? Ss 0:00 syslogd -m 0 1334 ? Ss 0:00 klogd -x 1343 ? Ss 0:00 /usr/httpd/bin/httpd 1353 ? Ss 0:00 crond 1359 ? Ss 0:00 /bin/profamdQuoted 8 lines
1479 tty1 Ss 0:00 -bash 1481 tty2 Ss+ 0:00 -bash 1483 tty3 Ss+ 0:00 /sbin/mingetty tty3 1485 tty4 Ss+ 0:00 /sbin/mingetty tty4 1487 tty5 Ss+ 0:00 /sbin/mingetty tty5 1903 ? S 0:00 [xfssyncd] 1915 tty1 D+ 0:00 sync 2037 pts/0 R+ 0:00 ps x--
: Lars Ellenberg Tel +43-1-8178292-0 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :