So... I had initially made a thread regarding this:
http://communities.vmware.com/message/1122019
To sum it up, I was trying to find a backup solution that involved writing TAR to a tape, thereby eliminating proxy software (beyond TAR of course).
Debated between continuing with that thread, or starting up a new one... as you can see, I elected to start a new thread.
I have RPMed mt and mtx to control my HP Storageworks 1/8 G2 Ultrium 920 tape drive... and here's what happens:
1) Load the tape:
mtx -f /dev/sg1 load 4 (load tape 4)
2) Ensure that the drive has the tape
mt -f /dev/st0 load
3) Lock the drive door
mt -f /dev/st0 lock
4) Ensure that the tape is loaded
mt -f /dev/st0 status
5) Since it's st0 and not nst0, rewind the tape
mt -f /dev/st0 rewind
6) Write my test tar file to tape
tar -cvf /dev/st0 -b 64 /vmfs/volumes/Systems/test
Here's what happens...
/\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\/
root@esx01 root# mtx -f /dev/sg1 load 4
root@esx01 root# mt -f /dev/st0 load
root@esx01 root# mt -f /dev/st0 lock
root@esx01 root# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 32768 bytes. Density code 0x44 (no translation).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
root@esx01 root# mt -f /dev/st0 rewind
root@esx01 root# tar -cvf /dev/st0 -b 32768 /vmfs/volumes/Systems/test/
tar: Removing leading `/' from member names
vmfs/volumes/Systems/test/
vmfs/volumes/Systems/test/testfile
tar: /dev/st0: Wrote only 0 of 16777216 bytes
tar: Error is not recoverable: exiting now
root@esx01 root# cat /var/log/messages
<truncated to remove ssh logins and su to root>
Dec 16 16:00:52 esx01 kernel: st0: Error be0000 (sugg. bt 0x0, driver bt 0x0, host bt 0xbe).
/\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\//\/\/\/
I've done all sorts of differnt searches in google and in local search engines... and the error message in my /var/log/messages gives me nothing to work with... does anyone know where I can look to find out what be0000 means?
Hello,
IN general that is the case. However, I would check with HP, they may have something else you need, but for local tapes the only ones I have found that work are Adaptec SCSI HBAs. Also, writes will be painfully slow once you do have it working. In most cases it is far better to use a backup server not within the ESX host.
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll
Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links
oops... in my SSH output I copied and pasted the wrong TAR...
Here's the right one.
# tar -cvf /dev/st0 -b 64 /vmfs/volumes/Systems/test/
tar: Removing leading `/' from member names
vmfs/volumes/Systems/test/
vmfs/volumes/Systems/test/testfile
tar: /dev/st0: Wrote only 0 of 32768 bytes
tar: Error is not recoverable: exiting now
Hello,
Run:
cat /proc/scsi/scsi
Does the tape device show up? Also, is the tape device connected to the ESX host using an Adaptec HBA or a RAID HBA. You must use Adaptec SCSI HBA.
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll
Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links
Host: scsi0 Channel: 00 Id: 05 Lun: 00
Vendor: HP Model: Ultrium 3-SCSI Rev: C24W
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 00 Id: 05 Lun: 01
Vendor: HP Model: 1x8 G2 AUTOLDR Rev: 1.50
Type: Medium Changer ANSI SCSI revision: 05
Yes, cat /proc/scsi/scsi does show the tape drive.
As far as the HBA... I dug out the invoice for the card, and it says that it's a RAID 0,1 card. Does this mean I'm hooped unless I get a different card?
The card is an HP SC44Ge.
Hello,
IN general that is the case. However, I would check with HP, they may have something else you need, but for local tapes the only ones I have found that work are Adaptec SCSI HBAs. Also, writes will be painfully slow once you do have it working. In most cases it is far better to use a backup server not within the ESX host.
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll
Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links
Just noticed that you can actually reply to the email notification... cool -gonna try it out and see what happens!
I do have a set of debian discs that I downloaded and burnt.. planning on implementing my backups on that. Unfortunately, I'd like to play with it a little before I buy another box to use for my backup box.
I'll give HP a call and find out if they have any ideas.