Bug 196124

Summary: partitionable raid (/dev/md0p) support
Product: [Fedora] Fedora Reporter: Avi Kivity <avi>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: k.georgiou
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: 2006-06-26 01:27:53 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 Avi Kivity 2006-06-21 09:19:20 UTC
Description of problem:

Anaconda currently supports only regular RAID devices (/dev/md0), which 
provide just a single volume or partition.  This forces a minimal RAID 
installation to:
 - create partitions on /dev/sda and /dev/sdb
 - create two raid devices, /dev/md0 and /dev/md1
 - set up /boot on /dev/md0 and LVM on /dev/md1

on drive failure, the user is forced to recreate the partition table on the 
new disk, and rebuild the two RAID arrays.

In contrast, if partitionable RAID were supported, installation, recovery, 
would be much simpler and more intuitive.

Installation:

 - create /dev/md0p from /dev/sda and /dev/sdb
 - partition /dev/md0p
 - create /boot and LVM

Recovery:
 - add the new /dev/sdb to the array; the partition table is part of the array 
and therefore mirrored automatically

Version-Release number of selected component (if applicable):
anaconda-11.0.5-1

How reproducible:
always

Steps to Reproduce:
1. install on a machine with two disks
2. groan as you are forced to duplicate the RAID setup for every partition you 
create
3. cry when you have to partition your new disk and hot-add every partition 
when you recover
  
Actual results:
tears

Expected results:
happy smiles as you create, managem, and recover just one RAID device for all 
partitions

Comment 1 Avi Kivity 2006-06-21 09:32:44 UTC
If this is implemented, a new feature becomes easy to implement: RAID 
retrofit.  Currently, if you install a system without RAID, then add a disk, 
it is impossible for the average user to mirror the two disks.

If partitionable RAID support is added, we could default to setting up 
partitionable RAID even with a single disk. If, later, a disk is added, one 
command will add it to the RAID.

Comment 2 Jeremy Katz 2006-06-26 01:27:53 UTC
LVM already gives you the ability to partition the RAID device... adding support
for another way of doing things is just likely to a) make the UI even more
confusing and b) make it more likely for things to fail in unexpected ways.

Comment 3 Avi Kivity 2006-06-27 07:12:56 UTC
LVM can parition a RAID device, but one cannot boot from LVM; this means you 
need at least two RAID devices _and_ the old msdos partitioning.

It will make the UI a lot _less_ confusing if you hide the non-partitionable 
RAID behind some 'advanced' button and make partitionable RAID the default.

I recently walked a Windows admin through the process of setting up RAID 
during installation. It is remarkable complex and non-intuitive.  In addition, 
the probability of a non-guru recovering from a disk failure with 
non-partitionable RAID is very low in my opinion: you have to repartition the 
disk manually and rebuild at least two RAID devices.

Please reconsider.  Having a RAID per partition is very clunky compared to 
RAID per disk.  Or at least add a UI for recovery.

Alternatively, if one could boot from LVM we wouldn't need this, but mdp is 
here and LVM boot is not.