Proposal for a new disk configuration utility

Andreas Klein aklein at online.ms
Sun May 7 15:12:50 CEST 2006


Hello

Right now you are using "disk_config hda" or "disk_config disk1" to
select the disk for fai. In the new format for raid and lvm you are
using explicit device names. Is there something planned to provide the
flexibility of the construct "disk_config disk1" vor lvm or raid?
One Possibility would be to change the Format to the one below. It can
work without device names and without Partition Numbers.

================================examples======================================

# Configure the first disk
disk_config disk1
# Create a Partition for Software Raid md0.
# Size of the raid is defined in the Raid Section.
primary	raid      50       -          md0
# Create a Partition for SWAP.
primary swap      1000     sw         swap
# Create a Partition for Raid md1.
primary	raid      2000     -          md1
# Create a Partition for Volume Group SYS.
logical	lvm       20000    -          SYS


# Configure the second disk
disk_config disk2
# Create the second Partition for Software Raid md0.
primary	raid      50       -          md0
primary swap      1000     sw         swap
primary	raid      2000     -          md1
logical	lvm       20000    -          SYS


# Configure the third disk
disk_config disk3
# Create a spare Partition for Software Raid md0.
primary	raid      50       -          md0 spare
primary swap      1000     sw         swap
primary	raid      2000     -          md1 spare
logical	lvm       20000    -          SYS



# Configure RAID
disk_config raid
md0     /boot     raid1    rw         ext2
md1     /         raid1    rw         ext3
# For a raid on top of a raid the following would be Possible:
## Use md2 and md3 as raid a partition for raid md4 
# md2   raid      raid1    -          md4
# md3   raid      raid1    -          md4
## Raid 0 un top of md2 and md3
# md4   raid      raid0    -          xfs



# Configure LVM
disk_config lvm
# "-" is the Seperator used by the lvm tools so it schould be used here too, I guess.
SYS-usr	/usr      2048     rw         ext3

================================examples======================================

What do you think about it?



More information about the linux-fai-devel mailing list