准备工作:
7133阵列、IBM小机P150一台
系统硬盘两块 1块9GB,1块18GB,两块硬盘合为rootvg
7133中73G硬盘六块,4G硬盘一块
思路:用四块73G硬盘做一个raid5,一块73G硬盘做一个hot spare盘
操作步骤:
1,smitty ssaraid;
2,Change/Show Use of an SSA Physical Disk;
选择pdisk1、pdisk2、pdisk6、pdisk4,设为array candidate disk
选择pdisk3,设为hot spare disk;
3,Add a Hot Spare Pool
选择LOOP_A,在Components to Add里面将pdisk3添加进去;
4,Add an SSA RAID Array
选择ssa0 Available 10-b0 IBM SSA 160 SerialRAID Adapter
选择raid_5
在Member Disks中,将事先设定的三块73G硬盘pdisk1/pdisk2/pdisk4/pdisk6添加进去
将选项Enable Use of Hot Spares定为yes
创建的时候会有警告信息,这里不必理会;
5,待raid5创建完毕之后,在Change/Show/Delete a Hot Spare Pool里面选择pool_A1,进去之后,在Components to Add里面将pdisk3添加进去;
6,以上步骤完成之后,List Components in a Hot Spare Pool进行查看,这里会看到之前做raid5的四块硬盘以及hot spare盘pdisk3;
7,List Status of Hot Spare Protection for an SSA RAID Array查看受hot spare盘保护的几块硬盘对应关系是否正确;
8,lspv,看到除去系统盘hdisk0、hdisk1之外,多了一个hdisk2;
9,ssaxlate -l hdisk2,可以看到hdisk2与pdisk盘的对应关系,这里可以看到hdisk2下显示出pdisk1,pdisk2,pdisk4,pdisk6四块物理硬盘;
10,chdev -a pv=yes -l hdisk2使hdisk2可用;
11,创建卷组vgtest,与hdisk2相关联;
12,在vgtest上创建30G文件系统test,并挂载到/test目录下;
13,Change/Show Attributes of an SSA RAID Array,可以看到此时处于rebuilding进程:
SSA RAID Manager ssa0
SSA RAID Array hdisk2
Connection Address / Array Name 134747CB9EDF4CK
RAID Array Type raid_5
State rebuilding
Size of Array 218.7GB
Member Disks pdisk1 pdisk2 pdisk6 pdisk4
Percentage Rebuilt 21
Enable Use of Hot Spares yes
Choose Hot Spare only from Preferred Pool no
Allow Page Splits yes
Current Use System Disk
14,rebuilding过程持续2个半小时才结束,结束后显示为:
SSA RAID Manager ssa0
SSA RAID Array hdisk2
Connection Address / Array Name 134747CB9EDF4CK
RAID Array Type raid_5
State good
Size of Array 218.7GB
Member Disks pdisk1 pdisk2 pdisk6 pdisk4
Percentage Rebuilt Not Rebuilding
Enable Use of Hot Spares yes
Choose Hot Spare only from Preferred Pool no
Allow Page Splits yes
Current Use System Disk
15,List ALL Defined SSA RAID Arrays进行检查:
hdisk2 134747CB9EDF4CK system good 218.7GB raid_5
16,List Status of Hot Spare Protection for an SSA RAID Array进行检查:
ssa0
Component Location Size Pool Protected Status
hdisk2 raid_5
pdisk1 10-b0-A01B-03-P 72.9GB pool_A1 yes good
pdisk2 10-b0-A01B-07-P 72.9GB pool_A1 yes good
pdisk6 10-b0-A01B-04-P 72.9GB pool_A1 yes good
pdisk4 10-b0-A01B-02-P 72.9GB pool_A1 yes good
阅读(3860) | 评论(0) | 转发(0) |