LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-19-2006, 07:44 PM   #1
angelfire
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Rep: Reputation: 0
How to use tape to backup


I just have LTO tape driver for IBM and I already plug in to my server,I also view the information by using cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 15 Lun: 00
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Processor ANSI SCSI revision: 02
Host: scsi2 Channel: 01 Id: 08 Lun: 00
Vendor: IBM Model: 02R0980a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
Host: scsi2 Channel: 02 Id: 03 Lun: 00
Vendor: IBM Model: HH LTO Gen 2 Rev: 0202
Type: Sequential-Access ANSI SCSI revision: 03

and use command for display name of the tape under /dev by

dmesg | grep -i "attached" | grep -i tape
Attached scsi tape st0 at scsi2, channel 2, id 3, lun 0

but when i use
tar cvf /dev/st0 test for backup I was get an error like :

tar: /dev/st0: Cannot write: Input/output error
tar: Error is not recoverable: exiting now

when using dmesg i see the error like this

st0: Write not multiple of tape block size.
ips 0000:06:08.0: Reset Request - Flushed Cache
st0: Error with sense data: Current st0: sense key Not Ready
Additional sense: Medium not presen

So please help me using tape to backup


Thanks very much...
 
Old 07-20-2006, 08:46 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,849

Rep: Reputation: 108Reputation: 108
1. Does tape sit in your hardware?
2. Is /dev/st0 logically correct? (not sdb??)
3. I used to use tape before Penguin age, (HP-UX).
 
Old 07-20-2006, 07:45 PM   #3
angelfire
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Original Poster
Rep: Reputation: 0
1 Yes tape still in driver
2 dmesg | grep -i "attached" | grep -i tape
Attached scsi tape st0 at scsi2, channel 2, id 3, lun 0
Do you have any idea?
Thanks
 
Old 07-20-2006, 08:59 PM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,849

Rep: Reputation: 108Reputation: 108
2. what /var/log/messages or syslog say?

I assume that physical device is sdb2 or sdb3.
 
Old 07-21-2006, 01:30 AM   #5
angelfire
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I don't know exactly therefore I copy scsi section in here, I thing maybe it a sdb1

SCSI subsystem initialized
ACPI: PCI interrupt 0000:08:0a.0[A] -> GSI 44 (level, low) -> IRQ 185
ACPI: PCI interrupt 0000:08:0a.1[B] -> GSI 45 (level, low) -> IRQ 193
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec aic7899 Ultra160 SCSI adapter>
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec aic7899 Ultra160 SCSI adapter>
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
ACPI: PCI interrupt 0000:06:08.0[A] -> GSI 36 (level, low) -> IRQ 177
scsi2 : IBM PCI ServeRAID 7.10.18 Build 731 <ServeRAID 6M>
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 143372288 512-byte hdwr sectors (73407 MB)
SCSI device sda: drive cache: write through
SCSI device sda: 143372288 512-byte hdwr sectors (73407 MB)
SCSI device sda: drive cache: write through
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 sda10 >
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 430116864 512-byte hdwr sectors (220220 MB)
SCSI device sdb: drive cache: write through
SCSI device sdb: 430116864 512-byte hdwr sectors (220220 MB)
SCSI device sdb: drive cache: write through
sdb: sdb1
Attached scsi disk sdb at scsi2, channel 0, id 1, lun 0
Vendor: IBM Model: SERVERAID Rev: 1.00
Type: Processor ANSI SCSI revision: 02
Vendor: IBM Model: 02R0980a S320 1 Rev: 1
Mounting other filesystems: succeeded
Type: Processor ANSI SCSI revision: 02
 
Old 07-21-2006, 08:40 AM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,849

Rep: Reputation: 108Reputation: 108
I think you are correct. Try /dev/sdb1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
tape backup triley Linux - General 2 08-31-2005 11:14 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
Tape backup help WorldBuilder Linux - Software 1 03-27-2003 01:26 PM
Which Tape backup? biggiefatts Linux - Hardware 4 02-19-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration