solaris 磁盘阵列

boot -r devfsadm -v 的作用,但不起作用

 

在根目录下 touch  /reconfigure  重启

 

执行drvconfig;disks命令

 

#devfsadm
#format
label
一下

分一下盘
l
(存盘)

 

 

# newfs -Nv /dev/rdsk/c2t0d0s6
mkfs -F ufs -o N /dev/rdsk/c2t0d0s6 570805310 127 127 8192 1024 251 1 90 8192 t 0 -1 8 127
With 16129 sectors per cylinder, minimum cylinders per group is 16
This requires the fragment size to be changed from 1024 to 4096
Please re-run mkfs with corrected parameters
这个又如何解决呢?

newfs -v -f 8192(可选) /dev/rdsk/..

 

 

 

 

盘阵内一共有12块硬盘,根据客户要求,对其中7块硬盘做RAID50—0, 0—1, 0—2, 0—3, 2—0, 2—1, 2—2),对其中的两块盘做RAID12—3, 2—4),同时也对另外两块盘做RAID10—4, 0—5),最后的一块盘做为Globle Spare2—5)。
创建三个逻辑驱动(Logic Drive),并对这三个逻辑驱动进行分区,每个驱动都做为一个逻辑分区(Logic Partition),分别挂接到两台主机,名为:
bjgsun1:/bj1 bjgsun2:/ora1, bjgsun2:/ora2 

有关于两台Sun Blade 2000

1. hostname : bjgsun1 IP: a.b.c.d Netmask: 255.255.255.0
  domain: bjg
2.hostname: bjgsun2 IP: a.b.c.e Netmask: 255.255.255.0
  domain: bjg

在主机bjgsun1上连接盘阵设备,使用随机提供的串口线(一端为9针,另一针为9针转25针线缆),修改本地主机文件:
/etc/remote
# vi /etc/remote
hardwire:/
:dv=/dev/term/b:br#9600:e1=^C^S^Q^U^D:ie=%$
e=^D:
ss3310: :dv=/dev/term/b:br#38400: e1=^C^S^Q^U^D:ie=%$
e=^D:

# tip ss3310

使用Ctrl+L来刷新屏幕,可以看到欢迎画面:使用上下键选择第二项:
1. PC Graphic(ANSI Mode)
2. Terminal(VT100 Mode)
3. PC Graphic(ANSI +Color Mode)
4. Show Transfer Rate+Show Cache Status

然后进入主画面:

--------------------------------< Main Menu >--------------------------------------------
Quick installation
View and edit Logical&& drives
View and edit logical Volumes
View and edit Host luns
View and edit scsi Drives
View and edit Scsi channels
View and edit Configuration parameters
View and edit Peripheral devices
System Functions
View system Information
View and edit event logs

默认情况下,盘阵系统已经建立起Host Luns,如果要建立自己的配置,需要先删除Host Luns,再删除Logical drives

建立逻辑驱动:

1
选择
 view and edit Logical drives
2
建立第一个逻辑驱动—S0RAID级别为5,包括7块硬盘
(0—0, 0—1, 0—2, 0—3, 2—0, 2—1, 2—2)
3
配置后,选择:
logical drive Assignments
4
将本驱动分配给Secondary Control来进行管理

5
选择:
system Functions
6
Reset controller,这样使得改变生效

7
再一次选择
view and edit Logical drives
8
选择S0后,Paritition logical drive对逻辑驱动进行分区,整个逻辑驱动被化分成一个逻辑分区


9
选择
 view and edit Logical drives
10
建立第二个逻辑驱动—P1RAID级别为1,包括2块硬盘
(2—3, 2—4)
11
不选择logical drive Assignments,这个驱动默认由Primary来管理

12
再一次选择
view and edit Logical drives
13
选择P1后,Paritition logical drive对逻辑驱动进行分区,整个逻辑驱动被化分成一个逻辑分区

14
选择:
system Functions
15
Reset controller,这样使得改变生效

16
同样步骤建立第三个逻辑驱动—P2RAID级别为1,包括
(0—4, 0—5)
17
选择view and edit Host luns,做分区的映象

18
选择
CHL 1 ID 0 (Primary Cotroller)
19
选择第一个可用LUN,创建
LUN0
20
同样,选择第二个可用LUN,创建
LUN1
21
选择
 CHL 3 ID 1 (Secondary Controller)
22
选择第一个可肔UN,创建
LUN0
23
选择:
system Functions
24
Reset controller,这样使得改变生效


重要声明:

下载驱动的包及补丁:

SUNWqus, SUNWqusx, SUNWqusu, SUNWqusux
112697-02
及说明文档:
816-2157-14.pdf

当把驱动的包和补丁安装好以后,进入系统:

# vi /kernel/drv/sd.conf
# BEGIN RAID Manager additional lun entries
# DO NOT EDIT from BEGIN above to END below...
name="sd" class="scsi" target=0 lun=1;
name="sd" class="scsi" target=0 lun=2;
name="sd" class="scsi" target=0 lun=3;
name="sd" class="scsi" target=0 lun=4;
name="sd" class="scsi" target=0 lun=5;
name="sd" class="scsi" target=0 lun=6;
name="sd" class="scsi" target=0 lun=7;
name="sd" class="scsi" target=0 lun=8;
name="sd" class="scsi" target=0 lun=9;
name="sd" class="scsi" target=0 lun=10;
name="sd" class="scsi" target=0 lun=11;
name="sd" class="scsi" target=0 lun=12;
name="sd" class="scsi" target=0 lun=13;
name="sd" class="scsi" target=0 lun=14;
name="sd" class="scsi" target=0 lun=15;
name="sd" class="scsi" target=0 lun=16;
name="sd" class="scsi" target=0 lun=17;
name="sd" class="scsi" target=0 lun=18;
name="sd" class="scsi" target=0 lun=19;
name="sd" class="scsi" target=0 lun=20;
name="sd" class="scsi" target=0 lun=21;
name="sd" class="scsi" target=0 lun=22;
name="sd" class="scsi" target=0 lun=23;
name="sd" class="scsi" target=0 lun=24;
name="sd" class="scsi" target=0 lun=25;
name="sd" class="scsi" target=0 lun=26;
nme="sd" class="scsi" target=0 lun=27;
name="sd" class="scsi" target=0 lun=28;
name="sd" class="scsi" target=0 lun=29;
name="sd" class="scsi" target=0 lun=30;
name="sd" class="scsi" target=0 lun=31;
name="sd" class="scsi" target=1 lun=1;
…..
name=”sd” class=”scsi” target=4 lun=31;
偶在这里有点懒了,用不着写这么多,不过,全写上更安全一些
!

# devfsadm –v
# reboot

# format
这时将会出现新生成的磁盘信息(也就是盘阵生成的
LUN)
# newfs /dev/rdsk/cxtxdxsx
# mkdir /oradata
# mount /dev/rdsk/cxtxdxsx /oradata

哈哈,看到你想看的东东了吗?

反正偶看到了!

*****************************************************************************************

 

开机自检过程中出现ctrl+c提示,按ctrl+c进入LSI Logic Config Utility v6.10.02.00

1、在SAS1064E上回车进入如下菜单

l         RAID Properties :创建、管理阵列

l         SAS Topology :查看物理磁盘及RAID配置信息

l         Advanced Adapter Properties:查看高级属性及其Restore Defaults(此操作不删除raid

 

2、选择RAID Properties,出现3个选项(如果已经配置了RAID,会出现4个选项,请参阅“其他操作说明1”):

l         create IM Volume: 创建集成的RAID1,即2块盘镜像,以及1块热备盘

l         Create IME Volume:创建集成的RAID1E38块盘,包括1块热备盘

l         Create IS Volume:创建集成Striping,即28块盘的条带化

3、选择create IM Volume,出现如下create new array--SAS1064E的菜单:

   光标移动到第一块盘,RAID DISK下方[NO],(配置raid前为No),按空格/减号,弹出一个菜单:

l         M  保留数据,并迁移到新建的RAID1

l         D  删除数据,创建一个全新的RAID1

   选择M,之后返回上级菜单,RAID DISK状态变为Yes

 

4、接着光标移动到第二块盘,RAID DISK下方[NO],按空格/减号,使其RAID DISK状态变为Yes

5C,创建阵列

6、选Save changes then exit this menu。退出RAID1的配置,同步会自动在后台开始执行。

 

 

 

其他操作说明:

 

1、  配置过RAID之后,进入RAID Properties会多出一行选择:View Existing Array

l         View Existing Array:       查看已有阵列

l         Create IM Volume: 创建集成的RAID1,即2块盘镜像,以及1块热备盘

l         Create IME Volume     创建集成的RAID1E38块盘,包括1块热备盘

l         Create IS Volume 创建集成Striping,即28块盘的条带化

选择View Existing Array--Manage Array(这里可以看到同步进度)出现如下菜单:

l         Manage Hot Spare:配置热备盘

l         Synchronize Array Y:开始同步,N:放弃同步)

l         Activate Array :激活阵列   

l         Delete Array    :删除阵列

2、主菜单:Adpater Properties--SAS1064E描述

       RAID Properties :创建、管理阵列

       SAS Topology:查看物理磁盘及RAID配置信息

       Advanced Adapter Properties:查看高级属性及其Restore Defaults(此操作不删除raid

3tips:所有黄色菜单可选;白色的菜单不可选,如果选了就会出帮助信息

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章