The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Backup to SCSI Tape Backup aborts zionpc SCO 4 12-07-2007 07:47 PM
Check backup file size on backup tape ayhanne UNIX for Dummies Questions & Answers 0 10-25-2007 11:41 AM
Mounting DLT tape and to backup file to tape ayzeayem UNIX for Dummies Questions & Answers 0 08-14-2007 02:09 AM
How to add backup tape josramon UNIX for Dummies Questions & Answers 1 11-27-2002 01:12 PM
Tape Backup jackpotp UNIX for Dummies Questions & Answers 15 03-24-2002 08:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-22-2004
mattd
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Tape Backup

I have a script which runs overnight to backup a database into a tar file. I then gzip the file and send it off to a tape device.

The command I'm using for the tape backup is

tar cvf /dev/rmt/0n /var/dbbackup/${FILE}.gz

I thought the n meant no rewind so the next file is copied to tape but does not overwrite what's already there. However it seems as though the old files on the tape device are being overwritten i.e. when I do

tar -tvf /dev/rmt/0

I can only see last night's file
-rw-r--r-- 100/100 102192 Jan 23 03:15 2004 /var/dbbackup/AS1.2004012303.bak.gz

What's up with my tar options?
  #2 (permalink)  
Old 01-26-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
One possible problem - you mention looking at the tape to see what's on it but you don't use the no rewind option. Anytime you don't use it, the tape will ,by default, rewind. Or anytime anyone doesn't use it the tape will rewind. Check that no one else is attempting to hit the drive - no other cron jobs, users,...
  #3 (permalink)  
Old 01-27-2004
mattd
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
I've had a look but I can't find other jobs hiting this tape.

While investigating I failed the applications over to the secondary box and ran;
# shutdown -i 0
then
ok probe-scsi-all

This sent the box into a "fault bus" error message hissy fit resulting in me having to pull the power cable out the back. Any more suggestions?
  #4 (permalink)  
Old 01-27-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Why would you shutdown the system? (I'm glad I didn't suggest that!)

If this is a SUN system, then sometimes after a shutdown it will hang by doing a probe-scsi-all. Normally all you have to do is a reset and break out (Stop-A) of the boot process to be able to run the proble-scsi-all.

But if you are getting error messages, you might want to see if you have your tape drive set up on the same id as a disk drive (which could cause errors).

Please post the system hardware, OS, and error messages you saw.
  #5 (permalink)  
Old 01-27-2004
mattd
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
The system info is Sun Fire V120 (UltraSPARC-IIe 648MHz), with 1024 MB RAM.

The reason I did a probe-scsi-all was that mt - f /dev/rmt/0 status said no device found. I tried shutting down with

sync; init 0

and probe-scsi-all seemd to better like it.

ok probe-scsi-all
/pci@1f,0/pci@1/scsi@8,1

/pci@1f,0/pci@1/scsi@8
Target 0
Unit 0 Disk SEAGATE ST336607LSUN36G 0307
Target 1
Unit 0 Disk SEAGATE ST336607LSUN36G 0307

ok

and when I do a boot -r the following error is given

NG: /pci@1f,0/pci@1/scsi@8,1 (glm1):
SCSI bus DATA IN phase parity error
WARNING: /pci@1f,0/pci@1/scsi@8,1 (glm1):
SCSI bus DATA IN phase parity error
WARNING: forceload of misc/md_trans failed
WARNING: forceload of misc/md_raid failed
WARNING: forceload of misc/md_hotspares failed
WARNING: forceload of misc/md_sp failed
configuring IPv4 interfaces: eri0 eri1.

As far as I am aware nothing has changed, any ideas?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0