Advertisements

Tag Archives: veritas

Reattach plex to the volume in Veritas Volume Manager

Some systems have the boot disk encapsulated in Veritas and it is mirrored

root@solaris:/ # vxprint -htg rootdg -v rootvol
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE

v rootvol – ENABLED ACTIVE 14338107 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 14338107 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 71124290 1 0 c0t0d0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 14338106 1 c0t0d0 ENA

This volume should have at least two plexes, so there are plexes currently disabled on this disk group.

root@solaris:/ # vxprint -htg rootdg | grep DISABLED
pl local-02 – DISABLED – 6292242 CONCAT – RW
sd rootmirr-09 local-02 rootmirr 51897995 6292242 0 c0t1d0 ENA

pl rootvol-02 – DISABLED – 14338107 CONCAT – RW
sd rootmirr-01 rootvol-02 rootmirr 2888 14338107 0 c0t1d0 ENA

To attach this plex to the volume type the command below

root@solaris:/ # vxplex -g rootdg att rootvol rootvol-02

Veritas will not release the shell until it completes the task. Open another terminal and type vxtask list to check the status

root@solaris:/ # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
180 ATCOPY/R 60.16% 0/14338107/8626432 PLXATT rootvol 0.0

After it is finished, check the volume again. It should have two plexes like in the example below

root@solaris:/ # vxprint -htg rootdg -v rootvol
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE

v rootvol – ENABLED ACTIVE 14338107 ROUND – root
pl rootvol-01 rootvol ENABLED ACTIVE 14338107 CONCAT – RW
sd rootdisk-B0 rootvol-01 rootdisk 71124290 1 0 c0t0d0 ENA
sd rootdisk-02 rootvol-01 rootdisk 0 14338106 1 c0t0d0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 14338107 CONCAT – RW
sd rootmirr-01 rootvol-02 rootmirr 2888 14338107 0 c0t1d0 ENA

Advertisements

How to discover the version of Veritas Explorer currently installed

To discover the version, simply run the tool with the -help flag.

root@solaris:/opt/VRTSspt/VRTSexplorer # ./VRTSexplorer -help
VRTSexplorer: version 4.0i
Usage: VRTSexplorer [ help | -help ] | [+v] [ module … ] | [+v] [ -module … ]
list of modules:  vxvm vxfs fw vxld dbed edition.dro edition.sybed vcs visnS visnC spc txpt vsap vrtsisp isis gcm vmsa vras vfr ndmp samba spnas vnas glm dbac td web lic vlic vrw picd nbu cca cpi vxat vxaz ccs

Volume inside a Disk Group in Veritas Volume Manager is in NEEDSYNC state

Whenever you see a volume inside a disk group with the NEEDSYNC state, you simply run vxvol -g <disk group> resync <volume> to change the status back to ACTIVE.

root@solaris:/ # vxprint -htg softwaredg
DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DT NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg softwaredg   default      default  38000    1185222274.13.solaris

dm softwaredg01 c0t9d0s2     auto     20095    286657920 –
dm softwaredg02 c1t11d0s2    auto     20095    286657920 –

v  app.software –            ENABLED  NEEDSYNC 14680064 SELECT    –        fsgen
pl app.software-01 app.software ENABLED ACTIVE 14680064 CONCAT    –        RW
sd softwaredg01-01 app.software-01 softwaredg01 0 14680064 0      c0t9d0   ENA
pl app.software-02 app.software ENABLED ACTIVE 14680064 CONCAT    –        RW
sd softwaredg02-01 app.software-02 softwaredg02 0 14680064 0      c1t11d0  ENA

v  ctm.oracatrman –          ENABLED  NEEDSYNC 2097152  SELECT    –        fsgen
pl ctm.oracatrman-01 ctm.oracatrman ENABLED ACTIVE 2097152 CONCAT –        RW
sd softwaredg01-02 ctm.oracatrman-01 softwaredg01 14680064 2097152 0 c0t9d0 ENA
pl ctm.oracatrman-02 ctm.oracatrman ENABLED ACTIVE 2097152 CONCAT –        RW
sd softwaredg02-04 ctm.oracatrman-02 softwaredg02 27262976 2097152 0 c1t11d0 ENA

v  dat.audit    –            ENABLED  NEEDSYNC 4194304  SELECT    –        fsgen
pl dat.audit-01 dat.audit    ENABLED  ACTIVE   4194304  CONCAT    –        RW
sd softwaredg01-03 dat.audit-01 softwaredg01 16777216 4194304 0   c0t9d0   ENA
pl dat.audit-02 dat.audit    ENABLED  ACTIVE   4194304  CONCAT    –        RW
sd softwaredg02-03 dat.audit-02 softwaredg02 23068672 4194304 0   c1t11d0  ENA

v  dat.users    –            ENABLED  NEEDSYNC 8388608  SELECT    –        fsgen
pl dat.users-01 dat.users    ENABLED  ACTIVE   8388608  CONCAT    –        RW
sd softwaredg01-04 dat.users-01 softwaredg01 20971520 8388608 0   c0t9d0   ENA
pl dat.users-02 dat.users    ENABLED  ACTIVE   8388608  CONCAT    –        RW
sd softwaredg02-02 dat.users-02 softwaredg02 14680064 8388608 0   c1t11d0  ENA

v  vol01        –            ENABLED  ACTIVE   10240000 SELECT    –        fsgen
pl vol01-01     vol01        ENABLED  ACTIVE   10240000 CONCAT    –        RW
sd softwaredg01-05 vol01-01  softwaredg01 29360128 10240000 0     c0t9d0   ENA
pl vol01-02     vol01        ENABLED  ACTIVE   10240000 CONCAT    –        RW
sd softwaredg02-05 vol01-02  softwaredg02 29360128 10240000 0     c1t11d0  ENA

root@solaris:/ # vxvol -g softwaredg resync dat.audit

Veritas Volume Manager – You don’t have permission to run

This is what happens when you try to run the vxdg command and doesn’t have permission.

username@hostname:/ $ vxdg list
vxvm:vxdg: ERROR: IPC failure: Permission denied

%d bloggers like this: