Opened 9 years ago
Closed 9 years ago
#780 closed defect (fixed)
mondorestore doesn't recreate md devices correctly
Reported by: | Bruno Cornec | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | high | Milestone: | 3.2.2 |
Component: | mondo | Version: | 3.2.1 |
Severity: | blocker | Keywords: | |
Cc: |
Description
As reported on mondo ML, there is an issue when trying to restore md devices with mondorestore in 3.2.1
Releant log entry:
DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#549: cmd built: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#552: Working on additional param #0 (Label: UUID) DBG2: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#557: Managing previous UUID 124b31f0:fbc29386:80013f8f:72f4879d 7 DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#552: Working on additional param #1 (Label: Version) DBG2: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#569: Managing previous Version 1.0 1 DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#577: cmd built: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 --uuid 124b31f0:fbc29386:80013f8f:72f4879d 7 -e 1.0 1 DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#597: cmd built: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 --uuid 124b31f0:fbc29386:80013f8f:72f4879d 7 -e 1.0 1 DBG4: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#604: cmd built: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 --uuid 124b31f0:fbc29386:80013f8f:72f4879d 7 -e 1.0 1 --chunk=64 DBG2: [Main] ../src/mondorestore/mondo-prep.c->create_raid_device_via_mdadm#606: RAID device re-created with the following command: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 --uuid 124b31f0:fbc29386:80013f8f:72f4879d 7 -e 1.0 1 --chunk=64 /dev/sda1 d /dev/sdb1 d INFO: running: mdadm --create --force --run --auto=yes /dev/md126 --level=raid1 --raid-devices=2 --uuid 124b31f0:fbc29386:80013f8f:72f4879d 7 -e 1.0 1 --chunk=64 /dev/sda1 d /dev/sdb1 d > /tmp/mondo.tmp.8g102M/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.8g102M/mondo-run-prog-thing.err INFO: --------------------------------start of output----------------------------- INFO: mdadm: You have listed more devices (6) than are in the array(2)! INFO: --------------------------------end of output------------------------------ INFO: ...ran with res=256 DBG1: [Main] ../src/mondorestore/mondo-prep.c->format_device#746: Creating RAID device /dev/md126 via mdadm returned 256
Note:
See TracTickets
for help on using tickets.
During mondorestore the /etc/raidtab file which is correct initialy is modified and corrupted, thus mdadm fails to create what it needs to do.