cancel
Showing results for 
Search instead for 
Did you mean: 

Brbackup to remote tape - Error

Former Member
0 Kudos

Dear Experts

We tried to fire a remote backup a tape device attached to the development server. it gives a error. saying permission denied.

[

BR0278W command output of ' LANG=C rsh erpdev -1 root /bin/sh -c "'LANG=C mt -f /devst0 rewind || echo ERR_RC: \$? 1>&2'"':

rcmd:socket: Permission denied

BR0279W return code from 'LANG=C rsh erpdev -1 root /bin/sh -c "'LANG=C mt -f /devst0 rewind || echo ERR_RC: \$? 1>&2'"': 1

BR0213W Winding tape volume in device /dev/nst0 failed

]

I have configure the hosts file for both servers and .rhosts file on dev server. what will be the issue.

hosts file @ dev server

rhosts file at dev server

hosts file @ source server.

Configuration file for init<sid>.sap at source server.

backup_mode = all

restore_mode = all

backup_type = offline

backup_dev_type = pipe

backup_root_dir = /oracle/PI1/sapbackup

stage_root_dir = /oracle/PI1/sapbackup

compress = no

compress_cmd = "gzip -c $ > $"

uncompress_cmd = "gunzip -c $ > $"

compress_dir = /oracle/PI1/sapreorg

archive_function = save

archive_copy_dir = /oracle/PI1/sapbackup/savedlogs

archive_stage_dir = /oracle/PI1/sapbackup

remote_host = erpdev

remote_user = root

tape_copy_cmd = dd

disk_copy_cmd = copy

stage_copy_cmd = rcp

pipe_copy_cmd = rsh

cpio_flags = -ovcB

cpio_in_flags = -iuvcB

cpio_disk_flags = -pdcu

dd_flags = "obs=64k bs=64k"

dd_in_flags = "ibs=64k bs=64k"

saveset_members = 1

copy_out_cmd = "dTd ibs=8k obs=64k of=$"

copy_in_cmd = "dd ibs=64k obs=8k if=$"

rewind = "mt -f $ rewind"

rewind_offline = "mt -f $ offline"

tape_pos_cmd = "mt -f $ fsf $"

tape_size = 800G

exec_parallel = 0

tape_address = /dev/nst0

tape_address_rew = /dev/st0

volume_archive = (PI1A01, PI1A02, PI1A03, PI1A04, PI1A05,

                  PI1A06, PI1A07, PI1A08, PI1A09, PI1A10,

                  PI1A11, PI1A12, PI1A13, PI1A14, PI1A15,

                  PI1A16, PI1A17, PI1A18, PI1A19, PI1A20,

                  PI1A21, PI1A22, PI1A23, PI1A24, PI1A25,

                  PI1A26, PI1A27, PI1A28, PI1A29, PI1A30)

volume_backup = (PI1B01, PI1B02, PI1B03, PI1B04, PI1B05,

                 PI1B06, PI1B07, PI1B08, PI1B09, PI1B10,

                 PI1B11, PI1B12, PI1B13, PI1B14, PI1B15,

                 PI1B16, PI1B17, PI1B18, PI1B19, PI1B20,

                 PI1B21, PI1B22, PI1B23, PI1B24, PI1B25,

                 PI1B26, PI1B27, PI1B28, PI1B29, PI1B30)

expir_period = 7

tape_use_count = 100

primary_db = PI1.WORLD

Thanks

priyan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priyan,

Check whether "rsh" is added in the "/etc/securetty"

Best regards,

Orkun Gedik

Former Member
0 Kudos

Dear Orkun

Yes it is there in the remote server.

re

priyan

Former Member
0 Kudos

1) Set rsh permission by "chmod 4755 /usr/bin/rsh"

2) Check /etc/hosts.equiv at the remote side the "<host> <user>" entry exist

Best regards,

Orkun Gedik

Former Member
0 Kudos

Dear Orkun.

Thank you very much giving the correct answer for me.

I solve the issue providing permission to the rsh file..

reg

priyan

Answers (0)