Video Screencast Help

Need a solution for volumes

Created: 29 Apr 2013 | 1 comment

root@refadm1-oss1:/tmp# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t5006016047201339d0s2 auto:sliced     disk2        ossdg        online
c0t5006016047201339d1s2 auto:sliced     disk3        sybasedg     online
c0t5006016047201339d2s2 auto:sliced     -            -            online
c0t5006016047201339d3s2 auto:sliced     -            -            online
c0t5006016047201339d4s2 auto:sliced     -            -            online
c0t5006016047201339d5s2 auto:sliced     -            -            online
c0t5006016047201339d6s2 auto:sliced     -            -            online
c0t5006016047201339d7s2 auto:sliced     -            -            online
c0t5006016047201339d8s2 auto:sliced     -            -            online
c0t5006016047201339d9s2 auto:sliced     -            -            online
c2t0d0s2     auto:SVM        -            -            SVM
c2t1d0s2     auto:SVM        -            -            SVM
root@refadm1-oss1:/tmp# vxprint -g ossdg -htv
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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE

v  JUMP         -            ENABLED  ACTIVE   25165824 ROUND     -        fsgen
pl JUMP-01      JUMP         ENABLED  ACTIVE   25165824 CONCAT    -        RW
sd disk2-02     JUMP-01      disk2    19456000 25165824 0         c0t5006016047201339d0 ENA
pl JUMP-02      JUMP         ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd disk2-10     JUMP-02      disk2    327824400 1040    LOG       c0t5006016047201339d0 ENA

v  ericsson     -            ENABLED  ACTIVE   114180096 ROUND    -        fsgen
pl ericsson-01  ericsson     ENABLED  ACTIVE   114180096 CONCAT   -        RW
sd disk2-03     ericsson-01  disk2    44621824 114180096 0        c0t5006016047201339d0 ENA
pl ericsson-02  ericsson     ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd disk2-11     ericsson-02  disk2    327825440 2080    LOG       c0t5006016047201339d0 ENA

v  export       -            ENABLED  ACTIVE   46620672 ROUND     -        fsgen
pl export-01    export       ENABLED  ACTIVE   46620672 CONCAT    -        RW
sd disk2-04     export-01    disk2    158801920 46489600 0        c0t5006016047201339d0 ENA
sd disk2-08     export-01    disk2    327692288 131072  46489600  c0t5006016047201339d0 ENA
pl export-02    export       ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd disk2-12     export-02    disk2    327827520 1040    LOG       c0t5006016047201339d0 ENA

v  swap         -            ENABLED  ACTIVE   53248000 ROUND     -        gen
pl swap-01      swap         ENABLED  ACTIVE   53248000 CONCAT    -        RW
sd disk2-05     swap-01      disk2    205291520 53248000 0        c0t5006016047201339d0 ENA
pl swap-02      swap         ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd disk2-13     swap-02      disk2    327828560 1040    LOG       c0t5006016047201339d0 ENA

v  upgrade      -            ENABLED  ACTIVE   18874368 ROUND     -        fsgen
pl upgrade-01   upgrade      ENABLED  ACTIVE   18874368 CONCAT    -        RW
sd disk2-06     upgrade-01   disk2    258539520 18874368 0        c0t5006016047201339d0 ENA
pl upgrade-02   upgrade      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd disk2-14     upgrade-02   disk2    327829600 1040    LOG       c0t5006016047201339d0 ENA

upgrade was done on the current disk that is mounted i.e disk2 shown above.However upgrade was failed and we need to rollback
However vxdisk list showing mirror disk c0t5006016047201339d8s2 (disk2mirr) out of dg and not in detached state.

I can check the private region in miiror disk

/etc/vx/diag.d/vxprivutil dumpconfig /dev/rdsk/c0t5006016047201339d8s3 >/tmp/diskconfig.cfgrec

It has disk2mirr configutration as below

root@refadm1-oss1:/tmp# cat diskconfig.cfgrec | vxprint -D - -ht
Disk group: ossdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST 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         RVG          KSTATE   STATE    NVOLUME
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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

dg ossdg        all          all      12000    1348141860.25.refadm1-oss1

dm disk2mirr    -            -        -        -        -

v  JUMP         -            DISABLED ACTIVE   25165824 ROUND     -        fsgen
pl JUMP-03      JUMP         DISABLED ACTIVE   25165824 CONCAT    -        RW
sd disk2mirr-02 JUMP-03      disk2mirr 19456000 25165824 0        -        DIS

v  ericsson     -            DISABLED ACTIVE   114180096 ROUND    -        fsgen
pl ericsson-03  ericsson     DISABLED ACTIVE   114180096 CONCAT   -        RW
sd disk2mirr-03 ericsson-03  disk2mirr 44621824 114180096 0       -        DIS

v  export       -            DISABLED ACTIVE   46489600 ROUND     -        fsgen
pl export-03    export       DISABLED ACTIVE   46489600 CONCAT    -        RW
sd disk2mirr-04 export-03    disk2mirr 158801920 46489600 0       -        DIS

v  swap         -            DISABLED ACTIVE   53248000 ROUND     -        gen
pl swap-03      swap         DISABLED ACTIVE   53248000 CONCAT    -        RW
sd disk2mirr-05 swap-03      disk2mirr 205291520 53248000 0       -        DIS

v  upgrade      -            DISABLED ACTIVE   18874368 ROUND     -        fsgen
pl upgrade-03   upgrade      DISABLED ACTIVE   18874368 CONCAT    -        RW
sd disk2mirr-06 upgrade-03   disk2mirr 258539520 18874368 0       -        DIS

v  versant      -            DISABLED ACTIVE   50278400 ROUND     -        fsgen
pl versant-03   versant      DISABLED ACTIVE   50278400 CONCAT    -        RW
sd disk2mirr-07 versant-03   disk2mirr 277413888 50278400 0       -        DIS

v  3pp          -            DISABLED ACTIVE   19456000 ROUND     -        fsgen
pl 3pp-03       3pp          DISABLED ACTIVE   19456000 CONCAT    -        RW
sd disk2mirr-01 3pp-03       disk2mirr 0       19456000 0         -        DIS
You have new mail in /var/mail//root

Now If I want these mirror volumes back, how can I get it ?

I am thinking of doing below steps

1. creating anew diskgroup ossdg_m1  with mirror disk c0t5006016047201339d8 and stating the volume and mounting as a temp mount point to check data.

2. If the data is correct then we can use that

Is this fine ?

 

Operating Systems:

Comments 1 CommentJump to latest comment

Marianne's picture

Please help us understand the following?

... upgrade was done on the current disk that is mounted i.e disk2 shown above.However upgrade was failed and we need to rollback...

What exactly was upgraded? 
Which SF version? 
Solaris version?

Please provide output of :

vxdisk -o alldgs list 
vxdisk list c0t5006016047201339d8
Contents of /tmp/diskconfig.cfgrec

 

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links