PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Appendix B Reference Manual> B.2 Management Commands Specific to the GFS Local File System

B.2.1 sfxadd(1M) - Extends the GFS Local File System

[SYNOPSIS]

sfxadd -D raw_device_file[,raw_device_file,...] raw_device_file
sfxadd -pa -D raw_device_file[,raw_device_file,...] raw_device_file

[DESCRIPTION]

The sfxadd command can extend the current GFS Local File System without saving or restoring the data.

The file system can be extended by adding a new partition to the current file system.

The file system can be extended while the file system is mounted (online extension) or unmounted (offline extension). If the file system is extended while the file system is unmounted, the status of the file system must be normal. If an attempt is made to reflect extension of the file system while the status of the file system is not normal, sfxadd will output the message "file system (partition-name) is corrupted, run fsck manually." In this case, use fsck(1M) to restore the status of the file system, then execute again.

When adding data partitions, preregister using the -pa and -D options to recover normally even if an unexpected system failure occurs while a data partition is being newly added. After preregistering, specify the -D option to instruct actual reflection.

If pre-registration for adding partitions has been performed or if actual extension is not completed because of an unexpected system failure, the file system will be managed as processing midway. Use sfxinfo(1M) to check whether the file system is being managed as processing midway.

When sfxadd is used to add a GFS Local File System partition, an entry will be added to and managed in /etc/sfxfstab.

[OPTIONS]

-D raw_device_file

This option specifies the character special device for a data partition that is to be added.
When adding two or more data partitions, delimit the special file name with a comma ",".

-pa

Pre-register the partition addition instruction. Pre-registering enables processing to be continued normally even if an unexpected system failure occurs. If the file system is used as an alternate file system, pre-register the partition for all systems using the file system.
By the way, when a partition is added in the state of unmounting file system, please don't perform this setting.

[OPERAND]

raw_device_file

This parameter specifies the character special device name for the representative partition.

[EXAMPLES ]

Case of adding /dev/sfdsk/gfs/rdsk/vol0601 and /dev/sfdsk/gfs/rdsk/vol0701 to a GFS Local File System where /dev/sfdsk/gfs/rdsk/vol0301 is used as a representative partition

1. Pre-register.

# sfxadd -pa -D /dev/sfdsk/gfs/rdsk/vol0601,/dev/sfdsk/gfs/rdsk/vol0701 /dev/sfdsk/gfs/rdsk/vol0301

2. Reflect the setting data to the file system.

# sfxadd -D /dev/sfdsk/gfs/rdsk/vol0601,/dev/sfdsk/gfs/rdsk/vol0701 /dev/sfdsk/gfs/rdsk/vol0301

[FILE]

/etc/sfxfstab

This file contains the names of each of the file system component partitions.

[SEE ALSO]

df_sfxfs(1M), fsck_sfxfs(1M), mkfs_sfxfs(1M), sfxadm(1M), sfxinfo(1M), sfxnewfs(1M), sfxnode(1M)

[NOTES]

<representative partition> is corrupted, run fsck manually (-3)


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004