Sometimes you need to configure raw devices for OCR, Votingdisk and ASM Spfile, but the directory /dev/raw does not exist.
As root create the /dev/raw directory:
mkdir /dev/raw
Then create the required raw devices using the following sintax:
i.e.:
x=1
cd /dev/raw
while [ $x -lt 12 ];
do
mknod raw$x c 162 $x
x=`expr $x + 1 `
done
# raw-dev.sh
MAKEDEV raw
mv /dev/raw/raw1 /dev/raw/votingdisk
mv /dev/raw/raw2 /dev/raw/ocr.dbf
mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora
chmod 660 /dev/raw/votingdisk
chmod 660 /dev/raw/ocr.dbf
chmod 660 /dev/raw/spfile+ASM.ora
chown oracle:dba /dev/raw/votingdisk
chown oracle:dba /dev/raw/ocr.dbf
chown oracle:dba /dev/raw/spfile+ASM.ora
Comments (3)
Thanks Alejandro, that might come in handy today or tomorrow!
AFAIK this must be for Linux, right?
Posted by BOK | July 5, 2007 9:35 AM
Posted on July 5, 2007 09:35
Thanks Alejandro.. Your blogs really helpful..
Posted by kalpit | July 11, 2007 11:08 AM
Posted on July 11, 2007 11:08
Hi Alexandro, thanks for this very good post!
Very usefull for me in my RAC classes!
=;-)
Lutz
Posted by Lutz Hartmann | August 28, 2007 4:52 PM
Posted on August 28, 2007 16:52