Sun Cluster 2.2 Software Installation Guide

C.2.1 How to Configure SSVM for Sun Cluster

  1. Format the disks to be administered by the volume manager.

    Use the fmthard(1M) command to create a VTOC on each disk with a single Slice 2 defined for the entire disk.

  2. Initialize each disk for use by the volume manager.

    Use the vxdiskadd(1M) command to initialize each disk.

  3. Add each initialized disk to a disk group.

    Use the vxdg(1M) command to add disks to a disk group. You must designate at least one disk to the rootdg disk group on each node. When you configure SSVM, you have the option of creating a rootdg by encapsulating the boot disk or by creating a simple rootdg using a few cylinders of the boot disk. To encapsulate the boot disk, refer to your SSVM documentation. To configure the rootdg using part of the boot disk, perform the following steps.

    1. Create a 10-MByte partition on the boot disk.

    2. Add the SSVM packages by using the pkgadd(1M) command.

    3. Execute the following commands to create the root disk group.

      In this example, c0t0d0s7 is the target partition.

      # vxconfigd -m disable
      # vxdctl init
      # vxdg init rootdg
      # vxdctl add disk c0t0d0s7 type=simple
      
       vxvm:vxdctl: WARNING: Device c0t0d0s7: Not currently in the configuration
      
       # vxdisk -f init c0t0d0s7 type=simple
      # vxdg -g rootdg adddisk c0t0d0s7
      # vxdctl enable
      # rm /etc/vx/reconfig.d/state.d/install-db
      

      Note -

      The error message

      vxvm:vxdctl: WARNING: Device c0t0d0s7: 
      Not currently in the configuration 

      can be ignored safely at this point.


  4. (Optional) Assign hot spares.

    For each disk group, use the vxedit(1M) command to assign one disk as a hot spare for each disk controller.

  5. Reboot all nodes on which you installed SSVM.

  6. For each disk group, create a volume to be used for the HA administrative file system on the multihost disks.

    The HA administrative file system is used by Sun Cluster for data service specific state or configuration information.

    Use the vxassist(1M) command to create a 10-Mbyte volume mirrored across two controllers for the HA administrative file system. Name this volume diskgroup-stat.

  7. For each disk group, create the other volumes to be used by HA data services.

    Use the vxassist(1M) command to create these volumes.

  8. Start the volumes.

    Use the vxvol(1M) command to start the volumes.

  9. Create file systems on the volumes.

    Refer to "C.3 Configuring VxFS File Systems on the Multihost Disks", for details on creating the necessary file systems.