본문 바로가기

Oracle/10g. Rac Install

양쪽 rac1과 rac2 리눅스를 구동하고 공유디스크 format, ocfs설정 ,SSH 설정.


양쪽 rac1 리눅스와 rac2 리눅스를 구동하고나서 ping 제대로 나가는지 확인해본다.

아래모습을 보면 알겠지만.
설정한 public ip , private ip 는 ping 나가야하고.
virtual ip 는 아직 ping 이 나가면 안된다.

[root@rac2 ~]# ping rac1
PING rac1.expert15.com (192.168.0.133) 56(84) bytes of data.
64 bytes from rac1.expert15.com (192.168.0.133): icmp_seq=0 ttl=64 time=2.94 ms

--- rac1.expert15.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.946/2.946/2.946/0.000 ms, pipe 2
[root@rac2 ~]# ping rac2
PING rac2.expert15.com (192.168.0.134) 56(84) bytes of data.
64 bytes from rac2.expert15.com (192.168.0.134): icmp_seq=0 ttl=64 time=0.036 ms
64 bytes from rac2.expert15.com (192.168.0.134): icmp_seq=1 ttl=64 time=0.027 ms

--- rac2.expert15.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.027/0.031/0.036/0.007 ms, pipe 2
[root@rac2 ~]# ping rac1-priv
PING rac1-priv.expert15.com (10.10.10.31) 56(84) bytes of data.
64 bytes from rac1-priv.expert15.com (10.10.10.31): icmp_seq=0 ttl=64 time=1.69 ms
64 bytes from rac1-priv.expert15.com (10.10.10.31): icmp_seq=1 ttl=64 time=0.152  ms

--- rac1-priv.expert15.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.152/0.924/1.697/0.773 ms, pipe 2
[root@rac2 ~]# ping rac2-priv
PING rac2-priv.expert15.com (10.10.10.32) 56(84) bytes of data.
64 bytes from rac2-priv.expert15.com (10.10.10.32): icmp_seq=0 ttl=64 time=0.023  ms
64 bytes from rac2-priv.expert15.com (10.10.10.32): icmp_seq=1 ttl=64 time=0.025  ms
64 bytes from rac2-priv.expert15.com (10.10.10.32): icmp_seq=2 ttl=64 time=0.027  ms

--- rac2-priv.expert15.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.023/0.025/0.027/0.001 ms, pipe 2
[root@rac2 ~]# ping rac1-vip
PING rac1-vip.expert15.com (192.168.1.133) 56(84) bytes of data.

--- rac1-vip.expert15.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

[root@rac2 ~]# ping rac2-vip
PING rac2-vip.expert15.com (192.168.1.134) 56(84) bytes of data.

--- rac2-vip.expert15.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@rac2 ~]#

==========================================================================================
이제 설정한 공유디스크가 양쪽노드에 제대로 보이는지 확인하고 format 작업을 해준다.

RAC1 에서 명령어를 쳐본다.
[root@rac1 ~]# fdisk -l

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2355    18916506   83  Linux
/dev/sda2            2356        2610     2048287+  82  Linux swap

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sde doesn't contain a valid partition table
[root@rac1 ~]#

RAC2 에서 명령어를 쳐본다.
[root@rac2 ~]# fdisk -l

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2355    18916506   83  Linux
/dev/sda2            2356        2610     2048287+  82  Linux swap

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sde doesn't contain a valid partition table
[root@rac2 ~]#

양쪽에 이상없이 인식하는것을 확인했으면 둘중에 한곳에서 format 작업을 진행한다.

[root@rac1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-130, default 1): 그냥엔터
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): 그냥엔터
Using default value 130

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 ~]#

위와 같은 작업을 공유디스크가 4개이기때문에 4번을 반복한다.
물론 fdisk /dev/sdb <---- 각 디바이스 이름을 확인하고 모두 포멧을 해준다.