Next: SYNCDIR syntax
Up: Management of local disks
Previous: Deploying parts of the
Contents
DEPLOY* syntax
| DEPLOYMOUNT |
disk[,disk]...] size[%] mointpoint [-t fstype] [-r raidlevel] |
|
| |
[-c class[,class]...] [-n node[,node]...] [-p property[,property]...] |
|
Directs the mk-diskful script to create and mount a
filesystem partition of a specified size on the specified
disk, and copy the corresponding directory tree in the master image
to that partition.
- - 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). If more than one disk is given, a RAID level must
be specified with the -r parameter.
- - 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 a directory in the
image that should be deployed as a partition on the local disk of a machine.
- -t specifies the filesystem type to create (the default
filesytem type is ext3).
- -r When more than one disk is specified, specifies the RAID level to create across the devices.
- -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.
Label Note: For ext* filesystems, a disklabel matching
the mountpoint will be created on the filesystem. This label can be used
to auto-mount the filesystem from an initramfs, or can be used in
/etc/fstab to mount by label (ie: LABEL=/).
RAID Note: If any RAID configurations are deployed it will be necessary to include the
SETUP_RAID directive in the appropriate initramfs.conf file or use the
-raid option for mk-initramfs-oneSIS (section 6.4).
| DEPLOYSWAP |
disk[,disk]...] size[%] [-r raidlevel] |
|
| |
[-c class[,class]...] [-n node[,node]...] [-p property[,property]...] |
|
Directs the mk-diskful script to create and enable a swap
partition 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). If more than one disk is given, a RAID level must
be specified with the -r parameter.
- - 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.
- -r When more than one disk is specified, specifies the RAID level to create across the devices.
- -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.
Next: SYNCDIR syntax
Up: Management of local disks
Previous: Deploying parts of the
Contents
root
2017-02-23