disscussion about new format of disk_config files

Michal Svamberg svamberg at gmail.com
Wed Oct 5 16:25:17 CEST 2005


Hi,
actual disk_config not supported this features:
 - RAID (mdadm)
 - LVM (lvm2)
 - flat disks (disks withou partitions)
 - change geometry of disk
 - xen support (there exists only partitions, whole (flat) disk not)
 - other problems?

Below is example/draft of new disk_config:
--- cut ---
#
# disk_config <disk> [geometry=<C>/<H>/<S>] [nonexist]
#  disk - name of flat disk (hda, hdb, ...)
#  geometry - change default geometry (some systems are sensitive)
#  nonexist - for xen, where exists only partitions
#
# commands:
#  primary - create primary partition
#  logical - create logical partition
#  flat - use whole disk
#  volume - create volume on LVM group.

disk_config hda geometry=4865/255/63
primary /       1-      rw,errors=remount-ro ; boot ext3
primary swap    100
logical -       1000      # hda5: raid5 ... disk 1
logical -       1000      # hda6: raid5 ... disk 2
logical -       1000      # hda7: raid5 ... spare
logical -       1000      # hda8: lvm ... group lvmgp1
logical -       1000      # hda9: lvm ... gropu lvmgp1

# example of using disk withou partitioning
disk_config hdb
flat   /tmp     preserve rw; jfs # used in lvm_config (see below)

# mounting and formating of raid device
disk_config md0
flat   /mnt/data preserve rw ; reiser lazyformat

# setting for creating LVM volumes, mounting and formating
disk_config lvmgp1
volume homevol /home   1-      rw ; ext3
volume varvol    /var    1-      rw ; xfs

# raid_config <raid_dev> level=<level> [chunk=<chunk>] [...]
#  raid_dev - new raid device
#  level - raid type (linear, mirror, strip, ... raid5)
#
# commands:
#  disk - device used as data disk in raid
#  spare - set device as spare
#
# questions: how to set spare group

raid_config md0 level=raid5
disk hda5
disk hda6
spare hda7

# lvm_config <lvm_group> [options]
#  lvm_group - name of volume group
#
# commands:
#  disk - disk used in lvm group

lvm_config lvmgp1
disk hda8
disk hda9
disk hdb

--- cut ---

Do you have other conception or ideas? Whats wrong?

Thanks,
      Michal Svamberg



More information about the linux-fai-devel mailing list