race condition leaves raid raw devices exposed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dmraid (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dmraid
The -Z option in dmraid-activate is supposed the hide the raw devices when the raid is activated. This works sometimes, sometimes not. My mirror raid is on /dev/sda and /dev/sdb, yet today I see the sdbX devices. Yesterday I saw the sdaX devices as well, after one reboot none of them.
$ ls /dev/sd*
/dev/sda /dev/sdb1 /dev/sdb3 /dev/sdb5 /dev/sdb7 /dev/sdd /dev/sdf
/dev/sdb /dev/sdb2 /dev/sdb4 /dev/sdb6 /dev/sdc /dev/sde
If I run dmraid-activate manually, I see this message logged:
dmraid-activate: ERROR: Cannot retrieve RAID set information for isw_ececbiichd_
which AFAICS means the dmraid -Z command is not run.
"dmraid -i -si isw_ececbiichd_
I suspect the occasional successful hiding happens in the initrd as devices are initially discovered, and will not work later.
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: dmraid 1.0.0.rc15-6ubuntu1
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: dmraid
Uname: Linux 2.6.28-10-generic i686
Also with 1.0.0.rc15- 6ubuntu2:
$ ls /dev/sd*
/dev/sda /dev/sda3 /dev/sda6 /dev/sdb1 /dev/sdb4 /dev/sdb7 /dev/sde
/dev/sda1 /dev/sda4 /dev/sda7 /dev/sdb2 /dev/sdb5 /dev/sdc /dev/sdf
/dev/sda2 /dev/sda5 /dev/sdb /dev/sdb3 /dev/sdb6 /dev/sdd