首页 > 数据库 > Oracle > udev 裸设备 安装rac
点击( 此处 )折叠或打开
[
root@rac1 ~
]
#
fdisk
-
l
Disk /dev/sda
:
8589 MB
,
8589934592 bytes
255 heads
,
63 sectors/track
,
1044 cylinders
Units
=
cylinders
of
16065
*
512
=
8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1
*
1 13 104391 83 Linux
/dev/sda2 14 274 2096482
+
82 Linux swap / Solaris
/dev/sda3 275 1044 6185025 83 Linux
Disk /dev/sdb
:
34
.
3 GB
,
34359738368 bytes
255 heads
,
63 sectors/track
,
4177 cylinders
Units
=
cylinders
of
16065
*
512
=
8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 4177 33551721 83 Linux
Disk /dev/sdc
:
1073 MB
,
1073741824 bytes
255 heads
,
63 sectors/track
,
130 cylinders
Units
=
cylinders
of
16065
*
512
=
8225280 bytes
Disk /dev/sdc doesn
't contain a valid partition table
Disk /dev/sdd
: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd
doesn't contain a valid partition table
Disk /dev/sde
:
1073 MB
,
1073741824 bytes
255 heads
,
63 sectors/track
,
130 cylinders
Units
=
cylinders
of
16065
*
512
=
8225280 bytes
Disk /dev/sde doesn
't contain a valid partition table
Disk /dev/sdf
: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg
:
8589 MB
,
8589934592 bytes
255 heads
,
63 sectors/track
,
1044 cylinders
Units
=
cylinders
of
16065
*
512
=
8225280 bytes
Disk /dev/sdg doesn
't contain a valid partition table
Disk /dev/sdh
: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdh doesn't contain a valid partition table
点击( 此处 )折叠或打开
[
root@rac1 ~
]
#
cat /etc/udev/rules
.
d/60
-
raw
.
rules
#
Enter
raw device bindings here
.
#
# An example would be
:
# ACTION
=
=
"add"
,
KERNEL
=
=
"sda"
,
RUN
+
=
"/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda
,
or
# ACTION
=
=
"add"
,
ENV{MAJOR}
=
=
"8"
,
ENV{MINOR}
=
=
"1"
,
RUN
+
=
"/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8
,
minor 1
.
ACTION
=
=
"add"
,
KERNEL
=
=
"sdc1"
,
RUN
+
=
"/bin/raw /dev/raw/raw1 %N"
ACTION
=
=
"add"
,
KERNEL
=
=
"sdd1"
,
RUN
+
=
"/bin/raw /dev/raw/raw2 %N"
ACTION
=
=
"add"
,
KERNEL
=
=
"sde1"
,
RUN
+
=
"/bin/raw /dev/raw/raw3 %N"
ACTION
=
=
"add"
,
KERNEL
=
=
"sdf1"
,
RUN
+
=
"/bin/raw /dev/raw/raw4 %N"
ACTION
=
=
"add"
,
KERNEL
=
=
"sdg1"
,
RUN
+
=
"/bin/raw /dev/raw/raw5 %N"
ACTION
=
=
"add"
,
KERNEL
=
=
"sdh1"
,
RUN
+
=
"/bin/raw /dev/raw/raw6 %N"
KERNEL = = "raw[1-6]" , OWNER = "grid" , GROUP = "oinstall" , MODE = "0660"
点击( 此处 )折叠或打开
[
root@rac1 raw
]
#
start_udev
Starting udev
:
[
OK
]
[
root@rac1 raw
]
#
ls
-
l
total 0
crw
-
rw
-
-
-
-
1 oracle oinstall 162
,
1 Apr 8 13
:
47 raw1
crw
-
rw
-
-
-
-
1 oracle oinstall 162
,
2 Apr 8 13
:
47 raw2
crw
-
rw
-
-
-
-
1 oracle oinstall 162
,
3 Apr 8 13
:
47 raw3
crw
-
rw
-
-
-
-
1 oracle oinstall 162
,
4 Apr 8 13
:
47 raw4
crw - rw - - - - 1 oracle oinstall 162 , 5 Apr 8 13 : 47 raw5
二节点同样的操作,但是期初我的而节点 raw -qa 识别不出来,关机重启后识别了,我也不知道怎么回事。。。 。。。抽什么疯... ...
点击( 此处 )折叠或打开
[
grid@rac1 sshsetup
]
$
sshUserSetup
.
sh
-
bash
:
sshUserSetup
.
sh
:
command
not
found
[
grid@rac1 sshsetup
]
$
.
/
sshUserSetup
.
sh
-
user grid
-
hosts
"rac1 rac2"
-
advanced PromptPassphrase
The output
of
this
script is also logged
into
/tmp/sshUserSetup_2015
-
04
-
08
-
16
-
31
-
36
.
log
Hosts are rac1 rac2
./sshUserSetup.sh -user grid -hosts "rac1 rac2" -advanced -noPromptPassphrase
./sshUserSetup.sh -user oracle -hosts "rac1 rac2 " -advanced -noPromptPassphrase
oracle grid用户都执行。
u01的盘给少了,我只给了8g,不够 哎 重新加吧
/u01/app/oraInventory这个目录必须是grid:oinstall的,必须和当前用户一样,即便是同一个组的也不行。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29990276/viewspace-1549250/ ,如需转载,请注明出处,否则将追究法律责任。