[Bug 501773] New: by-id links for DM RAID gone after removing one partition
http://bugzilla.novell.com/show_bug.cgi?id=501773 Summary: by-id links for DM RAID gone after removing one partition Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: kasievers@novell.com ReportedBy: aschnell@novell.com QAContact: qa@suse.de CC: puzel@novell.com Found By: Development All by-id links for a DM RAID are gone after removing one partition with parted. See attached screenshot. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773
User aschnell@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c1
--- Comment #1 from Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=501773
User kasievers@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c2
Kay Sievers
http://bugzilla.novell.com/show_bug.cgi?id=501773
User aschnell@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c3
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=501773
User kasievers@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c4
Kay Sievers
http://bugzilla.novell.com/show_bug.cgi?id=501773
User hare@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c5
--- Comment #5 from Hannes Reinecke
http://bugzilla.novell.com/show_bug.cgi?id=501773
User aschnell@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c6
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c7
Petr Uzel
After some debugging with Hannes we found out: This is caused by the fact that parted creates the device nodes (/dev/mapper/isw..._partX) itself instead of creating udev events and let udev create the links. The devices nodes parted created do not contain a UUID which is needed.
I wonder what's the proper way of creating udev events from parted. Does anybody know? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773
User hare@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c8
--- Comment #8 from Hannes Reinecke
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c9
Petr Uzel
Yes.
So could you please tell me (how to properly create udev rules from C code)? Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773
User hare@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c10
Hannes Reinecke
http://bugzilla.novell.com/show_bug.cgi?id=501773
User kasievers@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c11
Kay Sievers
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c12
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c13
Petr Uzel
My plan is to implement kpartx -u, then match it to udev 'change' uevent for DM devices and then replace the [*] with issuing 'change' uevent for the device, which should let udev 'do the right thing'.
for 'kpartx -u' patch see bug #517442 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773 Bug 501773 depends on bug 517442, which changed state. Bug 517442 Summary: kpartx: add support for -u (update) http://bugzilla.novell.com/show_bug.cgi?id=517442 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Status|ASSIGNED |NEEDINFO Status|NEEDINFO |ASSIGNED Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773 Bug 501773 depends on bug 517442, which changed state. Bug 517442 Summary: kpartx: add support for -u (update) http://bugzilla.novell.com/show_bug.cgi?id=517442 What |Old Value |New Value ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c14
Petr Uzel
No, there are no better ways to do this today.
Does that mean that calling 'udevadm settle' is the only way? Isn't there any 'udev library' that could do the job? Waiting in loop for devices to appear (as suggested in bug #502967, c#26) does not seem feasible to me - how could parted know which devices to wait for? Kay, Hannes: please comment. Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=501773
User kasievers@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c15
Kay Sievers
http://bugzilla.novell.com/show_bug.cgi?id=501773
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=501773
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501773#c16
Petr Uzel
participants (1)
-
bugzilla_noreply@novell.com