cancel
Showing results for 
Search instead for 
Did you mean: 

brtools cannot open SCSI device '/dev/scsi/changer/... - Permission denied

Former Member
0 Kudos

hi all

OS: Solaris 10 DB: Oracle 9i

I reconnected tape changer to new server and configure backups

backups performing through rsh. Logon through rsh from other servers (sidadm) without password working fine.

tape changer using mtx to load/unload tapes this working fine

when i started backup i have error:

BR0278E, BR0279E cannot open SCSI device '/dev/scsi/changer/c4t0d0' - Permission denied

ls -la /dev/scsi/changer/c4t0d0

lrwxrwxrwx   1 root     root          56 Feb  5 15:55 /dev/scsi/changer/c4t0d0 -> ../../../devices/pci@1c,600000/scsi@2,1/sgen@0,0:changer

earlier devices have displayed:

ls -la /dev/rmt/

2     2c    2cn   2hbn  2lb   2m    2mn   2ub   3     3c    3cn   3hbn  3lb   3m    3mn   3ub

2b    2cb   2h    2hn   2lbn  2mb   2n    2ubn  3b    3cb   3h    3hn   3lbn  3mb   3n    3ubn

2bn   2cbn  2hb   2l    2ln   2mbn  2u    2un   3bn   3cbn  3hb   3l    3ln   3mbn  3u    3un

in backup profile i use

tape_address = /dev/rmt/2mn

tape_address_rew = /dev/rmt/2m

after reconnecting tape changer to new server

# ls -la /dev/rmt/

0     0c    0cn   0hbn  0lb   0m    0mn   0ub   1     1c    1cn   1hbn  1lb   1m    1mn   1ub

0b    0cb   0h    0hn   0lbn  0mb   0n    0ubn  1b    1cb   1h    1hn   1lbn  1mb   1n    1ubn

0bn   0cbn  0hb   0l    0ln   0mbn  0u    0un   1bn   1cbn  1hb   1l    1ln   1mbn  1u    1un

in backup profile i use

tape_address = /dev/rmt/0mn

tape_address_rew = /dev/rmt/0m

on both servers tape_address_ctl = /dev/scsi/changer/c4t0d0

what could be the problem in your?



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Execute the command at the root user, below;

chown ora<sid>:dba /dev/scsi/changer/c4t0d0

Please note that the rights will be lost after the restart.

Best regards,

Orkun Gedik

Former Member
0 Kudos

thanks for your reply Orkun.

But chown command has no effect((

chown oratrd:dba /dev/scsi/changer/c4t0d0

# ls -la /dev/scsi/changer/c4t0d0

lrwxrwxrwx   1 root     root          56 Feb  5 15:55 /dev/scsi/changer/c4t0d0 -> ../../../devices/pci@1c,600000/scsi@2,1/sgen@0,0:changer

and error repeat((

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

It is a symbolic link and chown wont work.

Suggest you to check the resulting directory or the file system permission.

Cheers

RB

Former Member
0 Kudos

Hi Reagan . Thanks for reply.  I understand this but after chown error repeat((

crw-------   1 oratrd   dba  151,  1 Feb  6 17:13 sgen@0,0:changer
Former Member
0 Kudos

It was worked on Suse, previously. Ok, try to put sticky bit to mount and unmount scripts with 4777

Former Member
0 Kudos

sticky bit not helps me

Former Member
0 Kudos

when i set chown root:sys to mount and dismount bash scripts i have errro without cannot open SCSI device

error:


BR0278E Command output of 'LANG=C rsh srv06r3 -l trdadm /bin/sh -c "'mount_tape.sh TRD-B /dev/scsi/changer/c4t0d0 LPS268L3 > /dev/nullecho ERR_RC: \$? 1>&2'"':

permission denied

BR0279E Return code from 'LANG=C rsh srv06r3 -l trdadm /bin/sh -c "'mount_tape.sh TRD-B /dev/scsi/changer/c4t0d0 LPS268L3 > /dev/nullecho ERR_RC: \$? 1>&2'"': 1

BR0390I Mounting volume LPS268L3 in device /dev/scsi/changer/c4t0d0 failed

Former Member
0 Kudos

i chown sidadm:sapsys to /devices/pci@1c,600000/scsi@2,1/sgen@0,0:changer

backup is started but i have error:

BR0213E Winding tape volume in device /dev/rmt/0mn failed

Former Member
0 Kudos

Hi,

Please check whether the following link helps .

http://scn.sap.com/thread/1738643

Thanks and Regards,

Vimal

Former Member
0 Kudos

I solve problem with server connected directly to the tape library and do backup without errors but the other servers connect to rsh have a error  

BR0278E Command output of 'LANG=C rsh srv03  -l sidadm /bin/sh -c "'mount_tape.sh TRP-B /dev/scsi/changer/c4t0d0 LPS266L3 > /dev/null    echo ERR_RC: \$? 1>&2'"':

permission denied

I can connect sidadm without password to server who connected directly to the tape library