System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Device validation error: couldn't open raw device /dev/rmt/0mn, error: No such device or address

sysad_boy
Frequent Advisor

Device validation error: couldn't open raw device /dev/rmt/0mn, error: No such device or address

Hi,

I am confused with the output of my DUMP backup.

Mar 23 20:46:26 2009: Backup Server: 6.45.1.1: Be sure to remove the tape/floppy from drive /dev/rmt/0mn (server: , session id: 25).

Mar 23 20:46:26 2009: Backup Server: 3.42.1.1: DUMP is complete (database ccb).

Mar 24 00:11:49 2009: Backup Server: 4.55.2.1: Device validation error: couldn't open raw device /dev/rmt/0mn, error: No such device

or address

Mar 24 00:11:49 2009: Backup Server: 6.58.1.1: Device '/dev/rmt/0mn' supports multiple dump files per volume set.

Mar 24 00:11:49 2009: Backup Server: 1.70.1.2: Configuring the shared memory per stripe to 786432 bytes.

Mar 24 01:21:13 2009: Backup Server: 6.95.1.3: Error encountered while trying to find the append point on device '/dev/rmt/0mn' usin

g non-rewinding tape logic. The tape will be rewound.

Mar 24 01:21:13 2009: Backup Server: 4.141.2.41: [11] The 'ioctl' call failed for device '/dev/rmt/0mn' with error number 6 (No such

device or address). Refer to your operating system documentation for further details.

Mar 24 01:21:13 2009: Backup Server: 1.14.2.2: Unrecoverable I/O or volume error. This DUMP or LOAD session must exit.

Mar 24 01:21:13 2009: Backup Server: 6.32.2.3: /dev/rmt/0mn: volume not valid or not requested (server: , session id: 20.)

Mar 24 01:21:13 2009: Backup Server: 1.14.2.4: Unrecoverable I/O or volume error. This DUMP or LOAD session must exit.

sybase(ASE1254)3236 /home/appl/sybase/server1254/ASE-12_5/install -->


Initially i received a message that backup was sucessful, but succeeding messages is telling me that there are errors.

Can you guys help me out finding out if I was able to backup my database successfully?

What seems to be wrong and why is my backup returning error messages.




TIA


2 REPLIES
Robert-Jan Goossens
Honored Contributor

Re: Device validation error: couldn't open raw device /dev/rmt/0mn, error: No such device or address

Hi,

---
Unable to use Async IO when dumping to disk on HP-UX

When trying to dump a database to disk on HP the following error occurs:

Backup Server 4.86.2.1: Unable to use Async IO on
the database device 'disk device specified'.

Backup Server must use Async IO on a block special devices
because SQL Server is doing the same. Refer to the server
release notes.

Backup Server 4.27.2.1: Volume validation error:
attempt to close 'disk device specified' returned Bad file number.

This error occurs even though Async IO is configured correctly. It occurs because of a problem in locking shared memory.

Adaptive Server, when using Async IO on HP, needs to lock its shared memory into physical memory so that processing an Async IO request will never have to wait for memory areas to be moved from swapspace to physical memory.

As the above error message says, Backup Server needs to do the same. However it cannot do so because there is not enough lockable physical memory left for the Backup Server.

On HP, lockable physical memory defaults to 75% of physical memory, not 75% of total shared memory.

To correct this problem try these options:

*

Increase physical memory.
*

Decrease the memory parameter for the Adaptive Server.
*

Change the HP-UX kernel parameter UNLOCKABLE_MEM. By default, this is 0 which signifies the aforementioned 75% - 25% ratio. Consult HP technical support before changing this parameter.
---
http://manuals.sybase.com/onlinebooks/group-as/asg1250e/svrtsg/@Generic__BookTextView/53886;pt=53858

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Device validation error: couldn't open raw device /dev/rmt/0mn, error: No such device or address

Shalom,

That device name is reserved for tape. You can not create and use a raw device directly like that.

To go directly to tape, you need software capable of writing directly to tape.

What you are doing is trying to use a tape device as a dump device.

Might want to delete the device and run:

insf -e

# That will rebuild the device files properly.

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