ITPub博客

首页 > Linux操作系统 > Linux操作系统 > solaris安装RAC的存储配置

solaris安装RAC的存储配置

原创 Linux操作系统 作者:myownstars 时间:2011-04-20 16:46:02 0 删除 编辑

对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
          /pci@0,0/pci1002,5a18@4/pci10b5,8624@0/pci10b5,8624@0/pci1028,1f17@0/sd@0,0
       1. c4t28d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,0
       2. c4t268d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,1
       3. c4t269d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,2
       4. c4t270d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,3
       5. c4t271d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,4
       6. c4t272d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,5
       7. c4t273d0
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.13509555203E9,6
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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: mysql root密码丢失
请登录后发表评论 登录
全部评论

注册时间:2010-03-18

  • 博文量
    375
  • 访问量
    3113018