Bug 10111

Summary: mkraid doesn't do a full match when checking for mounted disks
Product: [Retired] Red Hat Linux Reporter: Kees Cook <cook>
Component: raidtoolsAssignee: Erik Troan <ewt>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-10 14:20:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kees Cook 2000-03-10 14:20:07 UTC
In the rare situation where you have multiple partitions
defined for one disk and have the 10th partition mounted,
(eg, /dev/sda10), and want to build a raid partition on
the 1st partition (eg, /dev/sda1) "mkraid" will claim that
the partition is mounted (eg "/dev/sda1 mounted!").  This
is due to an incorrect pattern match while reading
/etc/mtab.  ('/dev/sda1' matches '/dev/sda10' incorrectly.)

This can be worked around by temporarily editing out the
10th partition entry in /etc/mtab while mkraid is running
its initial verifications.

Once the raid is actually created, everything is fine.

Comment 1 Erik Troan 2000-08-05 14:29:14 UTC
Fixed in raidtools-0.90-12