Top
PRIMECLUSTER  Installation and Administration Guide4.3

6.4.1 If using ZFS

This section explains monitoring targets, support configurations and required setup procedure before registering to Fsystem resources when using ZFS with PRIMECLUSTER.

6.4.1.1 Design for using ZFS with a Cluster System

Monitoring Facility

PRIMECLUSTER provides the following monitoring functions for ZFS file system which is configured on ZFS storage pool.

Supported Configurations

The ZFS configurations supported with PRIMECLUSTER are as follows.

Notes on Using Legacy File System

Since there are the following disadvantages when using the legacy file system in PRIMECLUSTER, it is recommended that you use the non-legacy file system.

Notes on Using Multiple File Systems in Combination

If you want to mount the legacy ZFS file system or UFS file system to the directory on the ZFS file system controlled by the Fsystem resource, use a legacy mount point.

Specifically, create a new dataset on the ZFS storage pool, and then make the dataset to be mounted as the legacy mount point. In addition, mount the legacy ZFS file system and UFS file system to the directory under the legacy mount point.

Example

The procedure for mounting the UFS file system on the ZFS storage pool "app1" is as follows:

  1. Create the dataset "app1/zfsmnt" as the legacy ZFS file system.

    Example of creating the dataset as the legacy ZFS file system

    # zfs create app1/zfsmnt
    # zfs set mountpoint=legacy app1/zfsmnt
  2. In order to mount the dataset "app1/zfsmnt" on "/zfsmnt" and mount the UFS file system on "/zfsmnt/ufsmnt", edit the "/etc/vfstab.pcl" file and add the mount information to it.

    Example of how to describe "/etc/vfstab.pcl"

    #RMS#app1/zfsmnt app1/zfsmnt /zfsmnt zfs - - -
    #RMS#/dev/sfdsk/class0001/dsk/volume0001 /dev/sfdsk/class0001/rdsk/volume0001 /zfsmnt/ufsmnt ufs - no -

Fsystem resource cannot be created with the following configurations (combination):

6.4.1.2 Setup Procedure

  1. GDS Configuration Setup

    See "6.3.2 GDS Configuration Setup" and "PRIMECLUSTER Global Disk Services Configuration and Administration Guide", create a shared disk.

    The GDS physical special file which is the target on the node where the following operation is performed needed to be accessed.

  2. Creating the ZFS storage pool

    Perform the procedure up to "5. export of the ZFS storage pool" by one of the nodes which configure a cluster.

    Create the ZFS storage pool by the zpool create command. The following example shows that the storage pool name is the app and the GDS physical special file (/dev/sfdsk/class/dsk/volume0001) is used.

    # zpool create app /dev/sfdsk/class/dsk/volume0001
    # zfs list -r app
    NAME USED AVAIL REFER MOUNTPOINT
    app 178K 129G 28.5K /app

    For details on the command to use, see the Solaris ZFS management guide.

    The highest level of the ZFS file system is automatically created if the ZFS storage pool is created as above.

  3. Creating the ZFS file system

    Create the ZFS file system by the zfs command. Three non-legacy files of app/home, app/config and app/data are created in the example below.

    # zfs create app/home
    # zfs create app/config
    # zfs create app/data
    # zfs list -r app
    NAME USED AVAIL REFER MOUNTPOINT

    When creating a non-legacy file system, set the mountpoint property to legacy. The following is the example of setting the file system app/data to legacy.

    # zfs set mountpoint=legacy app/data

    Information

    It is not a problem even if the "-o mountpoint=legacy" is specified and the mountpoint property is set when creating the file system by the zfs create.

  4. Prerequisites for Fsystem resources

    See "Note" in "6.7.1.2 Creating Fsystem Resources" and "6.7.1.2.1 Prerequisites" to perform the prerequisites for registering the Fsystem resources.

    For settings to share in NFS, see the procedure in "6.7.1.2.1 Prerequisites." Also, when sharing the non-legacy file systems in NFS, the sharenfs property of ZFS must be setup.

    For information on how to set up the sharenfs property, see the manual ZFS (1M) of ZFS. The following is an example how to set the sarenfs (specifying on) to the file system app/home.

    # zfs set sharenfs=on app/home
  5. export of the ZFS storage pool

    Export the ZFS storage pool created above by the zpool export command.

    # zpool export app

6.4.1.3 Notes on the Operation

If using ZFS in PRIMECLUSTER, there are the following notes on the operation.