Advertisements

Tag Archives: attach

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
%d bloggers like this: