Wise people learn when they can; fools learn when they must - Arthur Wellesley

Monday, 21 November 2016

Veritas Volume Manager-15 (vxedit & vxmend)

================================VXEDIT================================

RENAME===============
DISK….
# vxedit -g mdg rename d2 newd2

SUBDISKS….
# vxedit -g mdg rename d2-01 newd2-01

PLEX…..
# vxedit -g mdg rename plex-01 newplex-01

VOLUME…..
vxedit -g mdg rename stvol  newstvol


REMOVING VIRTUL OBJECTS===================
VOLUME….
# vxedit -g mdg rm sttvol
PLEX…..
# vxedit -g mdg rm newplex-01
SUBDISKS…..
# vxedit -g mdg  rm newd2-01

REMOVING VOLUME ALONG WITH ASSOCIATED OBJECTS============
# vxedit -g mdg -rf rm stvol
The option ‘-rf ’ removes recursively & forcefully

SETTING / CHANGING ATTRIBUTES OF VIRTUAL OBJECTS===============
DEVICE       TYPE            DISK         GROUP        STATUS
c3t1d0s2     auto:cdsdisk    disk01    mdg        online
c3t2d0s2     auto:cdsdisk    disk02    mdg        online failing
c3t3d0s2     auto:cdsdisk    disk03    mdg        online
c3t4d0s2     auto:cdsdisk    disk04    mdg        online

Reserve a disk from being used in DG…..
# vxedit -g mdg set reserve=on disk01

Allow/Disallow disk space to be used in hot relocation…..
# vxedit -g mdg set nohotuse=on disk03

Add/remove a disk from the pool of hot-relocation spares…..
# vxedit -g mdg set spare=on disk04

Failing flag on disk…..
# vxedit -g mdg set failing=off disk02


c3t1d0s2     auto:cdsdisk    disk01    mdg        online reserverd
c3t2d0s2     auto:cdsdisk    disk02    mdg        online
c3t3d0s2     auto:cdsdisk    disk03    mdg        online nohotuse
c3t4d0s2     auto:cdsdisk    disk04    mdg        online spare


=======================VXMEND========================================



Offline Volume/plexes============
root@pr01:>/# vxprint -hvtq
Disk group: mdg

v  mrvol        -            ENABLED  ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        ENABLED  ACTIVE   2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        ENABLED  ACTIVE   2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#
root@pr01:>/# vxmend -g mdg -U fsgen -o force -r off mrvol
root@pr01:>/# vxprint -hvtq
Disk group: mdg

v  mrvol        -            DISABLED ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        DISABLED OFFLINE  2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        DISABLED OFFLINE  2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#
Online Volume/plexes============

root@pr01:>/# vxmend -g mdg -U fsgen -o force -r on mrvol
root@pr01:>/# vxprint -hvtq
Disk group: mdg

v  mrvol        -            DISABLED ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#

Offline Plex for Maintenance=====================
root@pr01:>/# vxmend -g mdg -o force off mrvol-02
root@pr01:>/#
root@pr01:>/# vxprint -hvtq
Disk group: mdg

v  mrvol        -            DISABLED ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        DISABLED OFFLINE  2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#

Re-enable  plex===================
root@pr01:>/# vxmend -g mdg on mrvol-02
root@pr01:>/#
root@pr01:>/# vxprint -hvtq
Disk group: mdg
v  mrvol        -            DISABLED ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#

Setting the state of a plex to CLEAN=================

root@pr01:>/# vxmend -g mdg -o force fix clean mrvol-02
root@pr01:>/#
root@pr01:>/# vxprint -hvtq
Disk group: mdg
v  mrvol        -            DISABLED ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        DISABLED STALE    2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        DISABLED CLEAN    2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#
Start the volume to be operational=====================
root@pr01:>/# vxvol -g mdg start mrvol
root@pr01:>/# vxprint -hvtq
Disk group: mdg

v  mrvol        -            ENABLED  ACTIVE   2097152  SELECT    -        fsgen
pl mrvol-01     mrvol        ENABLED  ACTIVE   2097152  CONCAT    -        RW
sd d2-01        mrvol-01     d2       0        2097152  0         c1t2d0s2 ENA
pl mrvol-02     mrvol        ENABLED  ACTIVE   2097152  CONCAT    -        RW
sd d3-01        mrvol-02     d3       0        2097152  0         c1t3d0   ENA
root@pr01:>/#

TUTILO PUTILO FLAG…
ATT1      -
ATT        -

#vxdg deport mdg
#vxdg import mdg
#vxmend –g mdg clear all <vol> <plex>
#vxplex –g mdg det plex
#vxplex –g mdg att <vol> <plex>

…….OR……
#vxedit –g mdg –f set tutilo=” “ <vol>
#vxedit –g mdg –f set tutilo=” “ <plex>


No comments:

Post a Comment