Checking the major and minor number for VxVM volumes

The following sections describe checking and changing, if necessary, the major and minor numbers for the VxVM volumes that cluster systems use.

To check major and minor numbers on VxVM volumes

  1. Place the VCS command directory in your path. For example:
    # export PATH=$PATH:/usr/sbin:/sbin:/opt/VRTS/bin
  2. To list the devices, use the ls -lL block_device command on each node:
    # ls -lL /dev/vx/dsk/shareddg/vol3

    On Node A, the output may resemble:

        brw-------   1 root  root  32,43000 Mar 22 16:4 1 
        /dev/vx/dsk/shareddg/vol3

    On Node B, the output may resemble:

        brw-------   1 root  root  36,43000 Mar 22 16:4 1 
        /dev/vx/dsk/shareddg/vol3
  3. Import the associated shared disk group on each node.
  4. Use the following command on each node exporting an NFS file system. The command displays the major numbers for vxio and vxspec that Veritas Volume Manager uses . Note that other major numbers are also displayed, but only vxio and vxspec are of concern for reconciliation:
    # grep vx /etc/name_to_major

    Output on Node A:

        vxdmp 30    
        vxio 32
        vxspec 33
        vxfen 87
        vxglm 91

    Output on Node B:

        vxdmp 30    
        vxio 36
        vxspec 37
        vxfen 87
        vxglm 91
  5. To change Node B's major numbers for vxio and vxspec to match those of Node A, use the command:
    haremajor -vx major_number_vxio major_number_vxspec

    For example, enter:

    # haremajor -vx 32 33

    If the command succeeds, proceed to step 8. If this command fails, you receive a report similar to the following:

        Error: Preexisting major number 32
        These are available numbers on this system: 128...
        Check /etc/name_to_major on all systems for
        available numbers.
  6. If you receive this report, use the haremajor command on Node A to change the major number (32/33) to match that of Node B (36/37). For example, enter:
    # haremajor -vx 36 37

    If the command fails again, you receive a report similar to the following:

        Error: Preexisting major number 36
        These are available numbers on this node: 126...
        Check /etc/name_to_major on all systems for
        available numbers.
  7. If you receive the second report, choose the larger of the two available numbers (in this example, 128). Use this number in the haremajor command to reconcile the major numbers. Type the following command on both nodes:
    # haremajor -vx 128 129
  8. Reboot each node on which haremajor was successful.
  9. If the minor numbers match, proceed to reconcile the major and minor numbers of your next NFS block device.
  10. If the block device on which the minor number does not match is a volume, consult the vxdg(1M) manual page. The manual page provides instructions on reconciling the Veritas Volume Manager minor numbers, and gives specific reference to the reminor option.

    Node where the vxio driver number have been changed require rebooting.