NAME

lcfg-fstab - LCFG fstab component

DESCRIPTION

The object partitions disks and maintains the /etc/fstab file.

The /etc/fstab is first constructed from the partition information specified for the hard disks described by the disks and partitions_disk resources. The entries resource is then used to add additional fstab entries.

The adddisk method is used to add a new disk to the system. It will (optionally) partition the disk, make the filesystems and create /etc/fstab entries. It is called implicitly by the preparedisks method at system install time, but can be called manually thereafter to add new disks.

The mountdisks and umountdisks methods can be used to mount or unmount all configured disks. These are only intended for use when running the installroot for machine debugging/patching.

disks

A list of disks attached to this machine.

dopartition_disk

This resource, if set to no, will stop the component from partitioning the disk disk.

partitions_disk

A list of partitions for disk. A disk can only have primary partitions (up to 4). Extended and logical partitions are not yet supported - the disk should be partitioned manually if these are required.

size_partition

The size of the specified partition. The partition size can be given in megabytes, or be set to free to indicate that the partition should use up remaining disk space or be set to <existing> to indicate that the partition size and location should not be changed.

type_partition

The type of filesystem of the specified partition. Currently supported partition types are ext2, ext3, raid and swap. Alternatively, a numeric ID can be used to specify the partition type.

mpt_partition

The mount point for the filesystem on the specified partition.

mkmpt_partition

Determines how the component should behave when the mount point already exists and is populated with files. Setting this resource to fail will cause a failure, ignore will ignore prexisting files and zap will delete any prexisting files.

mntopts_partition

Describes any mount options for the filesystem associated with the specified entry or partition.

passno_partition

Describes the fsck passno for the specified entry or partition.

preserve_partition

This resource, if set to yes, indicates that the component should not rebuild the filesystem when the adddisk method is invoked.

mkprog_partition

The program to create the file system (or whatever) in the specified partition.

mkopts_partition

Any options to pass to the appropriate tool (eg mke2fs) for building the specified partition.

entries

A list of additional <fstab> entries.

spec_entry

Describes the block special device or remote filesystem associated with the specified entry.

file_entry

Describes the mount point for the specified entry.

vfstype_entry

Describes the type of filesystem for the specified entry.

mntopts_entry

Describes any mount options for the filesystem associated with the specified entry or partition.

freq_entry

Describes the dump frequency for the specified entry.

passno_entry

Describes the fsck passno for the specified entry or partition.

updfstab

A list of extra entries for /etc/updfstab.conf. An entry can be either a device, upfdef_tag or an include file of further definitions updfile_tag.

updfdev_tag

A list of line references for the specified device.

updfline_tag_line

An individual line for the specified device.

updfile_tag

AUTHOR

Alastair Scobie <ascobie@inf.ed.ac.uk>

PLATFORMS

Scientific5, Scientific6, Fedora13