aix更换硬盘出错

一台9111-520服务器,硬盘出现故障,后来更换硬盘,还盘之前的操作如下:# unmirrorvg rootvg hdisk10516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c '        as root user to clear the boot record and avoid a ...显示全部
一台9111-520服务器,硬盘出现故障,后来更换硬盘,还盘之前的操作如下:
# unmirrorvg rootvg hdisk1
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c '
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which this
        logical volume is moved/removed.
0516-1804 chvg: The quorum change takes effect immediately.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
        bosboot of system to reinitialize boot records.  Then, user must modify
        bootlist to just include:  hdisk0.
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         112         29..25..00..00..58
hdisk1            missing           546         546         110..109..109..109..109
# chpv -c hdisk1
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         112         29..25..00..00..58
hdisk1            missing           546         546         110..109..109..109..109
# reducevg rootvg hdisk1  
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         112         29..25..00..00..58
# bosboot -ad /dev/hdisk0

bosboot: Boot image is 38357 512 byte blocks.
# bootlist -m normal hdisk0 cd0
# bootlist -m normal -o
hdisk0 blv=hd5
cd0

然后diag点亮磁盘,但是没有窒息感remove而是直接拔的,系统重启,重启后更换新硬盘的时候一直出现问题
# extendvg rootvg hdisk1
0516-1398 extendvg: The physical volume hdisk1, appears to belong to
another volume group. Use the force option to add this physical volume
to a volume group.
0516-792 extendvg: Unable to extend volume group.
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         112         29..25..00..00..58
# extendvg -f rootvg hdisk1
0516-1184 extendvg: IO failure on hdisk1.
0516-792 extendvg: Unable to extend volume group.
求帮忙!收起
参与42

查看其它 33 个回答quzhenlei的回答

quzhenleiquzhenlei系统工程师ntt

以前删除的盘的信息还在odm库里,虽然你已经从vg里删除了hdisk1的盘,但是odm库的信息还是存在的!就是说你少了一步(rmdev -dl hdisk1 -R)的操作,你加的新盘,cfgmgr -v的新盘肯定不是hdisk1,而是其他盘的(如hdisk2等等)lspv看一下pv的信息,留下hdisk0,其他盘删除(rmdev -dl hdisk* -R)拔掉。重新插入新盘,cfgmgr -v扫盘,用(redev -l  hdisk认出盘符  hdisk改成需要的盘符)给盘加盘的pvid(chdev -l hdisk1 -a pv=yes)把盘加到vg里 extendvg rootvg hdisk1 就行了!

系统集成 · 2016-03-01
浏览5072

回答者

quzhenlei
系统工程师ntt
擅长领域: Power服务器双活存储

quzhenlei 最近回答过的问题

回答状态

  • 发布时间:2016-03-01
  • 关注会员:3 人
  • 回答浏览:5072
  • X社区推广