- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Backup Fails
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 07:44 PM
тАО05-23-2009 07:44 PM
Backup Fails
I hav a DL 380 G4 with a DAT72 tape drive at 5300 Tape Array. The OS is RHEL-4. When I'm trying to take tar backup, I found the following erros:
[root@gpklvs2 /]# uname -a
Linux gpklvs2.grameenphone.net 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 18:00:32 EDT 2006 i686 i686 i386 GNU/Linux
[root@gpklvs2 /]# dmesg | grep tape
Attached scsi tape st0 at scsi1, channel 0, id 5, lun 0
[root@gpklvs2 /]# cd /home
[root@gpklvs2 home]# ll
total 40
drwxr-xr-x 2 root root 4096 Apr 4 2007 cluster
drwxr-xr-x 2 root root 4096 Jul 26 2006 diwakar
drwxr-xr-x 3 root root 4096 Jul 24 2006 kvsms-patch
drwx------ 2 root root 16384 Mar 9 2006 lost+found
drwxr-xr-x 2 root root 4096 Apr 16 2006 netbackup
drwxrwxrwx 4 root root 4096 Oct 20 2008 tanvir
drwxr-xr-x 2 root root 4096 May 20 11:36 testbackup
[root@gpklvs2 home]# tar -czf /dev/st0 /home/testbackup
tar: Removing leading `/' from member names
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@gpklvs2 home]# tar -tzf /dev/st0
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@gpklvs2 home]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
Any suggestion from anyone?
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 10:32 PM
тАО05-23-2009 10:32 PM
Re: Backup Fails
Open the hardware browser and see if the tape drive is detected.
Do a test read from a tape, you know has a valid archive on it.
Probably the tape drive is not detected or configured properly.
You may need drivers, but based on what I see the drive is much older than the OS. It could be a conflicting SCSI configuration or connecting the drive to a SCSI card that does not support the tape drive.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2009 10:44 PM
тАО05-23-2009 10:44 PM
Re: Backup Fails
Great to got a repsonse from a BOSS like U.
BTW,
Open the hardware browser and see if the tape drive is detected.
=> The tape is detected perfectly from the OS.
Do a test read from a tape, you know has a valid archive on it.
=> Please clarify this point.
Probably the tape drive is not detected or configured properly.
=> The tape drive is configured @ 2007, and the customers taking backup perfectly.
This problem occurs abt 2 weeks ago.
Is it a HW issue or Driver issue?
Is there any other way to check the root cause of the backup failure?
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 02:11 AM
тАО05-24-2009 02:11 AM
Re: Backup Fails
If you look at the error while listing the tape acrhive it says "gzip: stdin: unexpected end of file" which means something was written on the tape.
Quick way to check the tape read/write capability is to use another tape.
If you still get the errors, I would have question:
Is my tape drive require some kinda cleaning :-) ?? or need to place a Hardware call.
Its been while I've used tar and mt commands, please check the options for mt man page like: going to the end of tape data...
Let me know your findings.
Good Luck!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 02:25 AM
тАО05-24-2009 02:25 AM
Re: Backup Fails
Quick way to check the tape read/write capability is to use another tape.
=> I do check by using a fresh tape, but the error remains same.
If you still get the errors, I would have question:
Is my tape drive require some kinda cleaning :-) ?? or need to place a Hardware call.
==> I do clean the tape drive by a fresh cleaning cartridge, but nothing to be happy.
Its been while I've used tar and mt commands,
=>
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
# tar -tzf /dev/st0
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 03:07 AM
тАО05-24-2009 03:07 AM
Re: Backup Fails
Is your tape drive writing at all?
Please use the following command on couple of smaller size files ( enable verbose mode):
tar -cvf /dev/st0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 03:16 AM
тАО05-24-2009 03:16 AM
Re: Backup Fails
# cd /home/testbackup/
[root@gpklvs2 testbackup]# ll
total 8
-rw-r--r-- 1 root root 1307 Apr 27 2006 hosts
-rw-r--r-- 1 root root 19 May 20 11:36 test
[root@gpklvs2 testbackup]# more test
test of tape drive
# tar -cvf /dev/st0 /home/testbackup/
tar: Removing leading `/' from member names
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 07:24 PM
тАО05-24-2009 07:24 PM
Re: Backup Fails
You can use dd to verify if this is a problem with your tape drive.
mt -f /dev/st0 erase
mt -f /dev/st0 rewind
dd if=/dev/st0 of=/dev/null bs=1024k
if this also does not works. It might be a problem with your tape drive.
Good Luck...!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 07:25 AM
тАО05-25-2009 07:25 AM
Re: Backup Fails
If nothin goes fine with you, then certainly its a tape drive or the scsi controller issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 08:30 AM
тАО05-25-2009 08:30 AM
Re: Backup Fails
Going back to your original post, you say that the tape drive is connected to a 5300 Tape Array. I assume you mean a SmartArray controller of some form.
Whilst this can work, it is not recommended to connect a tape drive to a SmartArray controller. A standard SCSI controller would be much better.
That said, you may get some hints as to what is wrong from the output of "file /dev/st0".
And I know you've said that you've tried "fresh" cleaning tapes and data tapes, but did you take them out of the packaging yourself ? In my experience, cleaning tapes are rarely marked when they've been used, and they do have a limited life (20 cycles if memory serves...)
Cheers,
Rob