免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2621 | 回复: 0
打印 上一主题 下一主题

[系统管理] 论AIX的rootvg管理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-14 16:57 |只看该作者 |倒序浏览
1.rootvg镜像:
1). 添加新硬盘到rootvg
#extendvg rootvg hdisk1
2). 镜像rootvg
#mirrorvg -c 2 rootvg hdisk1
3). 重新生成 boot image
#bosboot -ad /dev/hdisk0
4). 更新bootlist
#bootlist -m normal hdisk0 hdisk1 cd0
5). 重起系统
#shutdown -Fr
2、保证卷组自动下线。
3、有必要。。。
1.损坏的磁盘为rootvg磁盘
  1.1 没有做raid和mirror
        如发生上述情况,唯一的办法就是磁带恢复
  1.2 有做mirror(假设hdisk0和hdisk1做了mirror,现在要更换hdisk0),以下是我所写的更换步骤:
         unmirrorvg rootvg hdisk0;
         reducevg rootvg hdisk0;
         bosboot –ad hdisk1;
         bootlist –m normal hdisk1 cd0;
         rmdev –l disk0 –d;
         cfgmgr;
         更换新的磁盘;
         cfgmgr;
         extendvg rootvg hdisk0;
         mirrorvg –c 2 rootvg ;
         bosboot –ad hdisk0;
         bosboot –ad hdisk1;
         bootlist –m normal hdisk0,hdisk1 cd0
  1.3 有做raid的情况(假设hdisk0和hdisk1做了raid1,现在要更换hdisk0)
         假如根盘做了raid1,那么是不是只要拔下损坏的hdisk0,然后更换新的磁盘就可以?还是需要删除原来的raid信息,然后删除原有的hdisk0的信息再更换新的磁盘,重新做RAID?请前辈们指教。
2.损坏的磁盘为非rootvg磁盘
  2.1 没有做raid和mirror
         若发生上除情况,是否只能更换磁盘后,重建卷组信息或从磁带恢复?
  2.2 有做mirror(假设hdisk2和hdisk3做了mirror属于backvg,现在要更换hdisk2),一下是我所写的步骤,请前辈指教:
         unmirrorvg backvg hdisk2;
         reducevg backvg hdisk2;
         rmdev –l disk2 –d;
         cfgmgr;
         更换新的磁盘;
         cfgmgr;
         extendvg backvg hdisk2;
         mirrorvg –c 2 backtvg ;
  2.3 有做raid(假设hdisk2和hdisk3做了raid1,现在要更换hdisk2)
         若遇到此情况是不是也和上述1.3所述的情况一样?
Disk Replacement (Local rootvg hot-swapped SCSI disk)
When a failed local disk is detected, the SA should open a hardware call with IBM support (with the pSeries S/N  prtconf ), and run diagnostics to determine the disk is real failed.
a)        Check the error log for relevant errors.
errpt |more
errpt –aN hdiskname | more
b)        Check and record disk attribute (S/N and location )
lscfg –vl hdiskname  
c)        Check VG membership for disk
lspv –L hdiskname
d)        Check VG
lsvg –L rootvg
lsvg –p rootvg
e)        Check LV on the disk
lspv –l hdiskname
lsvg –l rootvg
f)        Remove any unmirrored LV on the disk
rmlv lvname
g)        Unmirror rootvg from disk
Unmirrorvg rootvg hdiskname
h)        Remove disk from VG
reducevg rootvg hdiskname
i)        Use # diag to physically identify the disk in the server (LED blink )
diag->task selection ->hot plug task -> SCSI and SISC RAID hot plug manage -> identify a device attached to a SCSI hot swap enclosure device
j)        Remove device definitions for disk
rmdev –d –l hdiskname
lspv | more  (check)
k)        Physical replace the disk, same or larger size than the failed disk, check S/N
l)        add new disk in rootvg
cfgmgr –v                      Create the newdisk device definition
lspv                           Check
extendvg rootvg newdisk          Add the disk to rootvg
lspv                           Check
mirrorvg rootvg newdisk          Mirror VG
syncvg –v rootvg                Sync VG
bosboot –a –d /dev/ newdisk
Chvg –a’y’ –Q’n’ –x’n’ rootvg
bootlist –m normal -o
m)        recreate the removed LV
n)        check final configuration
boot_check -y     verify your work done

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/109841/showart_2149212.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP