Operating System - HP-UX
1827284 Members
3252 Online
109717 Solutions
New Discussion

creating link to raw device

 
Tom Stewart_2
Advisor

creating link to raw device

Hi,
I am creating an oracle database using raw devices but am getting errors. I have created symbolic links to the logical volumes:

ln -s /dev/vg**/rtest_redo /oracle/oradata

but it is failing during the create:

ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00301: error in adding log file '/oracle/oradata/test_rredo1a' - file
cannot be created
ORA-27038: skgfrcre: file exists
HPUX-ia64 Error: 17: File exists



My question is - I can dd to/from the raw device, but should I be able to dd to the link as well as I does not seem to work, is there any reason why.



Thanks
3 REPLIES 3
Luk Vandenbussche
Honored Contributor

Re: creating link to raw device

Hi tom,

You are linking to /oracle/oradata/rtest_redo

Probably /oracle/oradata/rtest_redo exist yet before the linking. Can you check this and link it to a unique value
Tom Stewart_2
Advisor

Re: creating link to raw device

Hi,
The link does not exist before I run the command:
ln-s /dev/vgrg2/rtest_rredo1a /oradata/oracle/test_rredo1a

It then creates the link but I get the error when running the create script. I have tried various in the create script with the same results. The create scripts if I use ordinary files but not using the links to the raw devices. As I said I can dd to the raw device but not to the symbolic link . I hope this makes sense, Thanks
Tom Stewart_2
Advisor

Re: creating link to raw device

Hi,
I've discovered the problem, I used a script to create the symbolic links which was wrong. It created links which did not point to the full path:
"link -> link" instead of
"link -> /dev/vg/link"
Silly mistake, I don't know how I did not see it?

Thanks for your Help.
Tom