Creating and managing volume sets

The following command examples show how to create and manage volume sets.

See the Veritas Volume Manager Administrator's Guide, vxassist(1M) manual page, and vxvset(1M) manual page.

To create and manage volume sets

  1. Create a new volume set from vol1:
      # vxassist -g dg1 make vol1 10m
      # vxvset -g dg1 make myvset vol1
  2. Create two new volumes and add them to the volume set:
      # vxassist -g dg1 make vol2 50m
      # vxassist -g dg1 make vol3 50m
      # vxvset -g dg1 addvol myvset vol2
      # vxvset -g dg1 addvol myvset vol3
  3. List the component volumes of the previously created volume set:
      # vxvset -g dg1 list myvset
      vol1     0       20480     ACTIVE   -
      vol2     1       102400    ACTIVE   -
      vol3     2       102400    ACTIVE   -
  4. Use the ls command to see that when a volume set is created, the volumes contained by the volume set are removed from the namespace and are instead accessed through the volume set name:
      # ls -l /dev/vx/rdsk/rootdg/myvset
      crw------- 1 root  root  108,70009 May 21 15:37
  5. Create a volume, add it to the volume set, and use the ls command to see that when a volume is added to the volume set, it is no longer visible in the namespace:
      # vxassist -g dg1 make vol4 50m
      # ls -l /dev/vx/rdsk/rootdg/vol4
      crw------- 1 root root 108,70012 May 21 15:43
      # vxvset -g dg1 addvol myvset vol4
      # ls -l /dev/vx/rdsk/rootdg/vol4
      /dev/vx/rdsk/rootdg/vol4: No such file or directory