• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Solaris 10(x86)构建Oracle 10g RAC之–配置系统环境(1)

mysql 搞代码 4年前 (2022-01-09) 42次浏览 已收录 0个评论

Solaris10(x86)构建Oracle10gRAC之–配置系统环境(1)系统环境:操作系统:Solaris10(x86-64)Cluster:OracleCRS10.2.0.1.0Oracle:Oracle10.2.0.1.0如图所示

Solaris 10(x86)构建Oracle 10g RAC之–配置系统环境(1)

系统环境:

操作系统:Solaris 10(x86-64)

Cluster: Oracle CRS 10.2.0.1.0

Oracle: Oracle 10.2.0.1.0


如图所示:RAC 系统架构

本案例,通过Solairs 10(x86-64)系统,构建Oracle 10g 的RAC;共享存储采用RAW+ASM的方式进行管理。

一、操作系统环境

[root@node1:/]# uname -a

SunOS node1 5.10 Generic_142910-17 i86pc i386 i86pc

[root@node1:/]# isainfo -kv

64-bit amd64 kernel modules

1、网络配置(在所有节点)

[root@node1:/]# cat /etc/inet/ipnodes ## Internet host table#::1 localhost 127.0.0.1 localhost 192.168.8.11 node1 loghost192.168.8.13 node1-vip10.10.10.11 node1-priv192.168.8.12 node2192.168.8.14 node2-vip10.10.10.12 node2-priv

网络配置:

配置vip network(node1):[root@node1:/]# ifconfig e1000g0:1 plumb up[root@node1:/]# ifconfig e1000g0:1 192.168.8.13 netmask 255.255.255.0[root@node1:/]# ifconfig -alo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843 mtu 1500 index 2 inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255 ether 8:0:27:28:b1:8c e1000g0:1: flags=4001000842 mtu 1500 index 2 inet 192.168.8.13 netmask ffffff00 broadcast 192.168.8.255e1000g1: flags=1000843 mtu 1500 index 3 inet 10.10.10.11 netmask ffffff00 broadcast 10.10.10.255 ether 8:0:27:6e:16:1 配置vip network(node2):[root@node2:/]# ifconfig e1000g0:1 plumb up[root@node2:/]# ifconfig e1000g0:1 192.168.8.14 netmask 255.255.255.0 [root@node2:/]# ifconfig -alo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843 mtu 1500 index 2 inet 192.168.8.12 netmask ffffff00 broadcast 192.168.8.255 ether 8:0:27:1f:bf:4c e1000g0:1: flags=1000843 mtu 1500 index 2 inet 192.168.8.14 netmask ffffff00 broadcast 192.168.8.255e1000g1: flags=1000843 mtu 1500 index 3 inet 10.10.10.12 netmask ffffff00 broadcast 10.10.10.255 ether 8:0:27:a5:2c:db

2、共享磁盘配置(在所有节点)

对于Oracle 10g RAC,OCR和VOTE DISK、DataBase需建立在共享存储设备上;OCR和VOTE DISK必须以raw的方式管理,而存放DataBase的磁盘必须以ASM的方式管理。

1、建立磁盘分区(raw)(在node1)

在Solaris下建立raw应注意以下事项:Use the fdisk command to create a Solaris partition on the disk if one does not already exist.Solaris fdisk partitions must start at cylinder 1, not cylinder 0. If you create an fdisk partition, then you must label the disk before continuing.Enter the partition command, followed by the print command to display the partition table for the disk that you want to use.If necessary, create a single whole-disk slice, starting at cylinder 1.Note:To prevent Automatic Storage Management from overwriting the partition table, you cannot use slices that start at cylinder 0 (for example, slice 2).注意: 在建立磁盘分区时,必须从cylinder 1开始,不能从cylinder 0开始!建立磁盘分区[root@node1:/]# formatSearching for disks…doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@0,0/pci8086,2829@d/disk@0,0 1. c0t2d0 /pci@0,0/pci8086,2829@d/disk@2,0Specify disk (enter its number): 1selecting c0t2d0[disk formatted]format> pWARNING – This disk may be in use by an application that has modified the fdisk table. Ensure that this disk is 本文来源gao@daima#com搞(%代@#码@网2 not currently in use before proceeding to use fdisk. format> fdisk No fdisk table exists. The default partition for the disk is: a 100% “SOLARIS System” partitionType “y” to accept the default partition, otherwise type “n” to edit the partition table.yformat> pPARTITION MENU: 0 – change `0′ partition 1 – change `1′ partition 2 – change `2′ partition 3 – change `3′ partition 4 – change `4′ partition 5 – change `5′ partition 6 – change `6′ partition 7 – change `7′ partition select – select a predefined table modify – modify a predefined partition table name – name the current table print – display the current table label – write partition map and label to the disk ! – execute , then return quitpartition> pCurrent partition table (original):Total disk cylinders available: 2607 + 2 (reserved cylinders)Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 0 (0/0/0) 0 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 – 2606 19.97GB (2607/0/0) 41881455 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 – 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0partition> 0Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 – 16 133.35MB (17/0/0) 273105Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 1Enter partition size[273105b, 17c, 17e, 133.35mb, 0.13gb]: 128mbpartition> 1Part Tag Flag Cylinders Size Blocks 1 unassigned wm 0 – 16 133.35MB (17/0/0) 273105Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 18Enter partition size[273105b, 17c, 34e, 133.35mb, 0.13gb]: 128mbpartition> 3Part Tag Flag Cylinders Size Blocks 3 unassigned wm 0 – 652 5.00GB (653/0/0) 10490445Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 35Enter partition size[10490445b, 653c, 687e, 5122.29mb, 5.00gb]: 5gbpartition> 4Part Tag Flag Cylinders Size Blocks 4 unassigned wm 0 – 652 5.00GB (653/0/0) 10490445Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 688Enter partition size[10490445b, 653c, 1340e, 5122.29mb, 5.00gb]: 5gbpartition> 6Part Tag Flag Cylinders Size Blocks 6 unassigned wm 0 – 522 4.01GB (523/0/0) 8401995Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 689Enter partition size[8401995b, 523c, 1211e, 4102.54mb, 4.01gb]: 4gbpartition> 7Part Tag Flag Cylinders Size Blocks 7 unassigned wm 0 – 522 4.01GB (523/0/0) 8401995Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 1212Enter partition size[8401995b, 523c, 1734e, 4102.54mb, 4.01gb]: 4gbpartition> pCurrent partition table (unnamed):Total disk cylinders available: 2607 + 2 (reserved cylinders)Part Tag Flag Cylinders Size Blocks 0 unassigned wm 1 – 17 133.35MB (17/0/0) 273105 1 unassigned wm 18 – 34 133.35MB (17/0/0) 273105 2 backup wu 0 – 2606 19.97GB (2607/0/0) 41881455 3 unassigned wm 35 – 687 5.00GB (653/0/0) 10490445 4 unassigned wm 688 – 1340 5.00GB (653/0/0) 10490445 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 689 – 1211 4.01GB (523/0/0) 8401995 7 unassigned wm 1212 – 1734 4.01GB (523/0/0) 8401995 8 boot wu 0 – 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0partition> labelReady to label disk, continue? ypartition> partition> quitformat> verifyPrimary label contents:Volume name = ascii name = pcyl = 2609ncyl = 2607acyl = 2bcyl = 0nhead = 255nsect = 63Part Tag Flag Cylinders Size Blocks 0 unassigned wm 1 – 17 133.35MB (17/0/0) 273105 1 unassigned wm 18 – 34 133.35MB (17/0/0) 273105 2 backup wu 0 – 2606 19.97GB (2607/0/0) 41881455 3 unassigned wm 35 – 687 5.00GB (653/0/0) 10490445 4 unassigned wm 688 – 1340 5.00GB (653/0/0) 10490445 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 689 – 1211 4.01GB (523/0/0) 8401995 7 unassigned wm 1212 – 1734 4.01GB (523/0/0) 8401995 8 boot wu 0 – 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0format> savePlease name this partition type before saving itformat> quit查看raw设备:[root@node1:/]# ls -l /dev/rdsk/c0t2d0s*lrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s0 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:a,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s1 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:b,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s2 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:c,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s3 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:d,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s4 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:e,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s5 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:f,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s6 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:g,rawlrwxrwxrwx 1 root root 51 Jan 20 15:18 /dev/rdsk/c0t2d0s7 -> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:h,raw……在node2上查看:[root@node2:/]# formatSearching for disks…doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@0,0/pci8086,2829@d/disk@0,0 1. c0t2d0 /pci@0,0/pci8086,2829@d/disk@2,0Specify disk (enter its number): 1selecting c0t2d0[disk formatted]partition> pCurrent partition table (original):Total disk cylinders available: 2607 + 2 (reserved cylinders)Part Tag Flag Cylinders Size Blocks 0 unassigned wm 1 – 17 133.35MB (17/0/0) 273105 1 unassigned wm 18 – 34 133.35MB (17/0/0) 273105 2 backup wu 0 – 2606 19.97GB (2607/0/0) 41881455 3 unassigned wm 35 – 687 5.00GB (653/0/0) 10490445 4 unassigned wm 688 – 1340 5.00GB (653/0/0) 10490445 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 689 – 1211 4.01GB (523/0/0) 8401995 7 unassigned wm 1212 – 1734 4.01GB (523/0/0) 8401995 8 boot wu 0 – 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0

2、修改raw设备属性(所有node)


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Solaris 10(x86)构建Oracle 10g RAC之–配置系统环境(1)

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址