Home / Syntax / vxplex – Syntax with Examples

vxplex – Syntax with Examples

vxplex – UnixArena’s Manual Page 

/usr/sbin/vxplex – The vxplex utility performs VERITAS Volume Manager Operations on plexes and on volume-and-plex combinations.

Tasks

Switches

Make a copy of a Volume vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] cp vol plex
Replace the old plex with newplex vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] mv oldplex newplex
Attach each named plex to the named volume vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol]att vol plex1 plex2
Detach each of the named plexes vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] det plex
Dissociate each of the named plexes vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] dis plex
Convert a snapshot plex into a regular plex, or vice versa vxplex [-v vol] convert state=SNAPDONE|ACTIVE plex
Cancel the effects of a snapstart vxplex [-o useopt] [-v vol] snapabort plex
Copying a volume to a plex for backup purposes vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] snapstart vol snapplex
vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] snapshot snapplex [newvol]
Dissociates named plexes from their current volume vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V] [-v vol] snapback origvol plex

VXPLEX – Examples

Make a copy of a Volume
Sample volume used for this demo:

  	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   -            DISABLED 204800   -        -        -       -
	pl oravol-01    oravol       ENABLED  204800   -        ACTIVE   -       -

  # vxplex -g oradg cp oravol appsvol-01
Once you made a copy of volume, you can associate and use it as separate volume.

Replace the old plex with newplex

  	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   -            DISABLED 204800   -        -        -       -
	pl oravol-01    oravol       ENABLED  204800   -        ACTIVE   -       -

  # vxplex -g oradg mv oravol-01 appsvol-01
	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   oravol       ENABLED  204800   -        ACTIVE   -       -
	pl oravol-01    -            DISABLED 204800   -        -        -       -

Attach each named plex to the named volume

  	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   oravol       ENABLED  204800   -        ACTIVE   -       -
	pl oravol-01    -            DISABLED 204800   -        -        -       -

  # vxplex -g oradg att oravol oravol-01
	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   oravol       ENABLED  204800   -        ACTIVE   -       -
	pl oravol-01    oravol       ENABLED  204800   -        ACTIVE   -       -

Detach each of the named plexes

	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   oravol       ENABLED  204800   -        ACTIVE   -       -
	pl oravol-01    oravol       ENABLED  204800   -        ACTIVE   -       -

  # vxplex -g oradg -v oravol det oravol-01
	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   oravol       ENABLED  204800   -        ACTIVE   -       -
	pl oravol-01    oravol       DETACHED 204800   -        STALE    -       -

Disassociate  each of the named plexes

  	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   appsvol      DISABLED 204800   -        EMPTY    -       -

  # vxplex -g oradg dis appsvol-01	
    	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl appsvol-01   -            DISABLED 204800   -        -        -       -

Disassociate  and remove the plexes and subdisks from the configuration

  # vxplex -g oradg -o rm dis appsvol-01

Copying a volume to a plex for backup purposes:(One of the snapshot method)

	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA

	TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
	pl oravol-01    oravol       ENABLED  204800   -        ACTIVE   -       -
	pl testvol-01   -            DISABLED 204800   -        -        -       -

  # vxplex -g oradg snapstart oravol testvol-01
	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA
	pl testvol-01   oravol       ENABLED  SNAPDIS  204800   CONCAT    -        WO
	sd oradisk02-01 testvol-01   oradisk02 0       204800   0         c3t2d0   ENA

  # vxplex -g oradg snapshot testvol-01 testvol
	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA

	v  testvol      -            ENABLED  ACTIVE   204800   ROUND     -        fsgen
	pl testvol-01   testvol      ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk02-01 testvol-01   oradisk02 0       204800   0         c3t2d0   ENA

Convert a snapshot plex into a regular plex, or vice versa

  # vxplex convert state=SNAPDONE|ACTIVE testvol-01

Cancel the effects of a snapstart

	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA
	pl testvol-01   oravol       ENABLED  SNAPDIS  204800   CONCAT    -        WO
	sd oradisk02-01 testvol-01   oradisk02 0       204800   0         c3t2d0   ENA

  # vxplex snapabort plex 
 	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA

– This command also removes the plex & Sub Disk from configuration.

Attach the SNAPSHOT back to the volume

# vxplex -g oradg snapback oravol testvol-01
  	v  oravol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
	pl oravol-01    oravol       ENABLED  ACTIVE   204800   CONCAT    -        RW
	sd oradisk01-01 oravol-01    oradisk01 0       204800   0         c3t1d0   ENA
	pl testvol-01   oravol       ENABLED  SNAPDONE 204800   CONCAT    -        WO
	sd oradisk02-01 testvol-01   oradisk02 0       204800   0         c3t2d0   ENA
VMTURBO-CLOUD-CAPACITY

Leave a Reply

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