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:所有黃色菜單可選;白色的菜單不可選,如果選了就會出幫助信息

 

 

 

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