Sun Cluster 2.2 Cluster Volume Manager Guide

3.7.1 Disk Group Expansion

The following procedure is one method of adding disks to a disk group.


Note -

You may find that the CVM software offers many ways to produce the same result. Choose the method with which you feel the most comfortable.


There are now five disk groups in your cluster system, with two disks in each of the disk groups.

To inventory your disk resources, enter:


# vxdisk list

For example, presume that the command shows there are two free disks, c1t0d1 and c2t0d1.

  1. Initialize the disks.


    # /etc/vx/bin/vxdisksetup -i c1t0d1
    # /etc/vx/bin/vxdisksetup -i c2t0d1
    
  2. Add disks into an existing disk group:

    The command syntax is:


    # vxdg -g disk_group_name adddisk devices ...
    

    For the present example, the command is:


    # vxdg -g acct adddisk c1t0d1 c2t0d1
    
  3. View the new expanded disk group.

    The command syntax is:


    # vxprint -g disk_group_name 
    

    For the present example, the command would be:


    # vxprint -g acct
    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dg acct         acct         -        -        -        -        -       -
    
    dm c1t0d0       c1t0d0s2     -        2050272  -        -        -       -
    dm c1t0d1       c1t0d1s2     -        2050272  -        -        -       -
    dm c2t0d0       c2t0d0s2     -        2050272  -        -        -       -
    dm c2t0d1       c2t0d1s2     -        2050272  -        -        -       -
    
    v  vol01        gen          ENABLED  1024000  -        ACTIVE   -       -
    pl vol01-01     vol01        ENABLED  1024128  -        ACTIVE   -       -
    sd c1t0d0-01    vol01-01     ENABLED  1024128  0        -        -       -
    pl vol01-02     vol01        ENABLED  1024128  -        ACTIVE   -       -
    sd c2t0d0-01    vol01-02     ENABLED  1024128  0        -        -       -
  4. Create mirrored volumes.

    The command syntaxes are:


    # vxassist make vol_name length disk_name
    # vxassist mirror vol_name disk_name
    

    For the present example:


    # vxassist make newvol 100m c1t0d1
    # vxassist mirror newvol c2t0d1