Operating System - Linux
1745808 Members
3622 Online
108722 Solutions
New Discussion юеВ

Linux Error 5: Input/output error

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

Linux Error 5: Input/output error

Oracle 9i RAC on two nodes RH AS 2.1. Using Oracle OCFS Filesystem in the shared storage. Oracle Cluster Manager 9i.

I can create an edit files in the shared storage using touch and vi. But in other processes (creating an Oracle database) I receive the "Linux Error 5: Input/output error"

ORA-00221: error on write to controlfile
ORA-00206: error in writing (block 3, # blocks 1) of controlfile
ORA-00202: controlfile: '/opt/orafiles/ocfs/fs01/control02.ctl'
ORA-27072: skgfdisp: I/O error
Linux Error: 5: Input/output error

Any idea about what could be the problem?
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Linux Error 5: Input/output error

I'd start out checking permissions. The oracle binary error needs to own the shared files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tonatiuh
Super Advisor

Re: Linux Error 5: Input/output error

I do not underestand the sentence: "The oracle binary error needs to own the shared files."

If you mean "The oracle binary user needs to own the shared files.". This is already true right now, because the oracle user is who create the shared files and is the owner of the directory where the ocfs filesystem is mounted.
Jeroen Peereboom
Honored Contributor

Re: Linux Error 5: Input/output error

Some guesses:

- Is the cluster manager running correctly?
- How did you create the quorumdisk and server config file: should be something like:
├в ┬в dd if=/dev/zero of=/ocfs-data/cmdiskfile bs=4096 count=65

├в ┬в chown root:dba /ocfs-data/cmdiskfile

├в ┬в chmod 664 /ocfs-data/cmdiskfile

├в ┬в dd if=/dev/zero of=/ocfs-data/srvconfigfile bs=1M count=100

├в ┬в chown oracle:dba /ocfs-data/srvconfigfile

├в ┬в chmod 664 /ocfs-data/srvconfigfile

- Your controlfile may be damaged? Or are you creating new ones?

- You have Oracle 9.2.0.5?

Oracle may be the owner of the mount point, but important is that oracle should also be owner of the OCFS filesystem. This can be checked with the ocfstool. But I assume you touch/vi the file on the ocfs filesytem as
Tonatiuh
Super Advisor

Re: Linux Error 5: Input/output error

Thanks for the guesses:

> Is the cluster manager running correctly?
ANSWER: Yes, I have running correctly another database using RAW devices.

> How did you create the quorumdisk and
>server config file:
ANSWER: Both of them are raw devices and are working correctly in the database I already have working.

>but important is that oracle should also
>be owner of the OCFS filesystem.
ANSWER: Yes, oracle user and oinstall grup are the owners of OCFS filesystem. This info is given when issued the mkfs.ocfs command.

>I assume you touch/vi the file on the
>ocfs filesytem
ANSWER: That is correct.
Tonatiuh
Super Advisor

Re: Linux Error 5: Input/output error

The error message is not complete. I post the complet emessage (1 line more)

ORA-00221: error on write to controlfile
ORA-00206: error in writing (block 3, # blocks 1) of controlfile
ORA-00202: controlfile: '/opt/orafiles/ocfs/fs01/control02.ctl'
ORA-27072: skgfdisp: I/O error
Linux Error: 5: Input/output error
Additional information: 2
Jeroen Peereboom
Honored Contributor

Re: Linux Error 5: Input/output error

I wonder if you can read the controlfile?
cat or dd?

JP.