|
Bugzilla – Full Text Bug Listing |
| Summary: | stopping dmraid does not remove all nodes | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Arvin Schnell <aschnell> |
| Component: | Basesystem | Assignee: | Coly Li <colyli> |
| Status: | RESOLVED DUPLICATE | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | aschnell, hare, nfbrown |
| Version: | 13.1 Beta 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Development | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Arvin Schnell
2013-10-10 14:36:32 UTC
The -partX links are probable due to kpartx. There seems to be a udev rule to run kpartx when dm devices are created, but not when they are removed. We normally run dmraid with the "-p" option so that it doesn't create the partitions (leaving that to udev and kpartx). What happens if you add "-p" to both the "-ay" and the "-an" ?? That should cause the "ddf_foop1" and "ddf_foop2" devices to not appear. I don't know if it will affect the final removal for ddf1_foo. Hannes: Should used run kpartx also when the device is removed? Ping Hannes... Can /etc/udev/rules.d/70-kpartx.rules run /sbin/kpartx -d -p -part /dev/$kernel or similar when a REMOVE event happens to clean up and partitions it has previously made? re-assigned to Hannes as I'm fairly sure it is a kpartx issue. This looks like the companion issue of bug#930487. 'dmraid' has not been updated to use the device-mapper 'cookie' mechanism, hence it will instruct device-mappper to create device nodes under /dev/mapper on its own. This means we'll end up with _two_ sets of devices in /dev/mapper, the udev-created symlinks and the block device nodes create by device-mapper. And actually, 'dmraid -p' should fail when there are partitions (or other device-mapper tables) on that device. The correct action is to remove the partitions (or other device-mapper devices) _first_ and then remove the dmraid device. Much like you'd do with LVM; imagine you'd have a LVM setup on the dmraid device. You surely do _not_ want dmraid to succeed here. (For the same reason the udev rule wouldn't work, neither; we're only getting a 'remove' event if the device has been removed, which it can't, as it's being held busy by the devices stacked on top.) So from my POV the system works as designed. |