Sun Cluster 2.2 Software Installation Guide

C.3.1 How to Configure VxFS File Systems on the Multihost Disks

  1. Use the mkfs(1M) command to create file systems on the volumes.

    Before you can run the mkfs(1M) command on the disk groups, you might need to take ownership of the disk group containing the volume. Do this by importing the disk group to the active node using the vxdg(1M) command.

    phys-hahost1# vxdg import diskgroup
    
    1. Create the HA administrative file systems on the volumes.

      Run the mkfs(1M) command on each volume in the configuration.

      phys-hahost1# mkfs /dev/vx/rdsk/diskgroup/diskgroup-stat
      
    2. Create file systems for all volumes.

      These volumes will be mounted by the logical hosts.

      phys-hahost1# mkfs -F vxfs /dev/vx/rdsk/diskgroup/volume
      
  2. Create a directory mount point for the HA administrative file system.

    phys-hahost1# mkdir /logicalhost
    
  3. Mount the HA administrative file system.

    phys-hahost1# mount /dev/vx/dsk/diskgroup/diskgroup-stat/logicalhost
    
  4. Create mount points for the data service file systems created in Step 1b.

    phys-hahost1# mkdir /logicalhost/volume
    
  5. Create the /etc/opt/SUNWcluster/conf/hanfs directory.

  6. Create and edit the /etc/opt/SUNWcluster/conf/hanfs/vfstab.logicalhost file to update the administrative and multihost VxFS file system information.

    Make sure that entries for each disk group appear in the vfstab.logicalhost files on each node that is a potential master of the disk group. Make sure the vfstab.logicalhost files contain the same information. Use the cconsole(1) facility to make simultaneous edits to vfstab.logicalhost files on all nodes in the cluster.

    Here is a sample /etc/vfstab.logicalhost file showing the administrative file system and two other VxFS file systems. In this example, dg1 is the disk group name and hahost1 is the logical host name.

    /dev/vx/dsk/dg1/dg1-stat     /dev/vx/rdsk/dg1/dg1-stat     /hahost1 vxfs - yes -
    /dev/vx/dsk/dg1/vol_1        /dev/vx/rdsk/dg1/vol_1        /hahost1/vol_1 vxfs - yes -
    /dev/vx/dsk/dg1/vol_2        /dev/vx/rdsk/dg1/vol_2        /hahost1/vol_1 vxfs - yes -
  7. Unmount the HA administrative file systems that you mounted in Step 3.

    phys-hahost1# umount /logicalhost
    
  8. Export the disk groups.

    If you took ownership of the disk groups on the active node by using the vxdg(1M) command before creating the file systems, release ownership of the disk groups once file system creation is complete.

    phys-hahost1# vxdg deport diskgroup
    
  9. Import the disk groups to their default masters.

    It is most convenient to create and populate disk groups from the active node that is the default master of the particular disk group.

    Each disk group should be imported onto the default master node using the -t option. The -t option is important, as it prevents the import from persisting across the next boot.

    phys-hahost1# vxdg -t import diskgroup
    
  10. (Optional) To make file systems NFS-sharable, refer to Chapter 11, Setting Up and Administering Sun Cluster HA for NFS.