#1211 Issue closed: Excluded VGs with multipath devices partition a wrong multipath device

Labels: bug, fixed / solved / done, sponsored

gdha opened issue at 2017-03-01 10:54:

  • rear version (/usr/sbin/rear -V): rear-2.00
  • OS version (cat /etc/rear/os.conf or lsb_release -a): RHEL 7.3
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):
AUTOEXCLUDE_MULTIPATH=N
OUTPUT=ISO
OUTPUT_URL=null
ISO_DEFAULT=manuel
TIMESYNC=NTP
BACKUP=TSM
TSM_RESULT_SAVE=n
TSM_RESULT_FILE_PATH=
USE_DHCLIENT=y
USE_STATIC_NETWORKING=n
ONLY_INCLUDE_VG=(s51r010vg00)
GRUB_RESCUE=n
  • Are you using legacy BIOS or UEFI boot? BIOS
  • Brief description of the issue:
    Only the multipath device with 41ad should be UN-commented in disklayout.conf file.
lvmdev /dev/s51r010vg00 /dev/mapper/360060e8007e2e3000030e2e3000041ad2 ABUPAN-hPJs-jf8u-1mjs-14G5-cMTO-uAVjC8 502161408
#lvmdev /dev/h50l050vg00 /dev/mapper/360060e8007e2e3000030e2e30000449f2 Nn3ew5-Wkve-FpSY-mgng-3T0l-rSz1-EEvPrE 502288384
...
multipath /dev/mapper/360060e8007e2e3000030e2e3000043bd /dev/sdac,/dev/sdbb,/dev/sdbz,/dev/sdf
multipath /dev/mapper/360060e8007e2e3000030e2e30000412e /dev/sdaa,/dev/sdaz,/dev/sdbx,/dev/sdd
multipath /dev/mapper/360060e8007e2e3000030e2e30000211f /dev/sdas,/dev/sdbr,/dev/sdcp,/dev/sdv
multipath /dev/mapper/360060e8007e2e3000030e2e300004271 /dev/sdab,/dev/sdba,/dev/sdby,/dev/sde
multipath /dev/mapper/360060e8007e2e3000030e2e3000042ce /dev/sdax,/dev/sdb,/dev/sdbv,/dev/sdy
multipath /dev/mapper/360060e8007e2e3000030e2e3000021da /dev/sdau,/dev/sdbt,/dev/sdcr,/dev/sdx
multipath /dev/mapper/360060e8007e2e3000030e2e3000044a4 /dev/sdai,/dev/sdbh,/dev/sdcf,/dev/sdl
multipath /dev/mapper/360060e8007e2e3000030e2e3000044a3 /dev/sdah,/dev/sdbg,/dev/sdce,/dev/sdk
multipath /dev/mapper/360060e8007e2e3000030e2e3000021d9 /dev/sdat,/dev/sdbs,/dev/sdcq,/dev/sdw
multipath /dev/mapper/360060e8007e2e3000030e2e3000041ad /dev/sda,/dev/sdav,/dev/sdaw,/dev/sdbu
part /dev/mapper/360060e8007e2e3000030e2e3000041ad 528482304 44040192 primary boot /dev/mapper/360060e8007e2e3000030e2e3000041ad1
part /dev/mapper/360060e8007e2e3000030e2e3000041ad 257106640896 572522496 primary lvm /dev/mapper/360060e8007e2e3000030e2e3000041ad2
multipath /dev/mapper/360060e8007e2e3000030e2e3000044a2 /dev/sdag,/dev/sdbf,/dev/sdcd,/dev/sdj
multipath /dev/mapper/360060e8007e2e3000030e2e3000044a1 /dev/sdaf,/dev/sdbe,/dev/sdcc,/dev/sdi
multipath /dev/mapper/360060e8007e2e3000030e2e3000044a0 /dev/sdae,/dev/sdbd,/dev/sdcb,/dev/sdh
multipath /dev/mapper/360060e8007e2e3000030e2e300002065 /dev/sdar,/dev/sdbq,/dev/sdco,/dev/sdu
multipath /dev/mapper/360060e8007e2e3000030e2e300004024 /dev/sday,/dev/sdbw,/dev/sdc,/dev/sdz
multipath /dev/mapper/360060e8007e2e3000030e2e30000449f /dev/sdad,/dev/sdbc,/dev/sdca,/dev/sdg
part /dev/mapper/360060e8007e2e3000030e2e30000449f 524288000 1048576 primary boot /dev/mapper/360060e8007e2e3000030e2e30000449f1
part /dev/mapper/360060e8007e2e3000030e2e30000449f 257172701184 525336576 primary lvm /dev/mapper/360060e8007e2e3000030e2e30000449f2
  • Work-around, if any: none

gdha commented at 2017-03-01 11:09:

My tests and it was confirmed by the customer that the script fixed the problem. Now we have as output:

lvmdev /dev/s51r010vg00 /dev/mapper/360060e8007e2e3000030e2e3000041ad2 ABUPAN-hPJs-jf8u-1mjs-14G5-cMTO-uAVjC8 502161408
#lvmdev /dev/h50l050vg00 /dev/mapper/360060e8007e2e3000030e2e30000449f2 Nn3ew5-Wkve-FpSY-mgng-3T0l-rSz1-EEvPrE 502288384
...
#multipath /dev/mapper/360060e8007e2e3000030e2e3000043bd /dev/sdac,/dev/sdbb,/dev/sdbz,/dev/sdf
#multipath /dev/mapper/360060e8007e2e3000030e2e30000412e /dev/sdaa,/dev/sdaz,/dev/sdbx,/dev/sdd
#multipath /dev/mapper/360060e8007e2e3000030e2e30000211f /dev/sdas,/dev/sdbr,/dev/sdcp,/dev/sdv
#multipath /dev/mapper/360060e8007e2e3000030e2e300004271 /dev/sdab,/dev/sdba,/dev/sdby,/dev/sde
#multipath /dev/mapper/360060e8007e2e3000030e2e3000042ce /dev/sdax,/dev/sdb,/dev/sdbv,/dev/sdy
#multipath /dev/mapper/360060e8007e2e3000030e2e3000021da /dev/sdau,/dev/sdbt,/dev/sdcr,/dev/sdx
#multipath /dev/mapper/360060e8007e2e3000030e2e3000044a4 /dev/sdai,/dev/sdbh,/dev/sdcf,/dev/sdl
#multipath /dev/mapper/360060e8007e2e3000030e2e3000044a3 /dev/sdah,/dev/sdbg,/dev/sdce,/dev/sdk
#multipath /dev/mapper/360060e8007e2e3000030e2e3000021d9 /dev/sdat,/dev/sdbs,/dev/sdcq,/dev/sdw
multipath /dev/mapper/360060e8007e2e3000030e2e3000041ad /dev/sda,/dev/sdav,/dev/sdaw,/dev/sdbu
part /dev/mapper/360060e8007e2e3000030e2e3000041ad 528482304 44040192 primary boot /dev/mapper/360060e8007e2e3000030e2e3000041ad1
part /dev/mapper/360060e8007e2e3000030e2e3000041ad 257106640896 572522496 primary lvm /dev/mapper/360060e8007e2e3000030e2e3000041ad2
#multipath /dev/mapper/360060e8007e2e3000030e2e3000044a2 /dev/sdag,/dev/sdbf,/dev/sdcd,/dev/sdj
#multipath /dev/mapper/360060e8007e2e3000030e2e3000044a1 /dev/sdaf,/dev/sdbe,/dev/sdcc,/dev/sdi
#multipath /dev/mapper/360060e8007e2e3000030e2e3000044a0 /dev/sdae,/dev/sdbd,/dev/sdcb,/dev/sdh
#multipath /dev/mapper/360060e8007e2e3000030e2e300002065 /dev/sdar,/dev/sdbq,/dev/sdco,/dev/sdu
#multipath /dev/mapper/360060e8007e2e3000030e2e300004024 /dev/sday,/dev/sdbw,/dev/sdc,/dev/sdz
#multipath /dev/mapper/360060e8007e2e3000030e2e30000449f /dev/sdad,/dev/sdbc,/dev/sdca,/dev/sdg
#part /dev/mapper/360060e8007e2e3000030e2e30000449f 524288000 1048576 primary boot /dev/mapper/360060e8007e2e3000030e2e30000449f1
#part /dev/mapper/360060e8007e2e3000030e2e30000449f 257172701184 525336576 primary lvm /dev/mapper/360060e8007e2e3000030e2e30000449f2

PS: this was an EXSi server where some multipath devices were used to boot a VM with

jsmeix commented at 2017-03-02 09:02:

I close this issue because it is "fixed/solved/done" via
https://github.com/rear/rear/commit/e310a6e753d6074036f9898656ae541962442ba7


[Export of Github issue for rear/rear.]