|
num1
dd if=/dev/zero of=/loopiso/loop1.img bs=1G count=2
dd if=/dev/zero of=/loopiso/loop1.img bs=1G count=2
dd if=/dev/zero of=/loopiso/loop1.img bs=1G count=2
dd if=/dev/zero of=/loopiso/loop1.img bs=1G count=2
dd if=/dev/zero of=/loopiso/loop1.img bs=1G count=6
num2
start() {
# Start daemons.
# Check that networking is up.
losetup /dev/loop1 /loopiso/loop1.img
losetup /dev/loop2 /loopiso/loop2.img
losetup /dev/loop3 /loopiso/loop3.img
losetup /dev/loop4 /loopiso/loop4.img
losetup /dev/loop5 /loopiso/loop5.img
}
stop() {
# Stop daemons.
losetup -d /dev/loop1
losetup -d /dev/loop2
losetup -d /dev/loop3
losetup -d /dev/loop4
losetup -d /dev/loop5
}
mub3
start() {
# Start daemons.
# Check that networking is up.
raw /dev/raw/raw1 /dev/loop1
raw /dev/raw/raw2 /dev/loop2
raw /dev/raw/raw3 /dev/loop3
raw /dev/raw/raw4 /dev/loop4
raw /dev/raw/raw5 /dev/loop5
chown oracle:dba /dev/raw/*
chown root:disk /dev/raw/rawctl
}
stop() {
# Stop daemons.
raw /dev/raw/raw1 0 0
raw /dev/raw/raw2 0 0
raw /dev/raw/raw3 0 0
raw /dev/raw/raw4 0 0
raw /dev/raw/raw5 0 0
}
numb4
[root@station164 init.d]# /etc/init.d/myraw stop
/dev/raw/raw1: bound to major 0, minor 0
/dev/raw/raw2: bound to major 0, minor 0
/dev/raw/raw3: bound to major 0, minor 0
/dev/raw/raw4: bound to major 0, minor 0
/dev/raw/raw5: bound to major 0, minor 0
[root@station164 init.d]# /etc/init.d/myraw start
/dev/raw/raw1: bound to major 7, minor 1
/dev/raw/raw2: bound to major 7, minor 2
/dev/raw/raw3: bound to major 7, minor 3
/dev/raw/raw4: bound to major 7, minor 4
/dev/raw/raw5: bound to major 7, minor 5
[root@station164 init.d]#
[root@station164 raw]# ls
raw1 raw2 raw3 raw4 raw5 rawctl
[root@station164 raw]# ll
total 0
crw-rw---- 1 oracle dba 162, 1 Jul 8 09:27 raw1
crw-rw---- 1 oracle dba 162, 2 Jul 8 09:27 raw2
crw-rw---- 1 oracle dba 162, 3 Jul 8 09:27 raw3
crw-rw---- 1 oracle dba 162, 4 Jul 8 09:27 raw4
crw-rw---- 1 oracle dba 162, 5 Jul 8 09:27 raw5
crw-rw---- 1 root disk 162, 0 Jul 7 14:53 rawctl
[root@station164 raw]#
numb5
grid install 输入 /dev/raw/* or /dev/raw/raw* 磁盘都不会出来~
|
-
|