When you have mirrors for your data, it might be a little difficult to find out which disk has the stale partition. The following few commands can help you find out quickly where the stale partition is located physically.
1 ) List of volumes groups
root@myhost:/root# lsvg
rootvg
datavg
2 ) Which volume group has a stale partition ?
root@myhost:/root# lsvg -l rootvg | grep stale
hd2 jfs 108 216 2 open/stale /usr
root@myhost:/root# lsvg -l datavg | grep stale
3 ) Which physical volumes are defined in that VG ?
root@myhost:/root# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 81 00..00..00..00..81
hdisk1 active 542 97 08..02..00..00..87
4 ) Which volume group has the stale partition ?
root@myhost:/root# lspv -p hdisk1 | grep stale
300-300 stale center hd2 jfs /usr
root@myhost:/root# lspv -p hdisk0 | grep stale
Other commandes you might find usefull :
root@myhost:/root# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 32 64 2 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 1 2 2 open/syncd /
<b>hd2 jfs 108 216 2 open/stale /usr</b>
hd9var jfs 128 256 2 open/syncd /var
hd3 jfs 8 16 2 open/syncd /tmp
hd1 jfs 10 20 2 open/syncd /home
hd7 dump 16 16 1 open/syncd N/A
To see a mapping of this logical volume on disk :
root@myhost:/root# lslv -m hd2
hd2:/usr
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0220 hdisk0 0220 hdisk1
0002 0221 hdisk0 0221 hdisk1
0003 0222 hdisk0 0222 hdisk1
0004 0223 hdisk0 0223 hdisk1
0005 0224 hdisk0 0224 hdisk1
0006 0225 hdisk0 0225 hdisk1
0007 0226 hdisk0 0226 hdisk1
0008 0227 hdisk0 0227 hdisk1
0009 0228 hdisk0 0228 hdisk1
...
To see which part of the mirror has the stale partition :
root@myhost:/root# lslv -p hdisk0
hdisk0:::
USED USED USED USED USED USED USED USED USED USED 1-10
USED USED USED USED USED USED USED USED USED USED 11-20
USED USED USED USED USED USED USED USED USED USED 21-30
USED USED USED USED USED USED USED USED USED USED 31-40
USED USED USED USED USED USED USED USED USED USED 41-50
USED USED USED USED USED USED USED USED USED USED 51-60
USED USED USED USED USED USED USED USED USED USED 61-70
...
root@myhost:/root# lslv -p hdisk1
hdisk1:::
USED FREE FREE FREE FREE FREE FREE FREE FREE USED 1-10
USED USED USED USED USED USED USED USED USED USED 11-20
...
USED USED USED USED USED USED USED USED USED USED 278-287
USED USED USED USED USED USED USED USED USED USED 288-297
USED USED <b>STALE</b> USED USED USED USED USED USED USED 298-307
USED USED USED USED USED USED USED USED USED USED 308-317
...
So the stale partition is on hdisk1.
Another command to be user is :
lspv -p hdisk1
hdisk1:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-1 used outer edge hd5 boot N/A
2-9 free outer edge
10-15 used outer edge lvlogsihs4 jfs /var/logs/ihs4
16-45 used outer edge lvarchive jfs /var/archive
46-52 used outer edge lvdomidata2 jfs /usr/domino/data2
53-106 used outer edge paging00 paging N/A
107-109 used outer edge lvdomilogs jfs /var/logs/domino
110-141 used outer middle hd6 paging N/A
142-145 used outer middle lvwaslogs jfs /var/logs/was
146-147 used outer middle lvhttplogs jfs /var/logs/ihs
148-187 used outer middle lvdomidata jfs /usr/domino/data1
188-197 used outer middle lvdomibin jfs /usr/domino/bin
198-199 free outer middle
200-209 used outer middle hd1 jfs /home
210-217 used outer middle hd3 jfs /tmp
218-218 used center hd8 jfslog N/A
219-219 used center hd4 jfs /
220-299 used center hd2 jfs /usr
<b>300-300 stale center hd2 jfs /usr</b>
301-325 used center hd2 jfs /usr
326-327 used inner middle hd2 jfs /usr
328-433 used inner middle hd9var jfs /var
434-455 used inner edge hd9var jfs /var
456-542 free inner edge