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

Part 3 Global File Services Shared File System> Chapter 22 File System Operations (Command)> 22.5 Change (partition configuration)

22.5.1 Changing an unmounted file system

This section explains the procedure for adding partitions to an unmounted GFS Shared File System.

22.5.1.1 Unmount

To change a GFS Shared File System, unmount the file system.

Before adding partitions to a file system that did not stop normally, correct the file system status with fsck_sfcfs(1M).

22.5.1.2 Setting shared disk

The partitionTerm in which a GFS Shared File System is created and operated must be on a shared diskTerm recognized by PRIMECLUSTERTerm. To use a GDS logical volume as a target device, it must be active.

When registering a GDS logical volume with a class, set the disk type as shared and the scope to include all the nodes that share the GFS Shared File System.

For GDS disk class operations, see the applicable items under "Operation using Global Disk Services Management View" in the "PRIMECLUSTER Global Disk Services Configuration and Administration Guide."
For GDS logical volume operations, see the applicable items under "Operation using Global Disk Services Management View" in the "PRIMECLUSTER Global Disk Services Configuration and Administration Guide."

22.5.1.3 Change the file system configuration

This section explains the procedure for adding a new file data partitionTerm to an existing GFS Shared File System.

22.5.1.3.1 Adding a file data partition

A new file data partitionTerm can be added to an existing GFS Shared File System without saving and restoring data.

To add a file data partition, use sfcadd(1M).

How to add a file data partition (/dev/sfdsk/gfs/rdsk/volume1) to an existing file system (/dev/sfdsk/gfs/rdsk/volume2) by sfcadd(1M) is shown below.

For details on sfcadd(1M) options, see Appendix F.2.1, "sfcadd(1M)."

1. Check the configuration of the current file system.

# sfcinfo /dev/sfdsk/gfs/dsk/volume1
/dev/sfdsk/gfs/dsk/volume1:
FSID special                                  size  Type   mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)     407144  META   -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)    3761416  DATA   -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)       5120  LOG    -----

2. Add a file data partition as file data area.

# sfcadd -D /dev/sfdsk/gfs/rdsk/volume2 /dev/sfdsk/gfs/rdsk/volume1

3. Confirm that the file data partition has been added.

# sfcinfo /dev/sfdsk/gfs/dsk/volume1
/dev/sfdsk/gfs/dsk/volume1:
FSID special                                  size  Type   mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)     407144  META   -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)    3761416  DATA   -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)       5120  LOG    -----
   1 /dev/sfdsk/gfs/dsk/volume2(3fa0082)      65512  DATA   -----

A file data partition addition is not possible if doing so would exceed the maximum number of partitions (-l maxvol) for the file system, as specified by sfcnewfs(1M).
When adding file data partitions, confirm that the new total size of the file system does not exceed the maximum file data area size (-d maxdsz) for the file system, as specified by sfcnewfs(1M).

22.5.1.3.2 Adding a meta-data partition

Use sfcadd(1M) to add partitions to the meta-data area.

The procedure shown below adds a partition (/dev/sfdsk/gfs/rdsk/volume2) to an existing file system (/dev/sfdsk/gfs/rdsk/volume1) as a meta-data area using sfcadd(1M).

For details on the sfcadd(1M) options, see Appendix F.2.1, "sfcadd(1M)."

1. Check the current file system configuration.

# sfcinfo /dev/sfdsk/gfs/dsk/volume1
/dev/sfdsk/gfs/dsk/volume1:
FSID special                                      size  Type  mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)         407144  META  -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)        3761416  DATA  -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)           5120  LOG   -----

2. Add a partition as a meta-data area.

# sfcadd -M /dev/sfdsk/gfs/dsk/volume2 /dev/sfdsk/gfs/dsk/volume1

3. Check that a partition has been added.

 
# sfcinfo /dev/sfdsk/gfs/dsk/volume1
/dev/sfdsk/gfs/dsk/volume1:
FSID special                                      size  Type  mount
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)         407144  META  -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)        3761416  DATA  -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa0081)           5120  LOG   -----
   1 /dev/sfdsk/gfs/dsk/volume1(3fa008c)          65512  META  -----

Note the following limitation for meta-data partition addition.
Addition is not possible if doing so would exceed the maximum number of partitions (-l maxvol) in the file system, as specified by sfcnewfs(1M).

22.5.1.4 Mount

After changing the GFS Shared File System partition configuration, mount the file system.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004