Sun Cluster Geographic Edition System Administration Guide

ProcedureHow to Configure a Highly Available Cluster Global File System for Use With Sun StorEdge Availability Suite 3.2.1

Steps
  1. Create the required file system on the volume set that you created in the previous step, vol-data-paris.

    The application writes to this file system.

  2. Add an entry to the /etc/vfstab file that contains information such as the mount location.


    Note –

    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. Data must not be mounted on the secondary cluster or data on the primary will not be replicated to the secondary cluster. Otherwise, the data will not be replicated from the primary cluster to the secondary cluster.


  3. To handle the new file system, add the HAStoragePlus resource to the application resource group, apprg1.

    Adding this resource ensures that the necessary file systems are remounted before the application is started.

    For more information about the HAStoragePlus resource type, refer to the Sun Cluster 3.1 Data Service Planning and Administration Guide.

  4. Repeat steps 1–3 on both cluster-paris and cluster-newyork.


Example 6–7 Configuring a Highly Available Cluster Global File System for Solaris Volume Manager Volumes

This example assumes that the resource group apprg1 already exists.

  1. Create a UNIX file system (UFS).


    phys-paris-1# newfs /dev/md/avsset/rdsk/d100
  2. An entry is created in the /etc/vfstab file as follows.


    /dev/md/avsset/dsk/d100 /dev/md/avsset/rdsk/d100 
    /global/sample ufs 2 no logging
  3. Add the HAStoragePlus resource.


    phys-paris-1# scrgadm -a -j rs-hasp -g apprg1 -t SUNW.HAStoragePlus 
    -x FilesystemMountPoints=/global/sample -x AffinityOn=TRUE 


Example 6–8 Configuring a Highly Available Cluster Global File System for VERITAS Volume Manager Volumes

This example assumes that the apprg1 resource group already exists.

  1. Create a UNIX file system (UFS).


    phys-paris-1# newfs /dev/vx/rdsk/avsdg/vol-data-paris
  2. An entry is created in the /etc/vfstab file as follows:


    /dev/vx/dsk/avsdg/vol-data-paris /dev/vx/rdsk/avsdg/vol-data-paris 
    /global/sample ufs 2 no logging
  3. Add the HAStoragePlus resource.


    phys-paris-1# scrgadm -a -j rs-hasp -g apprg1 -t SUNW.HAStoragePlus 
    -x FilesystemMountPoints=/global/sample -x AffinityOn=TRUE 


Example 6–9 Configuring a Highly Available Cluster Global File System for Raw Device Volumes

This example assumes that the apprg1 resource group already exists.

  1. Create a UNIX file system (UFS).


    phys-paris-1# newfs /dev/did/rdsk/d3s3
  2. An entry is created in the /etc/vfstab file as follows:


    /dev/did/dsk/d3s3 /dev/did/rdsk/d3s3 
    /global/sample ufs 2 no logging
  3. Add the HAStoragePlus resource.


    phys-paris-1# scrgadm -a -j rs-hasp -g apprg1 -t SUNW.HAStoragePlus 
    -x FilesystemMountPoints=/global/sample -x AffinityOn=TRUE