Home / Syntax / vxsd – Syntax with Example

vxsd – Syntax with Example

vxsd – UnixArena’S Manual Page

/usr/sbin/vxsd – The vxsd utility performs VERITAS Volume Manager (VxVM) operations on subĀ disks and on plex and sub disk combinations.

Product – Storage Foundation(Veritas Volume Manager 6.0 )

Tasks

Switches

Associates subdisks vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-l [column/]offset] assoc plex sd…
Splitting Subdisk vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-s size] split sd newsd [newsd2]
Joining SubDisk’s vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] join sd1 sd2 … newsd
Moving or Replacing SubDisk vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-k [-O operational_tag]] mv oldsd newsd
Dissociating a subdisk vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] dis sd …

VXSD – Examples

Associates subdisks with an existing plex

  # vxsd -g oradg assoc oravol-01 oradisk01-01
   	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	sd oradisk01-01 oravol-01    ENABLED  204800   0        -        -       -

Adds subdisks to the ends of the columns in a striped or RAID-5 volume

	v  appsvol01    -            ENABLED  ACTIVE   614400   SELECT    appsvol01-01 fsgen
	pl appsvol01-01 appsvol01    ENABLED  ACTIVE   614400   STRIPE    3/128    RW
	sd oradisk06-01 appsvol01-01 oradisk06 0       204800   0/0       c3t6d0   ENA
	sd oradisk01-02 appsvol01-01 oradisk01 204800  204800   1/0       c3t1d0   ENA
	sd oradisk02-02 appsvol01-01 oradisk02 204800  204800   2/0       c3t2d0   ENA

  # vxsd -g oradg assoc appsvol01-01 oradisk03-01:0 oradisk04-01:2 oradisk05-01:3 
	v  appsvol01    -            ENABLED  ACTIVE   614400   SELECT    appsvol01-01 fsgen
	pl appsvol01-01 appsvol01    ENABLED  ACTIVE   1228800  STRIPE    3/128    RW
	sd oradisk06-01 appsvol01-01 oradisk06 0       204800   0/0       c3t6d0   ENA
	sd oradisk03-01 appsvol01-01 oradisk03 0       204800   0/204800  c3t3d0   ENA
	sd oradisk01-02 appsvol01-01 oradisk01 204800  204800   1/0       c3t1d0   ENA
	sd oradisk04-01 appsvol01-01 oradisk04 0       204800   1/204800  c3t4d0   ENA
	sd oradisk02-02 appsvol01-01 oradisk02 204800  204800   2/0       c3t2d0   ENA
	sd oradisk05-01 appsvol01-01 oradisk05 0       204800   2/204800  c3t5d0   ENA
Here you can resize the volume to maximum or to a specified length using ‘vxresize’ command.

Dissociating a subdisk from a plex

  # vxsd -g oradg -o force dis oradisk03-01 oradisk04-01 oradisk05-01
	v  appsvol01    -            ENABLED  ACTIVE   614400   SELECT    appsvol01-01 fsgen
	pl appsvol01-01 appsvol01    ENABLED  ACTIVE   614400   STRIPE    3/128    RW
	sd oradisk06-01 appsvol01-01 oradisk06 0       204800   0/0       c3t6d0   ENA
	sd oradisk01-02 appsvol01-01 oradisk01 204800  204800   1/0       c3t1d0   ENA
	sd oradisk02-02 appsvol01-01 oradisk02 204800  204800   2/0       c3t2d0   ENA

Dissociating and Removing subdisks

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

   # vxsd -g oradg -o rm dis oradisk01-01
	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	sd oradisk02-01 -            ENABLED  204800   -        -        -       -
	sd oradisk03-01 -            ENABLED  204800   -        -        -       -

Splitting subdisk

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

  # vxsd -g oradg -s 80m split oradisk01-01 oradisk01-01 oradisk01-02  	
  	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	sd oradisk01-01 -            ENABLED  163840   -        -        -       -
	sd oradisk01-02 -            ENABLED  245760   -        -        -       -

Joining Subdisk

  # vxsd -g oradg join oradisk01-01 oradisk01-02 oradisk01-01	
	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	sd oradisk01-01 -            ENABLED  409600   -        -        -       -

Replacing subdisk

	v  oravol       -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   409600   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       409600   0         c3t1d0   ENA
	pl oravol-02    oravol       ENABLED  ACTIVE   409600   CONCAT    -        RW
	sd oradisk02-01 oravol-02    oradisk02 0       409600   0         c3t2d0   ENA

  # vxsd -g oradg mv oradisk02-01 oradisk03-01
	v  oravol       -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   409600   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       409600   0         c3t1d0   ENA
	pl oravol-02    oravol       ENABLED  ACTIVE   409600   CONCAT    -        RW
	sd oradisk03-01 oravol-02    oradisk03 0       409600   0         c3t3d0   ENA

 

VMTURBO-CLOUD-CAPACITY

Leave a Reply

Your email address will not be published. Required fields are marked *