solaris安裝RAC的儲存配置

myownstars發表於2011-04-20

對3臺solaris機器iscsi,連線到Netapps儲存,首先檢查安裝包
# pkginfo SUNWiscsiu SUNWiscsir
system      SUNWiscsir Sun iSCSI Device Driver (root)
system      SUNWiscsiu Sun iSCSI Management Utilities (usr)

# iscsiadm add discovery-address *.*.*.*:3260—配置連線到儲存IP
# iscsiadm modify discovery --sendtargets enable
--對於其中一臺機器 上面的enable並不能將服務真正開啟, 需要額外執行# /lib/svc/method/iscsi-initiator
# devfsadm -i iscsi         

登入儲存頁面
LUNs->Initiator Groups->add 
  Type選擇iscsi 為每個連線的server一個新增initiator group
新增完成後
LUNS->Manage  為每個lun新增maping,需要map所有的server

進入一臺server,format對映的disk,如果檢視不到,則重啟iscsi服務
# iscsiadm modify discovery --sendtargets disable
# iscsiadm modify discovery --sendtargets enable
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0
         
       1. c4t28d0
         
       2. c4t268d0
         
       3. c4t269d0
         
       4. c4t270d0
         
       5. c4t271d0
         
       6. c4t272d0
         
       7. c4t273d0
         
Specify disk (enter its number): 1
selecting c4t28d0
[disk formatted]
format> fdisk
--執行fdisk對該LUN進行分割槽
然後 使用partition 命令
順序執行以下:
2(2片區)
Root (片區型別)
Wm (可否MOUNT)
(大小直接回車就好了)
Label (這個是給硬碟打標籤 不打用不了)
依次對7個LUN執行上述步驟,然後LUN分割槽完成

然後在三臺機器上,採用oracle使用者,執行
# mkdir /export/home/ln
# ln -s -f /dev/rdsk/c4t9d0s2 /export/home/ln/ocr1
# ln -s -f /dev/rdsk/c4t10d0s2 /export/home/ln/ocr2
# ln -s -f /dev/rdsk/c4t11d0s2 /export/home/ln/vote1
# ln -s -f /dev/rdsk/c4t12d0s2 /export/home/ln/vote2
# ln -s -f /dev/rdsk/c4t13d0s2 /export/home/ln/vote3
# ln -s -f /dev/rdsk/c4t14d0s2 /export/home/ln/+data
# ln -s -f /dev/rdsk/c4t15d0s2 /export/home/ln/+arch
接著配置好各種安裝RAC前的必備環境
進行安裝cluserware的預先檢查,一開始,總報錯
# ./runcluvfy.sh stage -pre crsinst -n sodb1,sorac2 –verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "sodb1"
  Destination Node                      Reachable?             
  ------------------------------------  ------------------------
  sodb1                                 yes                    
  sorac2                                yes                    
Result: Node reachability check passed from node "sodb1".


Checking user equivalence...

Check: User equivalence for user "oracle"
  Node Name                             Comment                
  ------------------------------------  ------------------------
  sorac2                                failed                 
  sodb1                                 failed                 
Result: User equivalence check failed for user "oracle".

ERROR:
User equivalence unavailable on all the nodes.
Verification cannot proceed.
這是由於缺少兩個目錄,建立link
執行
$ ls -altr /usr/bin/ssh
-r-xr-xr-x   1 root     bin       243580 Aug  7  2010 /usr/bin/ssh
$ ls -altr /usr/local/bin/ssh
/usr/local/bin/ssh: No such file or directory
$ ln -s -f /usr/bin/ssh /usr/local/bin/ssh
ln: cannot create /usr/local/bin/ssh: Permission denied
$ su
Password:

# ln -s -f /usr/bin/ssh /usr/local/bin/ssh
# ln -s -f /usr/bin/scp /usr/local/bin/scp

# ./runcluvfy.sh stage -pre crsinst -n sodb1,sorac2 -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "sodb1"
  Destination Node                      Reachable?             
  ------------------------------------  ------------------------
  sodb1                                 yes                    
  sorac2                                yes                    
Result: Node reachability check passed from node "sodb1".


Checking user equivalence...

Check: User equivalence for user "oracle"
  Node Name                             Comment                
  ------------------------------------  ------------------------
  sorac2                                passed                 
  sodb1                                 passed                 
Result: User equivalence check passed for user "oracle".

Pre-check for cluster services setup was unsuccessful on all the nodes.
接下來就是慣例的安裝程式了

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15480802/viewspace-692975/,如需轉載,請註明出處,否則將追究法律責任。

相關文章