Thursday 27 February 2020

Veritas Diskgroup Recovery when private region corrupted

bash-3.2# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    -            -            online
c1t2d0s2     auto:cdsdisk    -            -            error
c1t3d0s2     auto:none       -            -            online invalid
disk_0       auto:none       -            -            online invalid


cat 1581943561.20.solaris10node1.cfgrec|vxprint -D - -mvprsh
check configuration backup for disk.info and fix priv lenght
vxdisksetup -i c1t2d0 privlen=65536 privoffset=256

bash-3.2# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    -            -            online
c1t2d0s2     auto:cdsdisk    -            -            online
c1t3d0s2     auto:none       -            -            online invalid
disk_0       auto:none       -            -            online invalid
bash-3.2# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    -            (ramadg)     online
c1t2d0s2     auto:cdsdisk    -            -            online
c1t3d0s2     auto:none       -            -            online invalid
disk_0       auto:none       -            -            online invalid
bash-3.2# vxconfigrestore ramadg
Diskgroup ramadg configuration restoration started ......

VxVM vxconfigd WARNING V-5-1-546 Disk c1t2d0 in group ramadg: Disk device not found
VxVM vxconfigrestore ERROR V-5-2-3703 Diskgroup ramadg appears to be a deported disk group.



bash-3.2# vxdg import ramadg
VxVM vxconfigd WARNING V-5-1-546 Disk c1t2d0 in group ramadg: Disk device not found
VxVM vxdg WARNING V-5-1-560 Disk c1t2d0: Not found, last known location: c1t2d0s2



bash-3.2# vxdg list
NAME         STATE           ID
ramadg       enabled,cds          1581943561.20.solaris10node1
bash-3.2# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    c1t1d0       ramadg       online
c1t2d0s2     auto:cdsdisk    -            -            online
c1t3d0s2     auto:none       -            -            online invalid
disk_0       auto:none       -            -            online invalid
-            -         c1t2d0       ramadg       failed was:c1t2d0s2

#vxdg destroy ramadg
bash-3.2# vxconfigrestore -l /var/tmp/ramadg ramadg
Diskgroup ramadg configuration restoration started ......

Installing volume manager disk header for c1t2d0s2 ...
Installing volume manager disk header for c1t1d0s2 ...
-
ramadg's diskgroup configuration is restored (in precommit state).
Diskgroup can be accessed in read only and can be examined using
vxprint in this state.

Run:
  vxconfigrestore -l /var/tmp/ramadg -c ramadg ==> to commit the restoration.
  vxconfigrestore -l /var/tmp/ramadg -d ramadg ==> to abort the restoration.
bash-3.2# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    c1t1d0       ramadg       online
c1t2d0s2     auto:cdsdisk    c1t2d0       ramadg       online
c1t3d0s2     auto:none       -            -            online invalid
disk_0       auto:none       -            -            online invalid
bash-3.2# vxprint -hvt
Disk group: ramadg

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  convol       -            ENABLED  ACTIVE   204800   SELECT    -        fsgen
pl convol-01    convol       ENABLED  ACTIVE   204800   CONCAT    -        RW
sd c1t1d0-01    convol-01    c1t1d0   0        204800   0         c1t1d0   ENA

vxconfigrestore -l /var/tmp/ramadg -c ramadg





4 comments:

  1. This Article is Worth of sharing. The information is helpful for sure! Keep going like this!
    Germany VPS Hosting

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Very nice and impressive article written about administration. you mention in your article Veritas Diskgroup Recovery when private region corrupted. If you want to know about VPS. You must know about USA VPS Hosting which provides very extensive backup, server, and network protection with unlimited bandwidth network connections

    ReplyDelete
  4. Impressive blog, you explain very well in this article. I was searching for this kind of information. Now days it is very important to take right information from internet. If you want to know about Server hosting, I can help you USA VPS hostingThanks for sharing your ideas and view, this is appreciable.
    Eagerly waiting for your new blog and useful information. keep doing more..........

    ReplyDelete