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

Part 2 Global File Services Local File System> Chapter 4 Management of the GFS Local File System> 4.7 Extending a GFS Local File System

4.7.1 Adding new partition to extend file system

A file system with multiple partitions can be created for a GFS Local File System. The size of an existing file system can be extended by adding a new partition.

The addition of a new partition changes the configuration information for the file system. To prepare for unexpected system failures during processing, or to operate as an alternate file system from multiple systems, execute preprocessing (execute the sfxadd(1M) command specified with the -pa option, as described below). If this preprocessing is not executed, insufficient data may be recovered in the event of a system failure during operation of an active node. As a result, normal recovery will not be possible.
If preprocessing has been executed, file system recovery by the fsck_sfxfs(1M) command automatically extends the file system and deletes preprocessing data.
In the event of a system failure during file system extension, the sfxinfo(1M) command can be executed to confirm that processing has been completed. For information on sfxinfo(1M) command options, refer to the sfxinfo(1M) manual.

The maximum number of partitions for configuring a file system is set when the file system is created (if the mkfs_sfxfs(1M) or sfxnewfs(1M) command is executed). Additional partitions cannot be added above this limit. The default value is 16.

If the volume of PRIMECLUSTER GDS is used as a partition that composes file system, there is no problem in operation though the following messages are outputted when sfxadd -pa -D is executed with the stopped volume.
# Cant't open <representative partition>, skip actual max volume check

4.7.1.1 Operation from one system

The following examples show how to execute the sfxadd(1M) command to add a data volume (/dev/sfdsk/gfs/rdsk/vol0601) to an existing file system (/dev/sfdsk/gfs/rdsk/vol0301 is used as a representative partition).

For information on sfxadd(1M) command options, refer to the sfxadd(1M) manual.

1. Preregistering the partition addition instruction for mounted file system

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

2. Adding the actual partition

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

The error does not occur though the following messages are outputted when partition is added for mounted file system.

/dev/sfdsk/gfs/rdsk/vol0301 is mounted

4.7.1.2 Operation as alternate file system from multiple systems

The following examples show how to execute the sfxadd(1M) command to add a data volume (/dev/sfdsk/gfs/rdsk/vol0601) to an existing file system (/dev/sfdsk/gfs/rdsk/vol0301 is used as a representative partition).

For information on sfxadd(1M) command options, refer to the sfxadd(1M) manual.

1. Preregistering the partition addition instruction for mounted file system on all systems that use the file system

node1# sfxadd -pa -D /dev/sfdsk/gfs/rdsk/vol0601 /dev/sfdsk/gfs/rdsk/vol0301
node2# sfxadd -pa -D /dev/sfdsk/gfs/rdsk/vol0601 /dev/sfdsk/gfs/rdsk/vol0301

2. Adding the actual partition on active systems

node1# sfxadd -D /dev/sfdsk/gfs/rdsk/vol0601 /dev/sfdsk/gfs/rdsk/vol0301

The error does not occur though the following messages are outputted when partition is added for mounted file system.

/dev/sfdsk/gfs/rdsk/vol0301 is mounted


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004