[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] lvextend - device-mapper: create ioctl failed: Device or resource busy\nFailed to suspend



More info.

strace
http://dev.gentoo.org/~dragonheart/lvstrace.txt

reveils:

ioctl(9, DM_DEV_CREATE, 0x81c51c8) = -1 EBUSY
in strace when fd 9 is /dev/mapper/control

lvextend -vvvv  -l +15000 /dev/vg/backup
....
... (searching other volumes)
...
#format_text/format-text.c:320         Read vg metadata (19) from /dev/hdb3 at 
44032 size 2265
#metadata/pv_manip.c:241         /dev/hdb3 0:      0   2560: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 1:   2560   5120: home(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 2:   7680   1280: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 3:   8960   2560: var(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 4:  11520    512: tmp(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 5:  12032  12800: media(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 6:  24832  12800: backup(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 7:  37632    277: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hda3 0:      0  11920: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hda4 0:      0   4117: usr1(0:0)
#metadata/pv_manip.c:241         /dev/hda4 1:   4117  10882: NULL(0:0)
#format_text/archiver.c:129     Archiving volume group "vg" metadata (seqno 
19).
  Extending logical volume backup to 108.59 GB
#metadata/pv_map.c:46         Allowing allocation on /dev/hdb3 start PE 0 
length 2560
#metadata/pv_map.c:46         Allowing allocation on /dev/hdb3 start PE 7680 
length 1280
#metadata/pv_map.c:46         Allowing allocation on /dev/hdb3 start PE 37632 
length 277
#metadata/pv_map.c:46         Allowing allocation on /dev/hda3 start PE 0 
length 11920
#metadata/pv_map.c:46         Allowing allocation on /dev/hda4 start PE 4117 
length 10882
#metadata/pv_manip.c:241         /dev/hdb3 0:      0   2560: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 1:   2560   5120: home(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 2:   7680   1280: NULL(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 3:   8960   2560: var(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 4:  11520    512: tmp(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 5:  12032  12800: media(0:0)
#metadata/pv_manip.c:241         /dev/hdb3 6:  24832  13077: backup(0:0)
#metadata/pv_manip.c:241         /dev/hda3 0:      0  11920: backup(13077:0)
#metadata/pv_manip.c:241         /dev/hda4 0:      0   4117: usr1(0:0)
#metadata/pv_manip.c:241         /dev/hda4 1:   4117   2803: backup(24997:0)
#metadata/pv_manip.c:241         /dev/hda4 2:   6920   8079: NULL(0:0)
#format_text/format-text.c:414         Writing vg metadata to /dev/hda3 at 
17920 len 2513
#format_text/format-text.c:414         Writing vg metadata to /dev/hda4 at 
17920 len 2513
#format_text/format-text.c:414         Writing vg metadata to /dev/hdb3 at 
46592 len 2513
#format_text/format-text.c:516         Pre-Committing vg metadata (20) 
to /dev/hda3 header at 4096
#format_text/format-text.c:516         Pre-Committing vg metadata (20) 
to /dev/hda4 header at 4096
#format_text/format-text.c:516         Pre-Committing vg metadata (20) 
to /dev/hdb3 header at 4096
#format_text/archiver.c:364     Creating volume group backup 
"/etc/lvm/backup/vg" (seqno 20).
#format_text/format-text.c:711         Writing vg metadata 
to /etc/lvm/backup/.lvm_spider_31093_1641323837
#format_text/format-text.c:755         Committing vg metadata (20)
#format_text/format-text.c:756         Renaming /etc/lvm/backup/vg.tmp 
to /etc/lvm/backup/vg
#locking/file_locking.c:250         Locking LV 
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE (W)
#metadata/metadata.c:1171       Finding volume group for uuid 
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg metadata (19) from /dev/hda3 at 
15360 size 2265
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg metadata (19) from /dev/hda4 at 
15360 size 2265
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg metadata (19) from /dev/hdb3 at 
44032 size 2265
#metadata/metadata.c:1177     Found volume group "vg"
#metadata/metadata.c:1171       Finding volume group for uuid 
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg pre-commit metadata (20) 
from /dev/hda3 at 17920 size 2513
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg pre-commit metadata (20) 
from /dev/hda4 at 17920 size 2513
#label/label.c:167       /dev/hdb3: lvm2 label detected
#label/label.c:167       /dev/hda3: lvm2 label detected
#label/label.c:167       /dev/hda4: lvm2 label detected
#format_text/format-text.c:320         Read vg pre-commit metadata (20) 
from /dev/hdb3 at 46592 size 2513
#metadata/metadata.c:1177     Found volume group "vg"
#activate/activate.c:370         Getting device info for vg-backup
#ioctl/libdm-iface.c:1454         dm version   O   [16384]
#ioctl/libdm-iface.c:1454         dm info  
LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE N   
[16384]
#ioctl/libdm-iface.c:1454         dm info  
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE N   [16384]
#ioctl/libdm-iface.c:1454         dm info vg-backup  N   [16384]
#config/config.c:757       Setting activation/missing_stripe_filler 
to /dev/ioerror
#activate/dev_manager.c:588         Getting device info for vg-backup 
[LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE]
#ioctl/libdm-iface.c:1454         dm info  
LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE O   
[16384]
#ioctl/libdm-iface.c:1454         dm info  
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE O   [16384]
#ioctl/libdm-iface.c:1454         dm info vg-backup  O   [16384]
#ioctl/libdm-iface.c:1454         dm deps   (254:3) O   [16384]
#activate/dev_manager.c:588         Getting device info for vg-backup-real 
[LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-real]
#ioctl/libdm-iface.c:1454         dm info  
LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-real O   
[16384]
#ioctl/libdm-iface.c:1454         dm info  
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-real O   
[16384]
#ioctl/libdm-iface.c:1454         dm info vg-backup-real  O   [16384]
#activate/dev_manager.c:588         Getting device info for vg-backup-cow 
[LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-cow]
#ioctl/libdm-iface.c:1454         dm info  
LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-cow O   
[16384]
#ioctl/libdm-iface.c:1454         dm info  
RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE-cow O   
[16384]
#ioctl/libdm-iface.c:1454         dm info vg-backup-cow  O   [16384]
#activate/activate.c:293       Getting target version for linear
#ioctl/libdm-iface.c:1454         dm versions   O   [16384]
#activate/activate.c:293       Getting target version for striped
#ioctl/libdm-iface.c:1454         dm versions   O   [16384]
#libdm-deptree.c:1148     Creating vg-backup
#ioctl/libdm-iface.c:1454         dm create vg-backup 
LVM-RWyOcE8FbscRWSC4k5Oo856OYtYf3mYNvlW378SXL7hdkoW6BsuvBtvIRafEqtVE N   
[16384]
#ioctl/libdm-iface.c:1471   device-mapper: create ioctl failed: Device or 
resource busy
#libdm-deptree.c:1493         <backtrace>
#activate/dev_manager.c:993         <backtrace>
#activate/activate.c:505         <backtrace>
#activate/activate.c:640         <backtrace>
#lvresize.c:530   Failed to suspend backup
#format_text/format-text.c:520         Wiping pre-committed vg metadata 
from /dev/hda3 header at 4096
#format_text/format-text.c:520         Wiping pre-committed vg metadata 
from /dev/hda4 header at 4096
#format_text/format-text.c:520         Wiping pre-committed vg metadata 
from /dev/hdb3 header at 4096
#locking/file_locking.c:59       Unlocking /var/lock/lvm/V_vg
#device/dev-io.c:483         Closed /dev/hda3
#device/dev-io.c:483         Closed /dev/hda4
#device/dev-io.c:483         Closed /dev/hdb3

Seems to map to kernel drivers/md/dm-ioctl.c:228


-- 
Daniel Black <dragonheart gentoo org>
Gentoo Crypto/dev-embedded/Forensics/NetMon

Attachment: pgp0LqAcYIwPa.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]