互联网服务pvid

奇异的根盘镜像

H85+7133-D40 小机  以前主机上的硬盘是做了镜像的,后来拆掉了,
觉得这样跑着机子比较有风险,现在就填了一块上去;但在镜像的过程中
发现了如下的问题,详见如下日志:
smdx_ys/#>oslevel
4.3.3.0
smdx_ys/#>lsvg -o | lsvg -il | grep stale
hd7 raw 15 30 3 closed/stale N/A
lv01 jfs 107 214 3 closed/stale /oracle
lv_cash jfs 96 192 2 closed/stale /zxt10

smdx_ys/#>lslv hd7
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
LOGICAL VOLUME: hd7 VOLUME GROUP: rootvg
LV IDENTIFIER: 000b71df12914551.9 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/stale
TYPE: raw WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 32 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 15 PPs: 30
STALE PPs: 5 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: inner edge UPPER BOUND: 32
MOUNT POINT: N/A LABEL: None
MIRROR WRITE CONSISTENCY: on 
EACH LP COPY ON A SEPARATE PV ?: yes 
lslv lv01
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
LOGICAL VOLUME: lv01 VOLUME GROUP: rootvg
LV IDENTIFIER: 000b71df12914551.12 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/stale
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 32 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 107 PPs: 214
STALE PPs: 30 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /oracle LABEL: /oracle
MIRROR WRITE CONSISTENCY: on 
EACH LP COPY ON A SEPARATE PV ?: yes 
smdx_ys/#>lslv lv_cash
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
LOGICAL VOLUME: lv_cash VOLUME GROUP: rootvg
LV IDENTIFIER: 000b71df12914551.13 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/stale
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 32 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 96 PPs: 192
STALE PPs: 96 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /zxt10 LABEL: /zxt10
MIRROR WRITE CONSISTENCY: on 
EACH LP COPY ON A SEPARATE PV ?: yes 
smdx_ys/#>lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 64 64 1 open/syncd N/A
hd8 jfslog 1 1 1 open/syncd N/A
hd4 jfs 4 4 1 open/syncd /
hd2 jfs 59 59 1 open/syncd /usr
hd9var jfs 2 2 1 open/syncd /var
hd3 jfs 3 3 1 open/syncd /tmp
hd1 jfs 1 1 1 open/syncd /home
hd7 raw 15 30 3 closed/stale N/A
paging00 paging 64 64 1 open/syncd N/A
lv01 jfs 107 214 3 closed/stale /oracle
lv_cash jfs 96 192 2 closed/stale /zxt10
lv_backup1 jfs 256 256 1 open/syncd /dbbackup
lslv -l hd7
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
hd7:N/A
PV COPIES IN BAND DISTRIBUTION 
hdisk0 010:000:000 0% 000:000:000:000:010 
hdisk1 015:000:000 0% 000:000:000:000:015 
000b71dfe0738eec 005:000:000 0% 000:000:000:000:005 
smdx_ys/#>lslv -l lv01
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
lv01:/oracle
PV COPIES IN BAND DISTRIBUTION 
hdisk0 077:000:000 19% 062:015:000:000:000 
hdisk1 107:000:000 100% 000:107:000:000:000 
000b71dfe0738eec 030:000:000 100% 000:030:000:000:000 
smdx_ys/#>lslv -l lv_cash
0516-304 lslv: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
lv_cash:/zxt10
PVID COPIES IN BAND DISTRIBUTION 
000b71dfe0738eec 096:000:000 0% 096:000:000:000:000 
hdisk1 096:000:000 0% 096:000:000:000:000 
smdx_ys/#>lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 0 00..00..00..00..00
0516-304 lsvg: Unable to find device id 000b71dfe0738eec in the Device
Configuration Database.
000b71dfe0738eec missing 542 411 13..78..108..108..104
hdisk1 active 542 324 13..01..108..108..94
smdx_ys/#>reducevg rootvg hdisk1
0516-016 ldeletepv: Cannot delete physical volume with allocated
partitions. Use either migratepv to move the partitions or
reducevg with the -d option to delete the partitions.
0516-884 reducevg: Unable to remove physical volume hdisk1.
smdx_ys/#>reducevg -d rootvg hdisk1
0516-914 rmlv: Warning, all data belonging to logical volume
lv01 on physical volume hdisk1 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-912 rmlv: Unable to remove logical volume lv01.
0516-884 reducevg: Unable to remove physical volume hdisk1.
smdx_ys/#>unmirrorvg rootvg hdisk1
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-922 rmlvcopy: Unable to remove logical partition copies from
logical volume lv01.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
The volume group is still partially or fully mirrored.
smdx_ys/#>unmirrorvg -c 1 rootvg 000b71dfe0738eec
0516-320 getlvodm: Physical volume 000b71dfe0738eec is not assigned to
a volume group.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
The volume group is still partially or fully mirrored.
smdx_ys/#>rmlvcopy 000b71df12914551.12 1 000b71dfe0738eec
0516-076 lreducelv: Cannot remove last good copy of stale partition.
Resynchronize the partitions with syncvg and try again.
0516-922 rmlvcopy: Unable to remove logical partition copies from
logical volume 000b71df12914551.12.
smdx_ys/#>rmlvcopy 000b71df12914551.12 1 hdisk1
0516-1155 lreducelv: Last good copy of a partition cannot reside on a missing disk.
Try again after reactivating the disk using chpv and varyonvg.
0516-922 rmlvcopy: Unable to remove logical partition copies from
logical volume 000b71df12914551.12.
syncvg -p hdisk0 hdisk1
0516-068 lresyncpv: Unable to completely resynchronize volume. Run
diagnostics if neccessary.
0516-936 /etc/syncvg: Unable to synchronize physical volume hdisk1.
smdx_ys/#>rmlvcopy 000b71df12914551.12 2 000b71dfe0738eec
0516-921 rmlvcopy: All logical partitions have less than or
equal to 2 number of copies.

1)现在我的做法是想删除以前的那个missing的hdisk1,然后把现在的hdisk1从rootvg中移除,在把该设备删除在重新识别,而后同步ODM库,我接着做根盘镜像;
2)先把现在的missing的那个盘从ODM库中移除,然后把现在的hdisk1从rootvg中移除,再删除该设备,从新识别该设备后,我接着做根盘镜像;
参与14

提问者

grayshadow
技术经理中金

相关问题

问题状态

  • 发布时间:2010-05-31
  • 关注会员:0 人
  • 问题浏览:16907
  • 最近回答:2010-10-22
  • X社区推广