Consultor Eletrônico



Kbase 21471: Error 43, errno = 46 When Running PROBKUP on IBM AIX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   01/04/2002
Status: Unverified

FACT(s) (Environment):

IBM AIX

SYMPTOM(s):

PROBKUP utility fails with the following error message:
** Cannot find or open file /dev/rmt0.1, errno = 46 (43)

** Cannot find or open file <file-name>, errno = <number>. (43)

Operating system archive utilities (cpio, tar, etc.) work without any problems.

CAUSE:

Block_size value for the tape device is set to variable length.

Errno = 46 reads from the /usr/include/sys/errno.h file:

#define ENOTREADY 46 /* Device not ready */

This error usually indicates that the tape (rmt0) is not ready to be used (no media inside, device not initiated, etc.). However this is not the case when UNIX utilities can access the media.

One of the possible reasons for this issue is the block_size value for the tape device not set to a fixed value.

FIX:

To resolve the problem, the block_size of the tape device will have to be changed to a fixed value. To check the current device attributes, execute this command:
# lsattr -E -l rmt0

If the block_size value is set to a variable length (0) it should be changed (for example to 1K) with the command:

# chdev -l rmt0 -a block_size=1024

Once changed there shouldn't be any further problems with using PROBKUP directly to tape.