Before you configure the file system on cluster-paris, ensure that the Sun Cluster entities you require, such as application resource groups, device groups, and volumes, have already been configured.
Create the required file system on the vol1 volume at the command line.
On each node in the cluster, create mount points for the file system you just created.
# mkdir -p /mounts/sample |
Your mount point.
Add an entry to the /etc/vfstab file that contains information such as the mount location.
Whether the file system is to be mounted locally or globally depends on various factors, such as your performance requirements, or the type of application resource group you are using.
You must set the mount at boot field in this file to no. This value prevents the file system from mounting on the secondary cluster at cluster startup. Instead, the Sun Cluster software and the Sun Cluster Geographic Edition framework handle mounting the file system by using the HAStoragePlus resource when the application is brought online on the primary cluster.
Add the HAStoragePlus resource to the application resource group, apprg1.
Adding the resource to the application resource group ensures that the necessary file systems are mounted before the application is brought online.
For more information about the HAStoragePlus resource type, refer to the Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
Verify that the device group was registered properly.
The following command should display the device group dg1.
phys-paris-1# cldevicegroup show dg1 |
This example creates a locally mounted filesystem, with HAStoragePlus. The filesystem created in this example is mounted locally every time the resource is brought online.
This example assumes that the following already exist:
The apprg1 resource group
The dg1 VxVM device group
The vol1 VxVM volume
Create a UNIX file system (UFS).
phys-paris-1# newfs dev/vx/dsk/dg1/vol1 |
On each node in the cluster, create mount points for the file system.
phys-paris-1# mkdir -p /mounts/sample phys-paris-2# mkdir -p /mounts/sample |
Create mount points on all cluster paris nodes.
phys-paris-1# mkdir /mounts/sample |
Add the following entry to the /etc/vfstab file:
phys-paris-1# /dev/vs/dsk/dg1/vol1 /dev/vx/rdsk/dg1/vol1 /mounts/sample \ ufs 2 no logging |
Add the HAStoragePlus resource type.
phys-paris-1# clresource create -g apprg1 -t SUNW.HAStoragePlus \ -p FilesystemMountPoints=/mounts/sample -p Affinityon=TRUE \ -p GlobalDevicePaths=dg1 rs-hasp |