Re: Setting up Rootdbs on a raw disk
Posted in 2000
Thanks for everyones suggestions and help!!!!!
I had check the typo and the permissions and the owner:group.The only thing I was doing wrong was that I was
using c0t2d0p*, not c0t2d0s*. The clue David gave me was
/dev/dsk links to /devices/...xxx[a-h]
The *p* devices link to /devices/...xxx[q-z]
>>> David Williams <djw@smooth1.demon.co.uk> 01/06/00 04:09PM >>>
In article <850qbs$lje$1@news.xmission.com>, Anne Shelp
<shean@mcdss.co.gov> writes
>
>Hi all,
>
>I got the part about setting up databases on raw files. I understand that using
>links is the way to go. What I am
>having problems with is actually getting it to work. I created a link to a raw
>disk.
>
> ln /dev/rdsk/c0t2d0p3 /dbdisk/rootdisk (I also tried ln -s).
>
> When I try to initialize the database - oninit -i or through onmonitor I get
>the error "Error opening file "dbdiisk/rootdisk" I know that I must be missing
>some obvious step (and probably silly). Any ideas?
>
a) use ln -s as it is more readable when you do an ls -l
otherwise it is very hard to check what it is linked to
(At least under SCO you have to do an ncheck -i <inode-number>
and it scans EVERY directory on the file system to find the
links, take ages!!).
b) As others have suggested checking the spelling, also
c) /dev/rdsk/... will be a ln -s type link to a file in /devices
do
chown informix /devices/...
chgrp informix /devices/...
chmod 660 /devices/...,raw
(NOTE: /dev/rdsk/... links to /devices/...xxx[a-h],raw
/dev/dsk links to /devices/...xxx[a-h]
to enable KAIO (faster) you want the ...,raw device)
then you need to fix the permissions on the links
chown -h informix /dev/rdsk/...
chgrp -h informix /dev/rdsk/...
chown -h informix /dbdisk/...
chgrp -h informix /dbdisk/...
the -h option changes the link rather than what the link points to
ls -l /dbdisk
should show
rwxrwxrw informix informix ...
ls -l /dev/rdsk/xxxxx,raw
should show
rwxrwxrwx informix infromix xxx -> /devices/yyy
ls -l /devices/yyy should show
rw-rw---- informix informix ....,raw
Phew! It's late an I'm tired..zzzzz...
[snip]
>
>TIA
>Anne Shelp
--
David Williams