Volume is enabled & active, but plex is disabled & recover.
** Try to replace two "failed was" disks, but disk list is error
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c12t0d0 simple - - online invalid
c12t0d1 simple - - error
c12t0d2 simple - - LVM
c12t0d3 simple - (rootdg) online
c12t0d4 simple - - error
c12t0d5 simple - (testdg) online
c12t0d6 simple - - LVM
c12t0d7 simple - - LVM
- - datadg02 datadg failed was:c12t0d1
- - sdpdg02 sdpdg failed was:c12t0d4
# vxdisk list c12t0d1
Device: c12t0d1
devicetag: c12t0d1
type: simple
flags: online error private autoconfig
errno: Bad file number
Multipathing information:
numpaths: 2
c12t0d1 state=disabled
c13t0d1 state=disabled
# vxdisk list c12t0d4
Device: c12t0d4
devicetag: c12t0d4
type: simple
flags: online error private autoconfig
errno: Bad file number
Multipathing information:
numpaths: 2
c12t0d4 state=disabled
c13t0d4 state=disabled
** Try to remove vxdisk then scan disks
# vxdisk rm c12t0d1
# vxdisk rm c12t0d4
# vxdctl enable
# vxdisk list
** The output of vxdisk list is changed to online
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c12t0d0 simple - - online invalid
c12t0d1 simple - - online
c12t0d2 simple - - LVM
c12t0d3 simple - (rootdg) online
c12t0d4 simple - - online
c12t0d5 simple - (testdg) online
c12t0d6 simple - - LVM
c12t0d7 simple - - LVM
- - datadg02 datadg failed was:c12t0d1
- - sdpdg02 sdpdg failed was:c12t0d4
** Try to reattach "failed was" disk - c12t0d1, it is okay
# vxreattach -c c12t0d1
# vxreattach c12t0d1
**Try to reattach "failed was" disk - c12t0d4, it is failed after execute "vxdiskadm" -> Option 3 Remove a disk for replacement first.
Then try to execute "vxdiskadm" -> Option 4 Replace a failed or removed disk, it is failed yet.
Check vxdisk list at this time, "removed" instead of "failed" >>>
- - sdpdg02 sdpdg failed was:c12t0d4
change to
- - sdpdg02 sdpdg removed was:c12t0d4
** Re-initialize disk and add it into disk group, it is okay
# vxdisk -f init c12t0d4
# vxdg -g sdpdg -k adddisk sdpdg02=c12t0d4
** Check vxprint -ht, sdpdg is enabled & active, datadg is not okay
# vxprint -g datadg -ht
DG NAME NCONFIG NLOG MINORS GROUP-ID
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
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
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
dg datadg default default 2161000 1210242237.1105.sdp2
dm datadg01 c8t0d1 simple 1024 157283584 -
dm datadg02 c12t0d1 simple 1024 157283584 -
rv data01rvg 1 ENABLED ACTIVE primary 47 data01srl
rl prlk_data01rvg data01rvg CONNECT ACTIVE drsdp data01dg srlk_data01rvg
v lvrootdbs data01rvg ENABLED NEEDSYNC 5120000 SELECT - gen
pl lvrootdbs-01 lvrootdbs ENABLED ACTIVE 5120000 CONCAT - RW
sd datadg01-01 lvrootdbs-01 datadg01 32 5120000 0 c8t0d1 ENA
pl lvrootdbs-02 lvrootdbs ENABLED ACTIVE LOGONLY CONCAT - RW
sd datadg01-02 lvrootdbs-02 datadg01 0 32 LOG c8t0d1 ENA
pl lvrootdbs-03 lvrootdbs DISABLED ACTIVE 5120000 CONCAT - RW
sd datadg02-11 lvrootdbs-03 datadg02 20971520 5120000 0 c12t0d1 ENA
pl lvrootdbs-04 lvrootdbs DISABLED ACTIVE LOGONLY CONCAT - RW
sd datadg02-48 lvrootdbs-04 datadg02 99491840 32 LOG c12t0d1 ENA
v lvtempdbs1 data01rvg ENABLED ACTIVE 1048576 SELECT - gen
pl lvtempdbs1-01 lvtempdbs1 ENABLED ACTIVE 1048576 CONCAT - RW
sd datadg01-03 lvtempdbs1-01 datadg01 5120052 1048576 0 c8t0d1 ENA
pl lvtempdbs1-02 lvtempdbs1 ENABLED ACTIVE LOGONLY CONCAT - RW
sd datadg01-04 lvtempdbs1-02 datadg01 5120032 20 LOG c8t0d1 ENA
pl lvtempdbs1-03 lvtempdbs1 DISABLED RECOVER 1048576 CONCAT - RW
sd datadg02-15 lvtempdbs1-03 datadg02 32382976 1048576 0 c12t0d1 ENA
pl lvtempdbs1-04 lvtempdbs1 DISABLED RECOVER LOGONLY CONCAT - RW
sd datadg02-49 lvtempdbs1-04 datadg02 99491872 20 LOG c12t0d1 ENA
...
v data01srl data01rvg ENABLED ACTIVE 41943040 SELECT - SRL
pl data01srl-01 data01srl ENABLED ACTIVE 41943040 CONCAT - RW
sd datadg01-95 data01srl-01 datadg01 99493320 41943040 0 c8t0d1 ENA
pl data01srl-02 data01srl DISABLED RECOVER 41943040 CONCAT - RW
sd datadg02-95 data01srl-02 datadg02 99493320 41943040 0 c12t0d1 RLOC
** Try to recover volumes >>>
** Type 1
v lvtempdbs1 data01rvg ENABLED ACTIVE 1048576 SELECT - gen
pl lvtempdbs1-01 lvtempdbs1 ENABLED ACTIVE 1048576 CONCAT - RW
pl lvtempdbs1-02 lvtempdbs1 ENABLED ACTIVE LOGONLY CONCAT - RW
pl lvtempdbs1-03 lvtempdbs1 DISABLED RECOVER 1048576 CONCAT - RW
pl lvtempdbs1-04 lvtempdbs1 DISABLED RECOVER LOGONLY CONCAT - RW
...
v data01srl data01rvg ENABLED ACTIVE 41943040 SELECT - SRL
pl data01srl-01 data01srl ENABLED ACTIVE 41943040 CONCAT - RW
pl data01srl-02 data01srl DISABLED RECOVER 41943040 CONCAT - RW
** Execute command
# vxrecover -sb -g datadg
** Volume & plex are enabled & active
v lvtempdbs1 data01rvg ENABLED ACTIVE 1048576 SELECT - gen
pl lvtempdbs1-01 lvtempdbs1 ENABLED ACTIVE 1048576 CONCAT - RW
pl lvtempdbs1-02 lvtempdbs1 ENABLED ACTIVE LOGONLY CONCAT - RW
pl lvtempdbs1-03 lvtempdbs1 ENABLED ACTIVE 1048576 CONCAT - RW
pl lvtempdbs1-04 lvtempdbs1 ENABLED ACTIVE LOGONLY CONCAT - RW
...
v data01srl data01rvg ENABLED ACTIVE 41943040 SELECT - SRL
pl data01srl-01 data01srl ENABLED ACTIVE 41943040 CONCAT - RW
pl data01srl-02 data01srl ENABLED ACTIVE 41943040 CONCAT - RW
** Type 2
v lvrootdbs data01rvg ENABLED NEEDSYNC 5120000 SELECT - gen
pl lvrootdbs-01 lvrootdbs ENABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-02 lvrootdbs ENABLED ACTIVE LOGONLY CONCAT - RW
pl lvrootdbs-03 lvrootdbs DISABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-04 lvrootdbs DISABLED ACTIVE LOGONLY CONCAT - RW
** Execute command
# vxvol -g datadg -f resync lvrootdbs
** Volume is enabled & active, but plex is disabled yet
v lvrootdbs data01rvg ENABLED ACTIVE 5120000 SELECT - gen
pl lvrootdbs-01 lvrootdbs ENABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-02 lvrootdbs ENABLED ACTIVE LOGONLY CONCAT - RW
pl lvrootdbs-03 lvrootdbs DISABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-04 lvrootdbs DISABLED ACTIVE LOGONLY CONCAT - RW
** Execute command
# vxplex -g datadg det lvrootdbs-03
# vxplex- g datadg det lvrootdbs-04
# vxplex -g datadg att lvrootdbs lvrootdbs-03
# vxplex -g datadg att lvrootdbs lvrootdbs-04
** Plex is enabled & active
v lvrootdbs data01rvg ENABLED ACTIVE 5120000 SELECT - gen
pl lvrootdbs-01 lvrootdbs ENABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-02 lvrootdbs ENABLED ACTIVE LOGONLY CONCAT - RW
pl lvrootdbs-03 lvrootdbs ENABLED ACTIVE 5120000 CONCAT - RW
pl lvrootdbs-04 lvrootdbs ENABLED ACTIVE LOGONLY CONCAT - RW
** Finally, all volume & plex are enabled & active.
Applies To
HPUX 11.11 + VxVM 3.5