next up previous contents
Next: Deploying local portions of Up: Management of local disks Previous: Dynamic or static partitions   Contents


DISK* syntax

DISKMOUNT $<$disk$>$ $<$size[%]$>$ $<$mointpoint$>$ [-c class[,class]...] [-n node[,node]...]
Creates and mounts an ext2 partition of a specified size on the specified disk.
| The mountpoint parameter specifies where the filesystem should be mounted. The mountpoint must be a directory that already exists in the master image.

DISKSWAP $<$disk$>$ $<$size[%]$>$ [-c class[,class]...] [-n node[,node]...]
Creates and enables a swap partition of a specified size on the specified disk.

For both DISKMOUNT and DISKSWAP directives:
| The disk parameter is a number specifying disk order as seen in /proc/partitions.
| The size parameter can be either 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.
| Supplying any -c options limits the directive to apply only to the given classes.
| Supplying any -n options limits the directive to apply only to the given nodes.

For example, to have nodes create 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

next up previous contents
Next: Deploying local portions of Up: Management of local disks Previous: Dynamic or static partitions   Contents
root 2005-06-19