We had a mirrored disk failed (not the rootvg), there are 3 lvs (transfer, applogs, arch) from extvg gone open/stale state.
After replaced failed disk and run cfgmgr, the new replaced disk is visible:
Quote:
#lspv
hdisk55 000013da1320ba31 extvg
hdisk3 none None (this is new replaced disk
)
I did the following to re-mirror new disk:
# extendvg prodvg hdisk3
# lspv (got new pvid on hdisk3)
# lslv -m transfer (no mirror as yet)
Quote:
transfer:/data/transfer
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0307 hdisk32
0002 0308 hdisk32
0003 0309 hdisk32
0004 0310 hdisk32
0005 0301 hdisk32
0006 0302 hdisk32
0007 0303 hdisk32
0008 0304 hdisk32
0009 0305 hdisk32
0010 0306 hdisk32
# mirrorvg prodvg hdisk3
# lsvg -l prodtvg (all LVs in extvg are shown open/syncd)
Quote:
# lsvg -l extvg
extvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
apps jfs 386 772 2 open/syncd /apps
loglv00 jfslog 1 2 2 open/syncd N/A
data jfs 4 8 2 open/syncd /data
transfer jfs 10 20 2 open/syncd /data/transfer
ftpch jfs 4 8 2 open/syncd /data/ftpch
input-prod jfs 160 320 2 open/syncd /data/ftpch/input-prod
ftp-prod jfs 4 8 2 open/syncd /data/ftpch/ftp-prod
applogs jfs 24 48 2 open/syncd /applogs
sec jfs 16 32 2 open/syncd /sec
redo-01 jfs 144 288 2 open/syncd /db/redo-01
arch jfs 294 588 2 open/syncd /db/arch
load_1 jfs 88 176 2 open/syncd /load_1
input-test jfs 160 320 2 open/syncd /data/ftpch/input-test
dbbkup jfs 500 1000 2 open/syncd /db/bkup_dest
test jfs 100 200 2 open/stale /test
# lslv -m transfer
Quote:
transfer:/data/transfer
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0307 hdisk32 0224 hdisk3
0002 0308 hdisk32 0225 hdisk3
0003 0309 hdisk32 0226 hdisk3
0004 0310 hdisk32 0227 hdisk3
0005 0301 hdisk32 0228 hdisk3
0006 0302 hdisk32 0229 hdisk3
0007 0303 hdisk32 0230 hdisk3
0008 0304 hdisk32 0231 hdisk3
0009 0305 hdisk32 0232 hdisk3
0010 0306 hdisk32 0233 hdisk3
But when I look at the partition table of hdisk32 and hdisk3, they are not the same:
Quote:
# lspv -p hdisk32
hdisk32:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-16 used outer edge sec jfs /sec
17-80 used outer edge load_1 jfs /load_1
81-219 used outer edge input-prod jfs /data/ftpch/input-prod
220-240 used outer middle input-prod jfs /data/ftpch/input-prod
241-264 used outer middle load_1 jfs /load_1
265-272 free outer middle
273-276 used outer middle data jfs /data
277-300 free outer middle
301-310 used outer middle transfer jfs /data/transfer
311-314 used outer middle ftpch jfs /data/ftpch
315-318 used outer middle ftp-prod jfs /data/ftpch/ftp-prod
319-330 free outer middle
331-354 used outer middle applogs jfs /applogs
355-438 used outer middle input-test jfs /data/ftpch/input-test
439-514 used center input-test jfs /data/ftpch/input-test
515-656 free center
657-799 free inner middle
800-874 used inner middle arch jfs /db/arch
875-1093 used inner edge arch jfs /db/arch
Quote:
# lspv -p hdisk3
hdisk3:
PP RANGE STATE REGION LV ID TYPE MOUNT POINT
1-31 free outer edge
32-131 used outer edge test jfs /test
132-219 used outer edge load_1 jfs /load_1
220-223 used outer middle data jfs /data
224-233 used outer middle transfer jfs /data/transfer
234-237 used outer middle ftpch jfs /data/ftpch
238-397 used outer middle input-prod jfs /data/ftpch/input-prod
398-401 used outer middle ftp-prod jfs /data/ftpch/ftp-prod
402-425 used outer middle applogs jfs /applogs
426-438 used outer middle sec jfs /sec
439-441 used center sec jfs /sec
442-656 used center arch jfs /db/arch
657-735 used inner middle arch jfs /db/arch
736-874 used inner middle input-test jfs /data/ftpch/input-test
875-895 used inner edge input-test jfs /data/ftpch/input-test
896-1093 free inner edge
How can I fix this without offlining extvg?