Sun的215和245除了支持传统上的软RAID之外,新增了硬RAID功能。不过话说回来,这种价位上的服务器,不支持硬RAID的似乎也太抠 门了。
本文以崭新的机器作为例子,如果不是新机器――建议不要乱来。
一、先期准备:
新的机器一般都没有系统,直接开机即可进入OK模式(OK提示符)
setenv fcode-debug? true
setenv auto-boot? false
reset-all
机器重启以便生效,否则之后将会出现This must be fixed immediately using set-sas-wwid 的提示。
二、初始化磁盘
我的机器disk配置如下:
{0} ok show-disks
a) /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk
b) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom
c) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/disk
q) NO SELECTION
Enter Selection, q to quit:
{o}ok select /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1 //选择磁盘通道
三、创建RAID卷
{1} ok show-volumes
No volumes to show
目前还没有RAID卷存在
{1} ok probe-scsi-all //查看ID
/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1
MPT Version 1.05, Firmware Version 1.08.04.00
Target 0
Unit 0 Disk FUJITSU MAY2073RCSUN72G 0501 143374738 Blocks, 73 GB
SASAddress 500000e01496c622 PhyNum 0
Target 1
Unit 0 Disk FUJITSU MAY2073RCSUN72G 0501 143374738 Blocks, 73 GB
SASAddress 500000e01496fa32 PhyNum 1
Target 2
Unit 0 Disk SEAGATE ST914602SSUN146G0603 286739329 Blocks, 146 GB
SASAddress 5000c5000cac86fd PhyNum 2
Target 3
Unit 0 Disk SEAGATE ST914602SSUN146G0603 286739329 Blocks, 146 GB
SASAddress 5000c5000cac00c5 PhyNum 3
注:如果出现ERROR: /pci@1e,600000: Last Trap: Fast Data Access MMU Miss报错,您可能需要执行
{1}ok reset-all
{1} ok 0 1 create-im-volume //注意:"反向"命令
Target 0 size is 143243264 Blocks, 73 GB
Target 1 size is 143243264 Blocks, 73 GB
The volume can be any size from 1 MB to 69943 MB
What size do you want? [69943]
Volume size will be 143243264 Blocks, 73 GB
PhysDisk 0 has been created for target 0
PhysDisk 1 has been created for target 1
Volume has been created
{1} ok 2 3 create-im-volume
Target 2 size is 286607360 Blocks, 146 GB
Target 3 size is 286607360 Blocks, 146 GB
The volume can be any size from 1 MB to 139945 MB
What size do you want? [139945]
Volume size will be 286607360 Blocks, 146 GB
PhysDisk 2 has been created for target 2
PhysDisk 3 has been created for target 3
Volume has been created
创建了2个Raid1卷,Raid 0 卷则用create-is-volume命令
{1} ok show-volumes
Volume 0 Target 0 Type IM (Integrated Mirroring)
Degraded Enabled Resync In Progress
2 Members 143243264 Blocks, 73 GB
Disk 0
Primary Online
Target 4 FUJITSU MAY2073RCSUN72G 0501
Disk 1
Secondary Online Out Of Sync
Target 1 FUJITSU MAY2073RCSUN72G 0501
Volume 1 Target 2 Type IM (Integrated Mirroring)
Degraded Enabled
2 Members 286607360 Blocks, 146 GB
Disk 2
Primary Online
Target 5 SEAGATE ST914602SSUN146G0603
Disk 3
Secondary Online Out Of Sync
Target 3 SEAGATE ST914602SSUN146G0603
搞定!
四、删除磁盘
{1}ok 0 delete-volume
The volume and its data will be deleted
Are you sure (yes/no)? [no] yes
Volume 0 has been deleted
将磁盘0删除
五、重启
setenv fcode-debug?false
setenv auto-boot? true
reset-all
安装操作系统和应用程序。部署完毕!

没有评论:
发表评论