Bug 134550

Summary: lsraid critical bug (raidtools)
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Forgotten User ZC6aJTElLj <forgotten_ZC6aJTElLj>
Component: BasesystemAssignee: Ruediger Oertel <ro>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: forgotten_ZC6aJTElLj
Version: unspecifiedKeywords: All_Languages, easy_fix
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User ZC6aJTElLj 2005-11-19 17:16:40 UTC
lsraid's -R option has a seemingly minor, but indeed very critical bug:

It does not generate complete information, i.e. it does never output the "parity-algorithm" entry, even if this was changed from the default.

If the algorithm employed is, say, "left-symmetric", this leads to total corruption of the array if lsraid's output was used as input to "raidreconf" from the same package.

Since "parity-algorithm" has influence on the placement of ECC chunks, raidreconf uses the default algorithm of "right-symmetric" in absence of a specified parity algorithm and thus overwrites real data chunks instead of ECC chunks while redistributing the chunks.
Comment 1 Ruediger Oertel 2005-12-16 11:53:24 UTC
can you try to use "mdadm" instead of "raidtools". raidtools is an obsolete
and completely unmaintaned interface.
Comment 2 Forgotten User ZC6aJTElLj 2005-12-16 17:25:00 UTC
I can, but to my knowledge, mdadm does not even support shrinking or enlarging a RAID array. It also does not use (nor generate) raidtabs, something which is needed by raidreconf. Also, that tool (raidtools) is outdated as well and does not support newer features like RAID-6, but there is no replacement whatsoever, maybe you chose to included those tools because of these reasons in the first place. What good is including packages that are not supported but can heavily damage your system because of such bugs?
Comment 3 Ruediger Oertel 2005-12-16 18:36:16 UTC
- resizing is possible with mdadm, look for "grow" in the manpage
- raidreconf is the tool from raidtools (of course it uses the old
   config file), all operations for mdadm are done with /sbin/mdadm
in other words: mdadm is a complete replacement by now and the raidtools
package will be dropped from future releases.
Comment 4 Forgotten User ZC6aJTElLj 2005-12-16 22:38:49 UTC
Mea culpa. You are correct. Seems like I have looked at an outdated version of mdadm. If raidtools is dropped, then all will be fine.
Comment 5 Ruediger Oertel 2006-01-11 14:41:21 UTC
Steffen: please remove raidtools left-overs from inst-sys so I can
finally drop the package (all other dependencies have been fixed).
Comment 6 Steffen Winterfeldt 2006-01-11 14:59:10 UTC
will be gone with next package check-in
Comment 7 Ruediger Oertel 2006-01-24 11:33:50 UTC
package "raidtools" has been dropped.