Skip to contentSkip to conversation

Can't create snapshot

linux-lvm Falko Zurell 2 participants 2 messages Aug 2, 2007 – Aug 7, 2007

lore
Share & tools
lore
#0 lore raw

Hello group,

I still have problems creating snapshots on my Ubuntu Linux box. Most of the time, snapshots can't be created with an strange error message. I startet the lvcreate with very verbose output, so you can see all the gory details.

+ /sbin/lvcreate -vvvv --snapshot --size 10G --name daily-snap-opt -v vg0/opt
#lvmcmdline.c:850 Processing: /sbin/lvcreate -vvvv --snapshot --size 10G --name daily-snap-opt -v vg0/opt
#lvmcmdline.c:853 O_DIRECT will be used
#config/config.c:778 Setting global/locking_type to 1
#config/config.c:763 Setting global/locking_dir to /var/lock/lvm
#locking/locking.c:139 File-based locking enabled.
#lvcreate.c:355 Setting chunksize to 16 sectors.
#activate/activate.c:293 Getting target version for snapshot
#ioctl/libdm-iface.c:1566 dm version O [16384]
#ioctl/libdm-iface.c:1566 dm versions O [16384]
#activate/activate.c:293 Getting target version for snapshot-origin
#ioctl/libdm-iface.c:1566 dm versions O [16384]
#config/config.c:778 Setting activation/mirror_region_size to 512
#locking/file_locking.c:164 Locking /var/lock/lvm/V_vg0 WB
#lvcreate.c:494 Finding volume group "vg0"

#device/dev-io.c:389         /dev/ram0: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram0 RW
#device/dev-io.c:134         /dev/ram0: block size is 1024 bytes

#label/label.c:180 /dev/ram0: No label detected
#label/label.c:278 <backtrace>
#device/dev-io.c:485 Closed /dev/ram0
#filters/filter-sysfs.c:251 /dev/loop0: Skipping (sysfs)
#filters/filter-regex.c:185 /dev/cdrom: Skipping (regex)
#device/dev-io.c:439 Opened /dev/cciss/c0d0 RO
#device/dev-io.c:264 /dev/cciss/c0d0: size is 3906830384 sectors

#device/dev-io.c:341         WARNING: /dev/cciss/c0d0 already opened read-only
#device/dev-io.c:515         /dev/cciss/c0d0: Immediate close attempt while still referenced
#device/dev-io.c:485         Closed /dev/cciss/c0d0
#device/dev-io.c:439         Opened /dev/cciss/c0d0 RW O_DIRECT
#device/dev-io.c:134         /dev/cciss/c0d0: block size is 4096 bytes
#filters/filter.c:112         /dev/cciss/c0d0: Skipping: Partition table signature found
#device/dev-io.c:485         Closed /dev/cciss/c0d0
#device/dev-io.c:439         Opened /dev/vg0/root RW O_DIRECT
#device/dev-io.c:134         /dev/vg0/root: block size is 512 bytes
#label/label.c:180       /dev/vg0/root: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/vg0/root
#device/dev-io.c:389         /dev/ram1: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram1 RW
#device/dev-io.c:134         /dev/ram1: block size is 1024 bytes
#label/label.c:180       /dev/ram1: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram1
#device/dev-io.c:439         Opened /dev/cciss/c0d0p1 RW O_DIRECT
#device/dev-io.c:134         /dev/cciss/c0d0p1: block size is 1024 bytes
#label/label.c:180       /dev/cciss/c0d0p1: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/cciss/c0d0p1
#device/dev-io.c:389         /dev/ram2: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram2 RW
#device/dev-io.c:134         /dev/ram2: block size is 1024 bytes
#label/label.c:180       /dev/ram2: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram2
#device/dev-io.c:439         Opened /dev/cciss/c0d0p2 RW O_DIRECT
#device/dev-io.c:134         /dev/cciss/c0d0p2: block size is 4096 bytes
#label/label.c:180       /dev/cciss/c0d0p2: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/cciss/c0d0p2
#device/dev-io.c:439         Opened /dev/vg0/home RW O_DIRECT
#device/dev-io.c:134         /dev/vg0/home: block size is 512 bytes
#label/label.c:180       /dev/vg0/home: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/vg0/home
#device/dev-io.c:389         /dev/ram3: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram3 RW
#device/dev-io.c:134         /dev/ram3: block size is 1024 bytes
#label/label.c:180       /dev/ram3: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram3
#device/dev-io.c:439         Opened /dev/cciss/c0d0p3 RW O_DIRECT
#device/dev-io.c:134         /dev/cciss/c0d0p3: block size is 512 bytes
#label/label.c:158       /dev/cciss/c0d0p3: lvm2 label detected
#cache/lvmcache.c:651         lvmcache: /dev/cciss/c0d0p3: now orphaned
#format_text/format-text.c:954         /dev/cciss/c0d0p3: Found metadata at 31232 size 1790 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#cache/lvmcache.c:651         lvmcache: /dev/cciss/c0d0p3: now in VG vg0
#cache/lvmcache.c:465         lvmcache: /dev/cciss/c0d0p3: setting vg0 VGID to Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBo
#cache/lvmcache.c:686         lvmcache: /dev/cciss/c0d0p3: VG vg0: Set creation host to konrad.

#device/dev-io.c:439 Opened /dev/vg0/opt RW O_DIRECT
#device/dev-io.c:134 /dev/vg0/opt: block size is 512 bytes
#label/label.c:180 /dev/vg0/opt: No label detected
#label/label.c:278 <backtrace>

#device/dev-io.c:485         Closed /dev/vg0/opt
#device/dev-io.c:389         /dev/ram4: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram4 RW
#device/dev-io.c:134         /dev/ram4: block size is 1024 bytes
#label/label.c:180       /dev/ram4: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram4
#device/dev-io.c:389         /dev/ram5: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram5 RW
#device/dev-io.c:134         /dev/ram5: block size is 1024 bytes
#label/label.c:180       /dev/ram5: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram5
#device/dev-io.c:389         /dev/ram6: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram6 RW
#device/dev-io.c:134         /dev/ram6: block size is 1024 bytes
#label/label.c:180       /dev/ram6: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram6
#device/dev-io.c:389         /dev/ram7: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram7 RW
#device/dev-io.c:134         /dev/ram7: block size is 1024 bytes
#label/label.c:180       /dev/ram7: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram7
#device/dev-io.c:389         /dev/ram8: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram8 RW
#device/dev-io.c:134         /dev/ram8: block size is 1024 bytes
#label/label.c:180       /dev/ram8: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram8
#device/dev-io.c:389         /dev/ram9: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram9 RW
#device/dev-io.c:134         /dev/ram9: block size is 1024 bytes
#label/label.c:180       /dev/ram9: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram9
#device/dev-io.c:389         /dev/ram10: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram10 RW
#device/dev-io.c:134         /dev/ram10: block size is 1024 bytes
#label/label.c:180       /dev/ram10: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram10
#device/dev-io.c:439         Opened /dev/mapper/vg0-home-real RW O_DIRECT
#device/dev-io.c:134         /dev/mapper/vg0-home-real: block size is 4096 bytes
#label/label.c:180       /dev/mapper/vg0-home-real: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/mapper/vg0-home-real
#device/dev-io.c:389         /dev/ram11: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram11 RW
#device/dev-io.c:134         /dev/ram11: block size is 1024 bytes
#label/label.c:180       /dev/ram11: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram11
#device/dev-io.c:439         Opened /dev/mapper/vg0-daily--snap--home-cow RW O_DIRECT
#device/dev-io.c:134         /dev/mapper/vg0-daily--snap--home-cow: block size is 4096 bytes
#label/label.c:180       /dev/mapper/vg0-daily--snap--home-cow: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/mapper/vg0-daily--snap--home-cow
#device/dev-io.c:389         /dev/ram12: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram12 RW
#device/dev-io.c:134         /dev/ram12: block size is 1024 bytes
#label/label.c:180       /dev/ram12: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram12
#device/dev-io.c:439         Opened /dev/vg0/daily-snap-home RW O_DIRECT
#device/dev-io.c:134         /dev/vg0/daily-snap-home: block size is 512 bytes
#label/label.c:180       /dev/vg0/daily-snap-home: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/vg0/daily-snap-home
#device/dev-io.c:389         /dev/ram13: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram13 RW
#device/dev-io.c:134         /dev/ram13: block size is 1024 bytes
#label/label.c:180       /dev/ram13: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram13
#device/dev-io.c:389         /dev/ram14: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram14 RW
#device/dev-io.c:134         /dev/ram14: block size is 1024 bytes
#label/label.c:180       /dev/ram14: No label detected
#label/label.c:278         <backtrace>
#device/dev-io.c:485         Closed /dev/ram14
#device/dev-io.c:389         /dev/ram15: Not using O_DIRECT
#device/dev-io.c:439         Opened /dev/ram15 RW
#device/dev-io.c:134         /dev/ram15: block size is 1024 bytes

#label/label.c:180 /dev/ram15: No label detected
#label/label.c:278 <backtrace>
#device/dev-io.c:485 Closed /dev/ram15
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 31232 size 1790 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 31232 size 1790 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#format_text/format-text.c:323 Read vg0 metadata (337) from /dev/cciss/c0d0p3 at 31232 size 1790

#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 0:      0   2560: root(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 1:   2560  25600: home(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 2:  28160  25600: opt(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 3:  53760 209920: NULL(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 4: 263680   2560: daily-snap-home(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 5: 266240 208736: NULL(0:0)
#format_text/archiver.c:129     Archiving volume group "vg0" metadata (seqno 337).
#metadata/lv_manip.c:1279     Creating logical volume daily-snap-opt
#metadata/pv_map.c:46         Allowing allocation on /dev/cciss/c0d0p3 start PE 53760 length 209920
#metadata/pv_map.c:46         Allowing allocation on /dev/cciss/c0d0p3 start PE 266240 length 208736
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 0:      0   2560: root(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 1:   2560  25600: home(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 2:  28160  25600: opt(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 3:  53760   2560: daily-snap-opt(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 4:  56320 207360: NULL(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 5: 263680   2560: daily-snap-home(0:0)
#metadata/pv_manip.c:241         /dev/cciss/c0d0p3 6: 266240 208736: NULL(0:0)
#format_text/format-text.c:417         Writing vg0 metadata to /dev/cciss/c0d0p3 at 33280 len 2035
#format_text/format-text.c:519         Pre-Committing vg0 metadata (338) to /dev/cciss/c0d0p3 header at 4096
#format_text/archiver.c:364     Creating volume group backup "/etc/lvm/backup/vg0" (seqno 338).
#format_text/format-text.c:714         Writing vg0 metadata to /etc/lvm/backup/.lvm_konrad_21005_2140062144
#format_text/format-text.c:758         Committing vg0 metadata (338)
#format_text/format-text.c:759         Renaming /etc/lvm/backup/vg0.tmp to /etc/lvm/backup/vg0
#format_text/format-text.c:519         Committing vg0 metadata (338) to /dev/cciss/c0d0p3 header at 4096

#locking/file_locking.c:247 Locking LV Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C (R)
#metadata/metadata.c:1202 Finding volume group for uuid Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 33280 size 2035 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 33280 size 2035 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#format_text/format-text.c:323 Read vg0 metadata (338) from /dev/cciss/c0d0p3 at 33280 size 2035
#metadata/metadata.c:1208 Found volume group "vg0"
#activate/activate.c:370 Getting device info for vg0-daily--snap--opt
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C N
[16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C N [16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt N [16384]
#mm/memlock.c:99 Locking memory
#mm/memlock.c:130 memlock_count inc to 1
#config/config.c:763 Setting activation/missing_stripe_filler to /dev/ioerror
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C O
[16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C O [16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt O [16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt-real [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt-real O
[16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt-cow [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt-cow O [16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt_mlog [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt_mlog O
[16384]
#activate/activate.c:293 Getting target version for linear
#ioctl/libdm-iface.c:1566 dm versions O [16384]
#activate/activate.c:293 Getting target version for striped
#ioctl/libdm-iface.c:1566 dm versions O [16384]
#libdm-deptree.c:1167 Creating vg0-daily--snap--opt
#ioctl/libdm-iface.c:1566 dm create vg0-daily--snap--opt LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C N
[16384]
#libdm-deptree.c:1447 Loading vg0-daily--snap--opt table
#libdm-deptree.c:1398 Adding target: 0 20971520 linear 104:3 440402304
#ioctl/libdm-iface.c:1566 dm table (254:1) O [16384]
#ioctl/libdm-iface.c:1566 dm reload (254:1) N [16384]
#libdm-deptree.c:900 Resuming vg0-daily--snap--opt (254:1)
#ioctl/libdm-iface.c:1566 dm resume (254:1) N [16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C O
[16384]
#ioctl/libdm-iface.c:1566 dm deps (254:1) O [16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt-real [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-real O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt-real O
[16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt-cow [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-cow O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt-cow O [16384]
#activate/dev_manager.c:589 Getting device info for vg0-daily--snap--opt_mlog [LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog]
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog O [16384]
#ioctl/libdm-iface.c:1566 dm info Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C-_mlog O
[16384]
#ioctl/libdm-iface.c:1566 dm info vg0-daily--snap--opt_mlog O
[16384]
#mm/memlock.c:118 Unlocking memory
#mm/memlock.c:137 memlock_count dec to 0
#activate/fs.c:172 Linking /dev/vg0/daily-snap-opt..tmp -> /dev/mapper/vg0-daily--snap--opt
#activate/fs.c:185 Installing symlink /dev/vg0/daily-snap-opt..tmp as /dev/vg0/daily-snap-opt
#activate/activate.c:863 <backtrace>
#toollib.c:1144 Clearing start of logical volume "daily-snap-opt"
#device/dev-cache.c:225 /dev/vg0/daily-snap-opt: Added to device cache

#device/dev-io.c:439         Opened /dev/vg0/daily-snap-opt RW O_DIRECT
#device/dev-io.c:623         Wiping /dev/vg0/daily-snap-opt at sector 0 length 8 sectors
#device/dev-io.c:134         /dev/vg0/daily-snap-opt: block size is 4096 bytes
#device/dev-io.c:485         Closed /dev/vg0/daily-snap-opt

#locking/file_locking.c:242 Locking LV Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C (NL)
#metadata/metadata.c:1202 Finding volume group for uuid Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 33280 size 2035 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#label/label.c:158 /dev/cciss/c0d0p3: lvm2 label detected
#format_text/format-text.c:954 /dev/cciss/c0d0p3: Found metadata at 33280 size 2035 for vg0 (Lw0OiY-teNf-jRuy-Ck2s-mqv7-A4BL-8EIzBo)
#format_text/format-text.c:323 Read vg0 metadata (338) from /dev/cciss/c0d0p3 at 33280 size 2035
#metadata/metadata.c:1208 Found volume group "vg0"
#activate/activate.c:370 Getting device info for vg0-daily--snap--opt
#ioctl/libdm-iface.c:1566 dm info LVM-Lw0OiYteNfjRuyCk2smqv7A4BL8EIzBotGlkGIQrbNTODCMAHKFxb5si5SAfIn0C O
[16384]
#activate/activate.c:762 LV vg0/daily-snap-opt in use: not deactivating
#lvcreate.c:772 Couldn't deactivate new snapshot.
#lvcreate.c:834 <backtrace>
#locking/file_locking.c:59 Unlocking /var/lock/lvm/V_vg0
#device/dev-io.c:485 Closed /dev/cciss/c0d0p3

I don't have an idea why "deactivating" of the snapshot wont work and what this for.

I'm using Kernel 2.6.20-16-server

dmsetup -v version

Library version:   1.02.08 (2006-07-17)
Driver version:    4.11.0

Any hints?

thanks in advance

Signature · 23 lines
Falko Zurell
Head of Application Management



/i-d media AG
Ohlauer Stra�e 43
D-10999 Berlin

Tel +49 (0)30 - 2 59 47 - 357
Fax +49 (0)30 - 2 59 47 - 471
www.idmedia.com

_______________________________________________

Board: Regine Haschka-Helmer (CEO), Franz Klose (CFO)
Chairman of the Supervisory Board: Christian A. Hufnagl
Headquarters: Berlin, Place of Jurisdiction: Berlin HRB 76342
UST-Id. DE812698340
_______________________________________________


This message may contain confidential information and must not be copied, disclosed or used by anybody other than the intended recipient. If you have received this message in error, please notify us immediately by reply e-mail and delete all records of the message from your computer. The views represented in this message are solely those of the author. Neither the author nor I-D Media AG accepts any liability for the contents of this message.
#1 lore raw
Quoted 10 lines · Falko Zurell

I still have problems creating snapshots on my Ubuntu Linux box. Most of the time, snapshots can't be created with an strange error message. I startet the lvcreate with very verbose output, so you can see all the gory details.

#activate/activate.c:762 LV vg0/daily-snap-opt in use: not deactivating
#lvcreate.c:772 Couldn't deactivate new snapshot.

I don't have an idea why "deactivating" of the snapshot wont work and what this for.

Usually a problem with your udev configuration.

lvm activates it temporarily to write to it, udev opens it, lvm tries to remove it (before reconfiguration) but can't because udev is using it. Either udev should not be opening it, or lvm should be waiting for udev to finish the (pointless) stuff it wants to do, depending on your point of view. There are ongoing discussions about changing the way lvm and udev interact to fix this properly for the long term.

Meanwhile one simple workaround is to temporarily turn off udev while creating the snapshot. Another involves changing your udev configuration to totally ignore such devices.

Alasdair

Signature · 1 line
[email protected]