Site icon UnixArena

VxVM – vxmake Command Syntax with Examples

VXVMAKE – UnixArena’s Manual Page

Product – Veritas Volume Manager-vxvm (Storage Foundation)

/usr/sbin/vxmake     – Create VERITAS Volume Manager Configuration records (Sub-disks,Plex and volume)

Tasks

Switches

Creating Sub Disk vxmake -g diskgroup -U usetype sd subdisk_name disk_name,start_len,end_len
vxmake -g diskgroup  sd subdisk_name len=length disk_name
Creating Concat Plex vxmake -g diskgroup -U fsgen plex plex_name sd=subdisk…
Creating Striped Plex vxmake -g diskgroup -U fsgen plex plex_name layout=stripe stwidth=width ncolumn=3 sd=subdisk1,subdisk2,subdisk3
Creating RAID5 Plex vxmake -g diskgroup -U raid5 plex plex_name layout=raid5 stwidth=width ncolumn=3 sd=subdisk1,subdisk2,subdisk3
Creating Concat Volume vxmake -b -g diskgroup -U fsgen vol volume_name [len=length] plex=plex,…
Creating Striped Volume vxmake -b -g diskgrup -U fsgen vol volume_name plex=striped_plex
Creating Mirrored Volume vxmake -b -g diskgroup -U fsgen vol volume_name plex=plex1,plex2…
Creating RAID5 Volume vxmake -b -g diskgroup -U raid5 vol volum_name plex=raid5_plex,log_plex
Creating cache Record vxmake -b -g diskgroup cache cache_name cachevolname=volume autogrow=yes|no autogrowby=len  maxautogrow=size
Creating DCO Volume vxmake -b -g diskgroup -U gen vol dco_volume_name plex=dco_plex

VXMAKE – Examples:

Note :

The output shown below are copied from ‘vxdisk list, vxprint -s, vxprint -p, vxprint -hpt & vxprint -hvt|-hvtC’ commands.

Disk Group & Disks Used in this LAB

    DEVICE       TYPE            DISK         GROUP        STATUS
	c2t9d0s2     auto:cdsdisk    oradisk01    oradg        online
	c2t10d0s2    auto:cdsdisk    oradisk02    oradg        online
	c2t20d0s2    auto:cdsdisk    oradisk03    oradg        online
	c2t22d0s2    auto:cdsdisk    oradisk04    oradg        online
	c2t23d0s2    auto:cdsdisk    oradisk05    oradg        online nohotuse

Creating Sub Disk:

   # vxmake -g oradg sd oradisk01-01 oradisk01,0,204800
   # vxmake -g oradg sd oradisk02-01 len=100m oradisk02

Subdisk will look like this

	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	sd oradisk01-01 -            ENABLED  204800   -        -        -       -
	sd oradisk02-01 -            ENABLED  204800   -        -        -       -

Creating Concat Plex:

   # vxmake -g oradg plex oravol-01 sd=oradisk01-01

Concat Plex will look like this

  	pl oravol-01    -            DISABLED -        204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c2t9d0   ENA

Creating Striped Plex:

   # vxmake -g oradg -U fsgen plex oravol-01 layout=stripe stwidth=64 ncolumn=3 sd=oradisk01-01,oradisk02-01,oradisk03-01

Striped Plex will look like this

	pl oravol-01    -            DISABLED -        614400   STRIPE    3/64     RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0/0       c2t9d0   ENA
	sd oradisk02-01 oravol-01    oradisk02 0       204800   1/0       c2t10d0  ENA
	sd oradisk03-01 oravol-01    oradisk03 0       204800   2/0       c2t20d0  ENA

Creating RAID5 Plex:

   # vxmake -g oradg -U raid5 plex plex_name layout=raid5 stwidth=width ncolumn=3 sd=subdisk1,subdisk2,subdisk3

RAID5 Plex will look this

	pl oravol-01    -            DISABLED -        409600   RAID      3/64     RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0/0       c2t9d0   ENA
	sd oradisk02-01 oravol-01    oradisk02 0       204800   1/0       c2t10d0  ENA
	sd oradisk03-01 oravol-01    oradisk03 0       204800   2/0       c2t20d0  ENA

Creating Concat Volume:

   # vxmake -g oradg -U fsgen vol oravol plex=oravol-01

The output volume will look like this

   v  oravol       -            DISABLED EMPTY    204800   ROUND     -        fsgen
	pl oravol-01    oravol       DISABLED EMPTY    204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c2t9d0   ENA

Creating Striped Volume:

   # vxmake -g oradg -U fsgen vol oravol plex=oravol-01

Striped Volume will look like this

	v  oravol       -            DISABLED EMPTY    614400   ROUND     -        fsgen
	pl oravol-01    oravol       DISABLED EMPTY    614400   STRIPE    3/64     RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0/0       c2t9d0   ENA
	sd oradisk02-01 oravol-01    oradisk02 0       204800   1/0       c2t10d0  ENA
	sd oradisk03-01 oravol-01    oradisk03 0       204800   2/0       c2t20d0  ENA

Creating Mirrored Volume:

   # vxmake -g oradg -U fsgen vol oravol plex=oravol-01,oravol-02

The output of mirror volume will look like this

  	v  oravol       -            DISABLED EMPTY    204800   ROUND     -        fsgen
	pl oravol-01    oravol       DISABLED EMPTY    204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c2t9d0   ENA
	pl oravol-02    oravol       DISABLED EMPTY    204800   CONCAT    -        RW
	sd oradisk02-01 oravol-02    oradisk02 0       204800   0         c2t10d0  ENA

Creating RAID5 Volume:

   # vxmake -g oradg -U raid5 vol oravol plex=oravol-01,oravol-02

RAID5 volume will look like this,

	v  oravol       -            DISABLED EMPTY    409600   RAID      -        raid5
	pl oravol-01    oravol       DISABLED EMPTY    409600   RAID      3/64     RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0/0       c2t9d0   ENA
	sd oradisk02-01 oravol-01    oradisk02 0       204800   1/0       c2t10d0  ENA
	sd oradisk03-01 oravol-01    oradisk03 0       204800   2/0       c2t20d0  ENA
	pl oravol-02    oravol       DISABLED EMPTY    20480    CONCAT    -        RW
	sd oradisk05-01 oravol-02    oradisk05 0       20480    0         c2t23d0  ENA

Creating Cache Record:

   # vxmake -g oradg cache cacheobj cachevolname=cachevol01 autogrow=yes autogrowby=100m  maxautogrow=500m

The object will look like this

  	co cacheobj     cachevol01   DISABLED -         
	v  cachevol01   cacheobj     ENABLED  ACTIVE   40960    SELECT    -        fsgen
	pl cachevol01-01 cachevol01  ENABLED  ACTIVE   40960    CONCAT    -        RW
	sd oradisk05-02 cachevol01-01 oradisk05 20480  40960    0         c2t23d0  ENA

Creating DCO Volume:

    # vxmake -g oradg -U gen vol dco_oravol plex=dco_oravol-01
    # vxmake -g oradg dco oravol-dco log=oravol-dcl

The DCO record will look like this

  	dc oravol-dco   oravol       -        -        -        -        -       -
	v  oravol-dcl   gen          DISABLED 20480    -        EMPTY    -       -
	pl oravol-dcl-01 oravol-dcl  DISABLED 20480    -        EMPTY    -       -
	sd oradisk05-01 oravol-dcl-01 ENABLED 20480    0        -        -       -

Note : To attach this dco volume to existing volume use ‘vxdco att’ command.

Exit mobile version