DISK* syntax
Creates and mounts a local filesystem of size size on the
specified disk.
- - The disk parameter is either a number specifying disk
order as seen in /proc/partitions, or the name of a disk device
(ie: /dev/sda).
- - The size parameter can either be a percentage of the disk
to use, or the exact size in megabytes. If size is larger than the
remaining capacity of disk, the remainder of the disk is used.
- - The mountpoint parameter specifies where the filesystem
should be mounted. mountpoint must be a directory that already exists in
the image.
- -t specifies the filesystem type to create (the default
filesytem type is ext2).
- -c limits the directive to apply only to the given classes.
- -n limits the directive to apply only to the given nodes.
- -p limits the directive to apply only to nodes having one or more of the given properties.
Creates and enables a swap partition of a specified size on the specified
disk.
- - The disk parameter is either a number specifying disk
order as seen in /proc/partitions, or the name of a disk device
(ie: /dev/sda).
- - The size parameter can either be a percentage of the disk
to use, or the exact size in megabytes. If size is larger than the
remaining capacity of disk, the remainder of the disk is used.
- -c limits the directive to apply only to the given classes.
- -n limits the directive to apply only to the given nodes.
- -p limits the directive to apply only to nodes having one or more of the given properties.
For example, to have nodes create (at boot time) a 3GB swap partition on the
first local disk and use the rest of the disk for a local /tmp
directory, use the following directives:
DISKSWAP |
1 |
3000 |
|
DISKMOUNT |
1 |
100% |
/tmp |
root
2008-07-08