PE 6600 and tar

Jacob Bunk Nielsen bunk at exiqon.com
Mon May 10 04:25:01 CDT 2004


Hi

I have a PowerEdge 6600. I want to run tar to create a backup up on
the LTO drive. When the machine boots up it says:

Apr 26 16:02:28 qpcr kernel: (scsi2:A:6): 160.000MB/s transfers (80.000MHz DT, offset 31, 16bit)
Apr 26 16:02:28 qpcr kernel:   Vendor: IBM       Model: ULTRIUM-TD2       Rev: 333N
Apr 26 16:02:28 qpcr kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 03

And I have:

$ sudo sg_scan
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]  type=5
/dev/sg1: scsi2 channel=0 id=6 lun=0  type=1
/dev/sg2: scsi4 channel=0 id=0 lun=0  type=0
/dev/sg3: scsi4 channel=0 id=1 lun=0  type=0
/dev/sg4: scsi4 channel=4 id=6 lun=0  type=3
/dev/sg5: scsi4 channel=5 id=6 lun=0  type=3
$ sudo sg_map 
/dev/sg0  /dev/scd0
/dev/sg1  /dev/st0
/dev/sg2  /dev/sda
/dev/sg3  /dev/sdb
/dev/sg4
/dev/sg5

Then I try something like:

$ echo test.foo > test.foo
$ sudo tar --create --verbose --total --verify --file=/dev/st0 --label=test1 test.foo
$ rm test.foo
$ tar --extract --verbose --file=/dev/st0 test.foo
test1
Reading `test1'
test.foo
$ ls -l test.foo 
-rw-r--r--    1 jbn      jbn             9 May 10 11:12 test.foo

It all works nicely (and very fast, so I suspect it's all just in
memory).

When I then try something a little bigger:

$ sudo tar --create --verbose --total --verify --file=/dev/st0 \
 --label=test1 --directory=/ --exclude=proc --exclude=mnt \
--exclude=dev --exclude=*/lost+found .

It then prints a lot of filenames and stops after 30-200 MB with the
following error:

Total bytes written: 36321280 (35MiB, 5.9MiB/s)
tar: /dev/st0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now

My version of tar is:
$ tar --version
tar (GNU tar) 1.13.93
Copyright (C) 2003 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.

The tape is not write protected. What do I do wrong?

-- 
Jacob




More information about the Linux-PowerEdge mailing list