Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
C.   Installing and Configuring VERITAS Volume Manager Installing and Configuring VxVM Software How to Install VERITAS Volume Manager Software and Encapsulate the Root Disk  Previous   Contents   Next 
   
 

Note - If you later need to unencapsulate the root disk, follow the procedures in How to Unencapsulate the Root Disk.


ProcedureHow to Mirror the Encapsulated Root Disk

After you install VxVM and encapsulate the root disk, perform this procedure on each node on which you mirror the encapsulated root disk.

  1. Mirror the encapsulated root disk.

    Follow the procedures in your VxVM documentation. For maximum availability and simplified administration, use a local disk for the mirror. See Guidelines for Mirroring the Root Disk for additional guidelines.


    Caution - Do not use a quorum device to mirror a root disk. Using a quorum device to mirror a root disk might prevent the node from booting from the root-disk mirror under certain circumstances.


  2. Display the DID mappings.
    # scdidadm -L

  3. From the DID mappings, locate the disk that is used to mirror the root disk.

  4. Extract the raw-disk device-group name from the device-ID name of the root-disk mirror.

    The name of the raw-disk device group follows the convention dsk/dN, where N is a number. In the following output, the portion of a scdidadm output line from which you extract the raw-disk device-group name is highlighted in bold.
    N         node:/dev/rdsk/cNtXdY     /dev/did/rdsk/dN

  5. View the node list of the raw-disk device group.

    Output looks similar to the following.
    # scconf -pvv | grep dsk/dN
    Device group name:						dsk/dN
    ...
     (dsk/dN) Device group node list:		phys-schost-1, phys-schost-3
    ...

  6. Does the node list contain more than one node name?

  7. Remove from the node list for the raw-disk device group all nodes except the node whose root disk you mirrored.

    Only the node whose root disk you mirrored should remain in the node list.
    # scconf -r -D name=dsk/dN,nodelist=node
    -D name=dsk/dN

    Specifies the cluster-unique name of the raw-disk device group

    nodelist=node

    Specifies the name of the node or nodes to remove from the node list

  8. Enable the localonly property of the raw-disk device group.

    When the localonly property is enabled, the raw-disk device group is used exclusively by the node in its node list. This usage prevents unintentional fencing of the node from its boot device if the boot device is connected to multiple nodes.
    # scconf -c -D name=dsk/dN,localonly=true

    For more information about the localonly property, see the scconf_dg_rawdisk(1M) man page.

  9. Repeat this procedure for each node in the cluster whose encapsulated root disk you intend to mirror.

  10. Create disk groups.

    Go to How to Create and Register a Disk Group.

Example--Mirroring the Encapsulated Root Disk

The following example shows a mirror created of the root disk for the node phys-schost-1. The mirror is created on the disk c1t1d0, whose raw-disk device-group name is dsk/d2. Disk c1t1d0 is a multiported disk, so the node phys-schost-3 is removed from the disk's node list and the localonly property is enabled.
(Display the DID mappings)
# scdidadm -L 
...
2        phys-schost-1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2   
2        phys-schost-3:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2   
...
 
(Display the node list of the mirror disk's raw-disk device group)
# scconf -pvv | grep dsk/d2
Device group name:						dsk/d2
...
  (dsk/d2) Device group node list:		phys-schost-1, phys-schost-3
...
 
(Remove phys-schost-3 from the node list)
# scconf -r -D name=dsk/d2,nodelist=phys-schost-3
  
(Enable the localonly property)
# scconf -c -D name=dsk/d2,localonly=true

ProcedureHow to Install VERITAS Volume Manager Software Only

This procedure uses the scvxinstall command to install VERITAS Volume Manager (VxVM) software only.


Note - To create the rootdg disk group by encapsulating the root disk, do not use this procedure. Instead, go to How to Install VERITAS Volume Manager Software and Encapsulate the Root Disk to install VxVM software and encapsulate the root disk in one operation.


Perform this procedure on each node that you want to install with VxVM. You can install VxVM on all nodes of the cluster, or on only those nodes that are physically connected to the storage devices that VxVM will manage.

  1. Ensure that all nodes in the cluster are running in cluster mode.

  2. Become superuser on a cluster node that you intend to install with VxVM.

  3. Insert the VxVM CD-ROM into the CD-ROM drive on the node.

  4. Start scvxinstall in noninteractive installation mode.
    # scvxinstall -i

    The scvxinstall command automatically performs the following tasks.

    • Disables Dynamic Multipathing (DMP)


      Note - Although the scvxinstall utility disables Dynamic Multipathing (DMP) at the start of installation processing, DMP is automatically re-enabled by VxVM version 3.1.1 or later when the VRTSvxvm package is installed. Earlier versions of VxVM must still run with DMP disabled.

      Having DMP enabled on systems with only a single path per node poses no problems. However, if you use VxVM in a configuration with multiple paths per node, then you must use another multipathing solution, such as Sun StorEdge Traffic Manager or EMC PowerPath.


    • Installs the required VxVM software, licensing, and man-page packages, but does not install the GUI packages

    • Selects a cluster-wide vxio driver major number


    Note - You add VxVM licenses during the next procedure, How to Create a rootdg Disk Group on a Nonroot Disk.


    See the scvxinstall(1M) man page for information.

  5. (Optional) Install the VxVM GUI.

    See your VxVM documentation for information about installing the VxVM GUI.

  6. Eject the CD-ROM.

  7. Install any VxVM patches.

    See "Patches and Required Firmware Levels" in Sun Cluster 3.1 Release Notes for the location of patches and installation instructions.

  8. (Optional) If you prefer not to have VxVM man pages reside on the cluster node, remove the man-page package.
    # pkgrm VRTSvmman

  9. Do you intend to install VxVM on another node?

  10. Do you not intend to install one or more nodes with VxVM?


    Note - If you intend to enable the VxVM cluster feature, you must install VxVM on all nodes of the cluster.


  11. Modify the /etc/name_to_major file on each non-VxVM node.

    1. On a node that is installed with VxVM, determine the vxio major number setting.
      # grep vxio /etc/name_to_major

    2. Become superuser on a node that you do not intend to install with VxVM.

    3. Edit the /etc/name_to_major file and add an entry to set the vxio major number to NNN, the number derived in Step a.
      # vi /etc/name_to_major
      vxio NNN

    4. Initialize the vxio entry.
      # drvconfig -b -i vxio -m NNN

    5. Repeat Step a through Step c on all other nodes that you do not intend to install with VxVM.

      When you finish, each node of the cluster should have the same vxio entry in its /etc/name_to_major file.

  12. Prevent any new machines from being added to the cluster.

    1. Start the scsetup(1M) utility.
      # scsetup

      The Main Menu is displayed.

    2. To access the New Nodes Menu, type 6 at the Main Menu.

    3. Type 1 at the New Nodes Menu.

      Follow the scsetup prompts. This option tells the cluster to ignore all requests coming in over the public network from any new machine that tries to add itself to the cluster.

    4. Quit the scsetup utility.

  13. Create a rootdg disk group.

    Go to How to Create a rootdg Disk Group on a Nonroot Disk.

 
 
 
  Previous   Contents   Next