Ticket #781 (closed defect: fixed)

Opened 17 months ago

Last modified 10 months ago

mondorescue lvm lvcreate failed

Reported by: loic Owned by: bruno
Priority: normal Milestone: 3.2.2
Component: mondo Version: 3.2.1
Severity: normal Keywords:
Cc:

Description

Hi all,

I am trying to test Mondorescue reinstall from mondorescue iso in expert mode.

I tried to rebuild the lvm structure but lvcreate failed :

system :

Dell T110 II
debian version 8.2
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64 GNU/Linux

Versions :

Paquet libmondorescue-perl : 3.2.220150910110122-0
Paquet mindi : 3.0.220150910110122-0
Paquet mindi-busybox : 1.21.1-1
Paquet mondo : 3.2.220150910110122-0

Problem :

# fdisk -l

Disk /dev/sda: 465.3 GiB, 499558383616 bytes, 975699968 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa7e58e88

Device     Boot  Start       End   Sectors  Size Id Type
/dev/sda1  *      2048    526335    524288  256M 83 Linux
/dev/sda2       526336 975699967 975173632  465G 8e Linux LVM

# pvcreate /dev/sda2
  Physical volume "/dev/sda2" successfully created

# vgcreate vg00 /dev/sda2
  Volume group "vg00" successfully created

# vgchange -a y vg00
  0 logical volume(s) in volume group "vg00" now active

]# lvcreate -n gv0 -L 40G vg00
  /dev/vg00/gv0: not found: device not cleared
  Aborting. Failed to wipe start of new LV.

]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               vg00
  PV Size               465.00 GiB / not usable 3.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              119039
  Free PE               119039
  Allocated PE          0
  PV UUID               pSaR3w-hVNH-F0w2-Ep4I-uJV5-5joM-j8Z0ft

# vgdisplay
  --- Volume group ---
  VG Name               vg00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               465.00 GiB
  PE Size               4.00 MiB
  Total PE              119039
  Alloc PE / Size       0 / 0
  Free  PE / Size       119039 / 465.00 GiB
  VG UUID               9dR497-qZcx-SMWO-oe2B-stVr-g0iN-TPx074

# lvdisplay

nothing ...

/var/log/mondorestore.log attached.

How to troubleshoot that, please suggest ...

Regards

Joel

Attachments

mondorestore.log Download (84.6 KB) - added by loic 17 months ago.

Change History

Changed 17 months ago by loic

comment:1 Changed 17 months ago by loic

The device /dev/dm-0 is not created, then udev failed for creating others symlink ?

udevd --debug --daemon

...
validate module index
Check if link configuration needs reloading.
seq 1161 queued, 'add' 'bdi'
seq 1161 forked new worker [3506]
seq 1162 queued, 'add' 'block'
seq 1161 running
seq 1162 forked new worker [3508]
seq 1163 queued, 'change' 'block'
no db file to read /run/udev/data/+bdi:252:0: No such file or directory
seq 1162 runningpassed -1 bytes to netlink monitor 0x7f6ba7fd9480

seq 1161 processed with 0
no db file to read /run/udev/data/b252:0: No such file or directory
GROUP 6 /lib/udev/rules.d/50-udev-default.rules:55
handling device node '/dev/dm-0', devnum=b252:0, mode=0660, uid=0, gid=6
can not stat() node '/dev/dm-0' (No such file or directory)
...

how to fix this ?

comment:2 Changed 17 months ago by loic

"udevadm monitor" show that all devices are added, then a kernel event "remove" delete all.

On the mondorescue expert mode system,

# udevadm monitor --environment

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[99589.316880] add      /devices/virtual/bdi/252:0 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/252:0
SEQNUM=1168
SUBSYSTEM=bdi

KERNEL[99589.316944] add      /devices/virtual/block/dm-0 (block)
ACTION=add
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
MAJOR=252
MINOR=0
SEQNUM=1169
SUBSYSTEM=block

UDEV  [99589.317541] add      /devices/virtual/bdi/252:0 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/252:0
SEQNUM=1168
SUBSYSTEM=bdi
USEC_INITIALIZED=589316903

KERNEL[99589.317593] change   /devices/virtual/block/dm-0 (block)
ACTION=change
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
DM_COOKIE=23106499
MAJOR=252
MINOR=0
SEQNUM=1170
SUBSYSTEM=block

UDEV  [99589.317831] add      /devices/virtual/block/dm-0 (block)
ACTION=add
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
DM_UDEV_DISABLE_DISK_RULES_FLAG=1
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
MAJOR=252
MINOR=0
SEQNUM=1169
SUBSYSTEM=block
USEC_INITIALIZED=589317175

UDEV  [99589.322551] change   /devices/virtual/block/dm-0 (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/dm-name-vg00-gv3 /dev/disk/by-id/dm-uuid-LVM-9dR497qZcxSMWOoe2BstVrg0iNTPx0746lJ1mz7t9lBg1RJVlZP9AS4ebvHWTAtp /dev/mapper/vg00-gv3 /dev/vg00/gv3
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
DM_ACTIVATION=1
DM_COOKIE=23106499
DM_LV_NAME=gv3
DM_NAME=vg00-gv3
DM_NOSCAN=1
DM_SUBSYSTEM_UDEV_FLAG0=1
DM_SUSPENDED=0
DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
DM_UDEV_PRIMARY_SOURCE_FLAG=1
DM_UDEV_RULES=1
DM_UUID=LVM-9dR497qZcxSMWOoe2BstVrg0iNTPx0746lJ1mz7t9lBg1RJVlZP9AS4ebvHWTAtp
DM_VG_NAME=vg00
MAJOR=252
MINOR=0
SEQNUM=1170
SUBSYSTEM=block
USEC_INITIALIZED=589317175

KERNEL[99589.327838] remove   /devices/virtual/block/dm-0 (block)
ACTION=remove
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
DM_COOKIE=6335381
MAJOR=252
MINOR=0
SEQNUM=1171
SUBSYSTEM=block

KERNEL[99589.328187] remove   /devices/virtual/bdi/252:0 (bdi)
ACTION=remove
DEVPATH=/devices/virtual/bdi/252:0
SEQNUM=1172
SUBSYSTEM=bdi

KERNEL[99589.328272] remove   /devices/virtual/block/dm-0 (block)
ACTION=remove
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
MAJOR=252
MINOR=0
SEQNUM=1173
SUBSYSTEM=block

UDEV  [99589.328374] remove   /devices/virtual/bdi/252:0 (bdi)
ACTION=remove
DEVPATH=/devices/virtual/bdi/252:0
SEQNUM=1172
SUBSYSTEM=bdi
USEC_INITIALIZED=9328187

UDEV  [99589.330734] remove   /devices/virtual/block/dm-0 (block)
ACTION=remove
DEVLINKS=/dev/disk/by-id/dm-name-vg00-gv3 /dev/disk/by-id/dm-uuid-LVM-9dR497qZcxSMWOoe2BstVrg0iNTPx0746lJ1mz7t9lBg1RJVlZP9AS4ebvHWTAtp /dev/mapper/vg00-gv3 /dev/vg00/gv3
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
DM_ACTIVATION=1
DM_COOKIE=6335381
DM_LV_NAME=gv3
DM_NAME=vg00-gv3
DM_NOSCAN=1
DM_SUBSYSTEM_UDEV_FLAG0=1
DM_SUSPENDED=0
DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
DM_UDEV_PRIMARY_SOURCE_FLAG=1
DM_UDEV_RULES=1
DM_UUID=LVM-9dR497qZcxSMWOoe2BstVrg0iNTPx0746lJ1mz7t9lBg1RJVlZP9AS4ebvHWTAtp
DM_VG_NAME=vg00
MAJOR=252
MINOR=0
SEQNUM=1171
SUBSYSTEM=block
USEC_INITIALIZED=589317175

UDEV  [99589.330861] remove   /devices/virtual/block/dm-0 (block)
ACTION=remove
DEVNAME=/dev/dm-0
DEVPATH=/devices/virtual/block/dm-0
DEVTYPE=disk
MAJOR=252
MINOR=0
SEQNUM=1173
SUBSYSTEM=block
USEC_INITIALIZED=9328304

KERNEL[99589.361222] change   /devices/pci0000:00/0000:00:01.0/0000:01:00.0/host6/target6:1:0/6:1:0:0/block/sda/sda2 (block)
ACTION=change
DEVNAME=/dev/sda2
DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host6/target6:1:0/6:1:0:0/block/sda/sda2
DEVTYPE=partition
MAJOR=8
MINOR=2
SEQNUM=1174
SUBSYSTEM=block

UDEV  [99589.363847] change   /devices/pci0000:00/0000:00:01.0/0000:01:00.0/host6/target6:1:0/6:1:0:0/block/sda/sda2 (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/lvm-pv-uuid-pSaR3w-hVNH-F0w2-Ep4I-uJV5-5joM-j8Z0ft /dev/disk/by-id/scsi-3600508e0000000003451a0b3b2b67b0c-part2 /dev/disk/by-id/wwn-0x600508e0000000003451a0b3b2b67b0c-part2 /dev/disk/by-path/pci-0000:01:00.0-scsi-0:1:0:0-part2
DEVNAME=/dev/sda2
DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host6/target6:1:0/6:1:0:0/block/sda/sda2
DEVTYPE=partition
ID_BUS=scsi
ID_FS_TYPE=LVM2_member
ID_FS_USAGE=raid
ID_FS_UUID=pSaR3w-hVNH-F0w2-Ep4I-uJV5-5joM-j8Z0ft
ID_FS_UUID_ENC=pSaR3w-hVNH-F0w2-Ep4I-uJV5-5joM-j8Z0ft
ID_FS_VERSION=LVM2 001
ID_MODEL=Virtual_Disk
ID_MODEL_ENC=Virtual\x20Disk\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:0
ID_PART_ENTRY_NUMBER=2
ID_PART_ENTRY_OFFSET=526336
ID_PART_ENTRY_SCHEME=dos
ID_PART_ENTRY_SIZE=975173632
ID_PART_ENTRY_TYPE=0x8e
ID_PART_ENTRY_UUID=a7e58e88-02
ID_PART_TABLE_TYPE=dos
ID_PART_TABLE_UUID=a7e58e88
ID_PATH=pci-0000:01:00.0-scsi-0:1:0:0
ID_PATH_TAG=pci-0000_01_00_0-scsi-0_1_0_0
ID_REVISION=1028
ID_SCSI=1
ID_SERIAL=3600508e0000000003451a0b3b2b67b0c
ID_SERIAL_SHORT=600508e0000000003451a0b3b2b67b0c
ID_TYPE=disk
ID_VENDOR=Dell
ID_VENDOR_ENC=Dell\x20\x20\x20\x20
ID_WWN=0x600508e000000000
ID_WWN_VENDOR_EXTENSION=0x3451a0b3b2b67b0c
ID_WWN_WITH_EXTENSION=0x600508e0000000003451a0b3b2b67b0c
MAJOR=8
MINOR=2
SEQNUM=1174
SUBSYSTEM=block
USEC_INITIALIZED=85592

The normal behaviour on the running system mondo archived is (with systemd) :

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1207.404070] add      /devices/virtual/bdi/254:9 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/254:9
SEQNUM=1812
SUBSYSTEM=bdi

KERNEL[1207.404201] add      /devices/virtual/block/dm-9 (block)
ACTION=add
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
MAJOR=254
MINOR=9
SEQNUM=1813
SUBSYSTEM=block

KERNEL[1207.404614] change   /devices/virtual/block/dm-9 (block)
ACTION=change
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
DM_COOKIE=23128443
MAJOR=254
MINOR=9
SEQNUM=1814
SUBSYSTEM=block

UDEV  [1207.404667] add      /devices/virtual/bdi/254:9 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/254:9
SEQNUM=1812
SUBSYSTEM=bdi
USEC_INITIALIZED=7404083

UDEV  [1207.404926] add      /devices/virtual/block/dm-9 (block)
ACTION=add
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
DM_UDEV_DISABLE_DISK_RULES_FLAG=1
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
MAJOR=254
MINOR=9
SEQNUM=1813
SUBSYSTEM=block
SYSTEMD_READY=0
TAGS=:systemd:
USEC_INITIALIZED=7404353

UDEV  [1207.409881] change   /devices/virtual/block/dm-9 (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/dm-name-vg00-gv3 /dev/disk/by-id/dm-uuid-LVM-aSziVsETAv6V5mYefDClqhuxzUVkjZBh11DpF0g2jiKafsFG3fZivSLVdfec3DNe /dev/mapper/vg00-gv3 /dev/vg00/gv3
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
DM_ACTIVATION=1
DM_COOKIE=23128443
DM_LV_NAME=gv3
DM_NAME=vg00-gv3
DM_NOSCAN=1
DM_SUBSYSTEM_UDEV_FLAG0=1
DM_SUSPENDED=0
DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
DM_UDEV_PRIMARY_SOURCE_FLAG=1
DM_UDEV_RULES=1
DM_UUID=LVM-aSziVsETAv6V5mYefDClqhuxzUVkjZBh11DpF0g2jiKafsFG3fZivSLVdfec3DNe
DM_VG_NAME=vg00
MAJOR=254
MINOR=9
SEQNUM=1814
SUBSYSTEM=block
SYSTEMD_READY=0
TAGS=:systemd:
USEC_INITIALIZED=7404353

KERNEL[1207.440912] change   /devices/virtual/block/dm-9 (block)
ACTION=change
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
MAJOR=254
MINOR=9
SEQNUM=1815
SUBSYSTEM=block

KERNEL[1207.490506] change   /devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:1:0/0:1:0:0/block/sda/sda2 (block)
ACTION=change
DEVNAME=/dev/sda2
DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:1:0/0:1:0:0/block/sda/sda2
DEVTYPE=partition
MAJOR=8
MINOR=2
SEQNUM=1816
SUBSYSTEM=block

UDEV  [1207.535548] change   /devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:1:0/0:1:0:0/block/sda/sda2 (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/lvm-pv-uuid-xdijpF-WJ3K-BmN2-3rp5-jJB2-aZVY-rEdGVM /dev/disk/by-id/scsi-3600508e0000000004170727f7dcfcc0f-part2 /dev/disk/by-id/wwn-0x600508e0000000004170727f7dcfcc0f-part2 /dev/disk/by-path/pci-0000:01:00.0-scsi-0:1:0:0-part2
DEVNAME=/dev/sda2
DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:1:0/0:1:0:0/block/sda/sda2
DEVTYPE=partition
ID_BUS=scsi
ID_FS_TYPE=LVM2_member
ID_FS_USAGE=raid
ID_FS_UUID=xdijpF-WJ3K-BmN2-3rp5-jJB2-aZVY-rEdGVM
ID_FS_UUID_ENC=xdijpF-WJ3K-BmN2-3rp5-jJB2-aZVY-rEdGVM
ID_FS_VERSION=LVM2 001
ID_MODEL=Virtual_Disk
ID_MODEL_ENC=Virtual\x20Disk\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:0
ID_PART_ENTRY_NUMBER=2
ID_PART_ENTRY_OFFSET=499712
ID_PART_ENTRY_SCHEME=dos
ID_PART_ENTRY_SIZE=1951946752
ID_PART_ENTRY_TYPE=0x8e
ID_PART_ENTRY_UUID=ed00e261-02
ID_PART_TABLE_TYPE=dos
ID_PART_TABLE_UUID=ed00e261
ID_PATH=pci-0000:01:00.0-scsi-0:1:0:0
ID_PATH_TAG=pci-0000_01_00_0-scsi-0_1_0_0
ID_REVISION=1028
ID_SCSI=1
ID_SERIAL=3600508e0000000004170727f7dcfcc0f
ID_SERIAL_SHORT=600508e0000000004170727f7dcfcc0f
ID_TYPE=disk
ID_VENDOR=Dell
ID_VENDOR_ENC=Dell\x20\x20\x20\x20
ID_WWN=0x600508e000000000
ID_WWN_VENDOR_EXTENSION=0x4170727f7dcfcc0f
ID_WWN_WITH_EXTENSION=0x600508e0000000004170727f7dcfcc0f
MAJOR=8
MINOR=2
SEQNUM=1816
SUBSYSTEM=block
TAGS=:systemd:
USEC_INITIALIZED=6154

UDEV  [1207.555665] change   /devices/virtual/block/dm-9 (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/dm-name-vg00-gv3 /dev/disk/by-id/dm-uuid-LVM-aSziVsETAv6V5mYefDClqhuxzUVkjZBh11DpF0g2jiKafsFG3fZivSLVdfec3DNe /dev/mapper/vg00-gv3 /dev/vg00/gv3
DEVNAME=/dev/dm-9
DEVPATH=/devices/virtual/block/dm-9
DEVTYPE=disk
DM_LV_NAME=gv3
DM_NAME=vg00-gv3
DM_SUSPENDED=0
DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
DM_UDEV_PRIMARY_SOURCE_FLAG=1
DM_UDEV_RULES=1
DM_UUID=LVM-aSziVsETAv6V5mYefDClqhuxzUVkjZBh11DpF0g2jiKafsFG3fZivSLVdfec3DNe
DM_VG_NAME=vg00
MAJOR=254
MINOR=9
SEQNUM=1815
SUBSYSTEM=block
TAGS=:systemd:
USEC_INITIALIZED=7404353

My knowledge of the subject is very limited, any suggestions would be welcome.

comment:3 Changed 10 months ago by bruno

  • Status changed from new to assigned

Should be fixed with rev [3566]

comment:4 Changed 10 months ago by bruno

  • Status changed from assigned to closed
  • Resolution set to fixed

And also with rev [3572]

Note: See TracTickets for help on using tickets.