Visit Our UNIX and Linux User Community


Backup failed


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backup failed
# 1  
Old 01-02-2008
Backup failed

I'm getting following message at my EOD backup script:
Code:
sh: line1: /dev/rct0: cannot create [Permission Denied]

What could be the possible causes for this error and how could I resolve it?
# 2  
Old 01-02-2008
Is this a SCO server?

What backup utility are you using?

When did this last work?

Has anything changed recently that you know of?

What does ls -l /dev/rct0 show?

This backup is running as root , right?
# 3  
Old 01-02-2008
Is this a SCO server?

Ans: Yes its Sco Unixware.

What backup utility are you using?

Ans: cpio

When did this last work?

Ans: Day before yesterday, last 2 backups failed.

Has anything changed recently that you know of?

Ans: No change at all.

What does ls -l /dev/rct0 show?

Ans: crw-rw-rw- 1 root sys 287, 39 Dec 31 01:57 /dev/rct0

This backup is running as root , right?

Ans: No, its a non-root user, but we always run this script in the same way.
# 4  
Old 01-02-2008
Can you post the below directory permissions?

Code:
ls -ld /
ls -ld /dev
ls -ld /tmp


Can you read a previous backup tape? Are you able to list out the contents of the tape with cpio running as the non-root user?
# 5  
Old 01-02-2008
Code:
$ls -ld /
drwxr-xr-x   37 root     sys            3072 Dec  5 17:58 /
$ls -ld /dev
drwxrwxr-x   20 root     sys           11264 Dec  5 17:59 /dev
$ls -ld /tmp
drwxrwxrwt    4 bin      bin            6144 Jan  2 09:39 /tmp

Yes I'm able to read previous tapes (as non-root user), here is the sample output:
Code:
$cpio -ict < /dev/rct0
home/ArchiveMods/Patch.24159
home/ArchiveMods/Patch.24159_1
home/ArchiveMods/Patch.27461

# 6  
Old 01-02-2008
can you run the cpio backup directly from the command line and duplicate the erorr?

Is the truss command installed on your system? If so can you run
Code:
truss -aef -o /tmp/truss.log cpio_backup_command_here

The permission denied error should be near the bottom of this log and will indicate what cpio is doing when it encounters the permission denied error.
# 7  
Old 01-03-2008
Sorry I can't use the script with truss utility because I don't have the actual script with me, today EOD generated the following error:
Code:
Jan  3 02:06:00 unix1 unix: WARNING: Tape Driver: HA 1 TC 4 LU 0 - CHECK CONDITION:
Jan  3 02:06:01 unix1 unix: A "MEDIUM ERROR" condition has been detected.
Jan  3 02:06:01 unix1 unix: Additional data = "UNRECOVERED READ ERROR".
Jan  3 02:06:01 unix1 unix: Logical block address = 0x55FEFFFF

 

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Backup: The lseek call failed

Hi, We are facing issues while backing up our 1205 GB filesystem on LTO5 Tape. During backup the "backup: The lseek call failed." messages were generated, I want to know why these messages were generating AIX version is: 6100-08-00-0000 backup: The date of this level 0 backup is Mon Mar 11... (4 Replies)
Discussion started by: m_raheelahmed
4 Replies

2. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

3. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

4. AIX

backup script failed with error '0403-005 Cannot create the specified file'

In AIX 5.1, a daily run script that backing up oracle data failed yesterday with following errors: The Tivoli backup of DBPROD failed. What could be the issue, OS, backup or Oracle? (3 Replies)
Discussion started by: jalite19
3 Replies

5. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

6. HP-UX

Backup Files Failed

I am having difficulty in doing ontape -s -L 0. At first it was giving a message Archive failed - function to write to tape failed code -l errno 5. After about 24 hours it says "could not write archive tape. What do I do? Can anyone please advise on what the problem is and what I can do? ... (0 Replies)
Discussion started by: Gillonye
0 Replies

7. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

8. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

9. UNIX for Dummies Questions & Answers

EOD backup failed

EOD backup failed with following error: 05/08/07 01:10:02 write /home/compdir to DATTAPE 2712860 blocks UX: cpio: HALT: Cannot read from device 1 error Failed on shell-script: cpio -ictB 2>>/home2/Rev83/misc/logs/bk.End-of-day 1>/dev/null </dev/rct0 05/08/07 2:29:14 What above output... (0 Replies)
Discussion started by: nervous
0 Replies

Featured Tech Videos