Top
PRIMECLUSTER Global File Services Configuration and Administration Guide 4.5
FUJITSU Software

B.1.3 sfcmkfs(8) Construct the GFS Shared File System

<SYNOPSIS>

sfcmkfs [ -m ] [ -o specific_options ] device

<DESCRIPTION>

The sfcmkfs command builds the GFS Shared File System on specified disks.

Once the GFS Shared File System has been created, its entry is added to file system configure information in a management partition. Thereafter, file system configure information in a management partition is used to manage the GFS Shared File System.

<OPTIONS>

The following options can be specified.

-m

Outputs command lines of file system creation time. The file system needs to be present.

-o specific_options

Allows options specific to GFS Shared File System to be specified. Insert a comma delimiter between options.

N

Displays parameters used for creating a file system.
Does not actually create a file system.

data=device

Specifies a path name of the block special file of a file data partition.
If you use multiple file data partitions, specify the parameter for each file data partition.

dataopt=y|n

Determines whether or not the file data area is detached from a representative partition. If y is specified, the file data area will not be included in the representative partition. If n is specified, the file data area will be included in the representative partition.
If this parameter is omitted, n will be selected as default.
If a file data partition is not specified for the data option, n will be selected as default.

free=n

Specifies the minimum percentage of free area in the file system.

The default is 10%.
A value can be specified in the range from 0 to 99.

force

Specifies the force option to re-create a file system previously registered in file system configure information in a management partition when its configuration is unchanged. If, however, the target file system is being mounted, specifying this option results in an error.

logsz=n

Specifies the size of the update log area. The unit is megabytes.
The default is about 1% of the file system size (if maxdsz is specified, it is taken maxdsz). If the specified value is smaller than 5 megabytes, 5 megabytes is set. If the specified value is greater than 50 megabytes, 50 megabytes is set.
A value can be specified in the range from 5 to 100.

maxdsz=n

Specifies the maximum size of the file data area of a file system that includes additional partitions. The unit is megabytes. Based on the value specified for this parameter, the size of meta-data and the update log area size are set to proper values after taking into account the additional partitions.

If this option is not specified, the sizes of meta-data area and the update log area are determined based on the file system size of the specified partition.

A minimum value is the same as default. A maximum value is 1048576 (1 terabyte).

maxnode=n

Specifies the maximum number of nodes, including expanded nodes by sfcnode(8) in the future, that are shared in the file system configuration on disks.
The default is 16.
A value can be specified in the range from 1 to 32.

maxvol=n

Specifies the maximum number of partitions that configure a file system on a disk including additional partitions that will be expanded with sfcadd(8).
When the value is omitted, the default value 16 will be selected.
The minimum value is 1, and the maximum value is 32.

metasz=n

Specifies the size of the meta-data area. The unit is megabytes.
The default is about 10% of the file system size (if maxdsz is specified, it is taken maxdsz). However, when the file system size is larger, the ratio of the meta-data area becomes smaller.
The minimum value that can be specified is same as default.
The larger value than the size of the representative partition cannot be specified because the meta-data area is allocated in the representative partition. Moreover, if the file system size is smaller than 1-terabyte, the larger value than the minimum requirement size for managing 1-mega V-data cannot be specified. When the specified value doesn't meet these requirements, either of following messages is displayed and the file system is built by the default value.

sfcmkfs:WARNING: value : bogus metasz reset

sfcmkfs:WARNING: value : metasize of partition is over : Retry Auto size

mfree=n

Specifies the minimum percentage of free V-data area.
The default is 10%.
A value can be specified in the range from 0 to 99.

nblkpext=n

Specifies an average number of blocks to be managed by one extent.
This parameter is used as a fragmentation factor for the file data area.
The default is 1.
A value can be specified in the range from 1 to 100.

nbpi=n

Specifies the byte count of data per i-node. Number of total i-nodes is decided by dividing the size of the file system's file data area by this parameter. Specify a large value for this parameter if the number of total i-nodes is to be reduced. And specify a larger value for this parameter if the meta-data area is to be saved, too.
The default is 8192 or a value adjusted as the number of total i-nodes should not exceed the maximum value (16 mega).
A value can be specified by the N power of 2. (N is a range from 9 to 20.)

node=host,...

Registers the name of a host that will share the file system. If multiple nodes should share the file system, specify multiple entries for this parameter using commas.
Hosts whose names are to be specified for host must be able to communicate with each other. MDS (meta-data server) placing nodes are selected in order of descriptions for this option.
Unless this option is specified, only the host name of the local node is registered.

<OPERAND>

The following operand can be specified:

device

Specifies a path name of the block special file on the representative partition of the GFS Shared File System.

<EXAMPLES>

# sfcmkfs -o node=host1,host2 /dev/sfdsk/gfs01/dsk/volume01 <Enter>
# sfcmkfs -o dataopt=y,data=/dev/sfdsk/gfs01/dsk/volume02,data=/dev/sfdsk/gfs01/dsk/
volume03,node=host1,host2 /dev/sfdsk/gfs01/dsk/volume01 <Enter>

<FILE>

/etc/fstab

Environment file for the file system.

<SEE ALSO>

sfcadd(8), sfcadm(8), sfcdf(8), sfcnode(8), sfcsetup(8)

fstab(5) in the online manual

<NOTES>