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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-19-2006, 07:44 PM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 13
Rep:
|
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...
|
|
|
07-20-2006, 08:46 AM
|
#2
|
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: 
|
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).
|
|
|
07-20-2006, 07:45 PM
|
#3
|
LQ Newbie
Registered: Jul 2006
Posts: 13
Original Poster
Rep:
|
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
|
|
|
07-20-2006, 08:59 PM
|
#4
|
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: 
|
2. what /var/log/messages or syslog say?
I assume that physical device is sdb2 or sdb3.
|
|
|
07-21-2006, 01:30 AM
|
#5
|
LQ Newbie
Registered: Jul 2006
Posts: 13
Original Poster
Rep:
|
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
|
|
|
07-21-2006, 08:40 AM
|
#6
|
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: 
|
I think you are correct. Try /dev/sdb1
|
|
|
All times are GMT -5. The time now is 01:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|