Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

ProcedureSPARC: How to Create a New Disk Group When Initializing Disks (VERITAS Volume Manager)


Note - This procedure is only for initializing disks. If you are encapsulating disks, use the procedure SPARC: How to Create a New Disk Group When Encapsulating Disks (VERITAS Volume Manager).


After adding the VxVM disk group, you need to register the disk device group.

If you use VxVM to set up shared disk groups for Oracle Parallel Server/Real Application Clusters, use the cluster functionality of VxVM as described in the VERITAS Volume Manager Administrator's Reference Guide.

  1. Become superuser on any cluster node that is physically connected to disks that make up the disk group being added.

  2. Create the VxVM disk group and volume.

    Use your preferred method to create the disk group and volume.


    Note - If you are setting up a mirrored volume, use Dirty Region Logging (DRL) to decrease volume recovery time after a node failure. However, DRL might decrease I/O throughput.


    See the VERITAS Volume Manager documentation for the procedures to complete this step.

  3. Register the VxVM disk group as a Sun Cluster disk device group.

    See SPARC: How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager).

    Do not register the Oracle Parallel Server/Real Application Clusters shared disk groups with the cluster framework.

ProcedureSPARC: How to Create a New Disk Group When Encapsulating Disks (VERITAS Volume Manager)


Note - This procedure is only for encapsulating disks. If you are initializing disks, use the procedure SPARC: How to Create a New Disk Group When Initializing Disks (VERITAS Volume Manager).


You can make non-root disks into Sun Cluster disk device groups by encapsulating the disks as VxVM disk groups, then registering the disk groups as Sun Cluster disk device groups.

Disk encapsulation is only supported during initial creation of a VxVM disk group. After a VxVM disk group is created and registered as a Sun Cluster disk device group, only disks which can be initialized should be added to the disk group.

If you use VxVM to set up shared disk groups for Oracle Parallel Server/Real Application Clusters, use the cluster functionality of VxVM as described in the VERITAS Volume Manager Administrator's Reference Guide.

  1. Become superuser on any node of the cluster.

  2. If the disk being encapsulated has file system entries in the /etc/vfstab file, make sure that the mount at boot option is set to no.

    Set back to yes once the disk is encapsulated and registered as a Sun Cluster disk device group.

  3. Encapsulate the disks.

    Use vxdiskadm menus or the graphical user interface to encapsulate the disks. VxVM requires two free partitions as well as unassigned cylinders at the beginning or the end of the disk. Slice two must also be set to the entire disk. See the vxdiskadm man page for more information.

  4. Shut down and restart the node.

    The scswitch(1M) command switches all resource groups and device groups from the primary node to the next preferred node. Use shutdown to shut down and restart the node.
    # scswitch -S -h node[,...]
    # shutdown -g0 -y -i6

  5. If necessary, switch all resource groups and device groups back to the original node.

    If the resource groups and device groups were initially configured to fail back to the primary node, this step is not necessary.
    # scswitch -z -D disk-device-group -h node[,...] 
    # scswitch -z -g resource-group -h node[,...] 

  6. Register the VxVM disk group as a Sun Cluster disk device group.

    See SPARC: How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager).

    Do not register the Oracle Parallel Server/Real Application Clusters shared disk groups with the cluster framework.

ProcedureSPARC: How to Add a New Volume to an Existing Disk Device Group (VERITAS Volume Manager)

When you add a new volume to an existing VxVM disk device group, perform the procedure from the primary node of the online disk device group.


Note - After adding the volume, you need to register the configuration change by using the procedure SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager).


  1. Become superuser on any node of the cluster.

  2. Determine the primary node for the disk device group to which you are adding the new volume.
    # scstat -D

  3. If the disk device group is offline, bring the device group online.
    # scswitch -z -D disk-device-group -h node[,...]

    -z -D disk-device-group

    Switches the specified device group.

    -h node

    Specifies the name of the node to switch the disk device group to. This node becomes the new primary.

  4. From the primary node (the node currently mastering the disk device group), create the VxVM volume in the disk group.

    Refer to your VERITAS Volume Manager documentation for the procedure used to create the VxVM volume.

  5. Register the VxVM disk group changes so the global namespace gets updated.

    See SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager).

ProcedureSPARC: How to Make an Existing Disk Group Into a Disk Device Group (VERITAS Volume Manager)

You can make an existing VxVM disk group into a Sun Cluster disk device group by importing the disk group onto the current node, then registering the disk group as a Sun Cluster disk device group.

  1. Become superuser on any node of the cluster.

  2. Import the VxVM disk group onto the current node.
    # vxdg import diskgroup

  3. Register the VxVM disk group as a Sun Cluster disk device group.

    See SPARC: How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager).

ProcedureSPARC: How to Assign a New Minor Number to a Disk Device Group (VERITAS Volume Manager)

If disk device group registration fails because of a minor number conflict with another disk group, you must assign the new disk group a new, unused minor number. After assigning the new minor number, rerun the procedure to register the disk group as a Sun Cluster disk device group.

  1. Become superuser on any node of the cluster.

  2. Determine the minor numbers in use.
    # ls -l /global/.devices/node@nodeid/dev/vx/dsk/*

  3. Choose another multiple of 1000 not in use as the base minor number for the new disk group.

  4. Assign the new minor number to the disk group.
    # vxdg reminor diskgroup base-minor-number

  5. Register the VxVM disk group as a Sun Cluster disk device group.

    See SPARC: How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager).

Previous Previous     Contents     Index     Next Next