cli_crfs command
Purpose
Create a new file system and make it available on all nodes in a clusterSyntax
cli_crfs -v VfsType { -g VolumeGroup | -d Device } [ -l LogPartitions ]
-m MountPoint [ -u MountGroup ] [ -A { yes | no } ]
[ -p {ro | rw } ] [ -a Attribute=Value ... ] [ -t { yes | no } ]
Description
Uses C-SPOC to run the crfs command with the specified parameters, and make the updated file system definition available on all cluster nodes.
Flags
- -a Attribute=Value
- Specifies a virtual file system-dependent attribute and value pair. To specify more than one attribute and value pair, provide multiple -a Attribute=Value parameters.
- -d Device
- Specifies the device name of a device or logical volume on which to make the file system. This flag is used to create a file system on a logical volume that exists.
- -g VolumeGroup
- Specifies an existing volume group on which to make the file system. A volume group is a collection of one or more physical volumes.
- -l LogPartitions
- Specifies the size of the log logical volume, expressed as a number of logical partitions. This flag applies only to JFS and JFS2 file systems that do not have a log device.
- -m MountPoint
- Specifies the mount point, which is the directory where the file system is made available. If you specify a relative path name, it is converted to an absolute path name before it is inserted into the /etc/filesystems file.
- -p
- Sets the permissions for the file system.
- ro
- Read-only permissions
- rw
- Read/write permissions
- -t
- Specifies whether the file system is processed by the accounting subsystem. The following values
are valid:
- yes
- Accounting is enabled on the file system.
- no
- Accounting is not enabled on the file system. This value is the default setting.
- -u MountGroup
- Specifies the mount group.
- -v VfsType
- Specifies the virtual file system type. The agblksize attribute is set when you create the file system and cannot be changed after the file system is created. The size attribute defines the minimum file system size. You cannot decrease the file system size with the size attribute after the file system is created.
Example
To create a JFS file system on an existing logical volume that is named lv01,
enter:
cli_crfs -v jfs -d lv01 -m /tstvg -a 'size=32768'