Bug 134550 - lsraid critical bug (raidtools)
Summary: lsraid critical bug (raidtools)
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All All
: P5 - None : Major
Target Milestone: ---
Assignee: Ruediger Oertel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: All_Languages, easy_fix
Depends on:
Blocks:
 
Reported: 2005-11-19 17:16 UTC by Forgotten User ZC6aJTElLj
Modified: 2006-01-24 11:33 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.