ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, January 27, 2011

Using btape to Verify your Tape Drive

Posted on 1:06 PM by Unknown
[root@um1ubackup bacula]# btape -c bacula-sd.conf /dev/st0
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/st0" for writing.
27-Jan 16:42 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Jan 16:42 btape: 3302 Autochanger "loaded? drive 0", result is Slot 24.
27-Jan 16:42 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Jan 16:42 btape: 3302 Autochanger "loaded? drive 0", result is Slot 24.
btape: btape.c:368 open device "LTO-3" (/dev/st0): OK
*

then type test

*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

btape: btape.c:825 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:841 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:850 Rewind OK.
1000 blocks re-read correctly.
Got EOF on tape.
1000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===


=== Write, rewind, and position test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and position to a few blocks and verify that it is correct.

This is an *essential* feature ...

btape: btape.c:937 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:953 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:962 Rewind OK.
Reposition to file:block 0:4
Block 5 re-read correctly.
Reposition to file:block 0:200
Block 201 re-read correctly.
Reposition to file:block 0:999
Block 1000 re-read correctly.
Reposition to file:block 1:0
Block 1001 re-read correctly.
Reposition to file:block 1:600
Block 1601 re-read correctly.
Reposition to file:block 1:999
Block 2000 re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===



=== Append files test ===

This test is essential to Bacula.

I'm going to write one record in file 0,
two records in file 1,
and three records in file 2

btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
27-Jan 16:43 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Jan 16:43 btape: 3302 Autochanger "loaded? drive 0", result is Slot 24.
btape: btape.c:368 open device "LTO-3" (/dev/st0): OK
btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1091 Now moving to end of medium.
btape: btape.c:520 Moved to end of medium.
We should be in file 3. I am at file 3. This is correct!

Now the important part, I am going to attempt to append to the tape.

btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
Done appending, there should be no I/O errors

Doing Bacula scan of blocks:
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448 bytes in file 3
End of File mark.
1 block of 64448 bytes in file 4
End of File mark.
Total files=4, blocks=7, bytes = 451,136
End scanning the tape.
We should be in file 4. I am at file 4. This is correct!

The above Bacula scan should have output identical to what follows.
Please double check it ...
=== Sample correct output ===
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448 bytes in file 3
End of File mark.
1 block of 64448 bytes in file 4
End of File mark.
Total files=4, blocks=7, bytes = 451,136
=== End sample correct output ===

If the above scan output is not identical to the
sample output, you MUST correct the problem
or Bacula will not be able to write multiple Jobs to
the tape.


=== Write, backup, and re-read test ===

I'm going to write three records and an EOF
then backup over the EOF and re-read the last record.
Bacula does this after writing the last block on the
tape to verify that the block was written correctly.

This is not an *essential* feature ...

btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:704 Wrote first record of 64412 bytes.
btape: btape.c:715 Wrote second record of 64412 bytes.
btape: btape.c:726 Wrote third record of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:742 Backspaced over EOF OK.
btape: btape.c:747 Backspace record OK.
btape: btape.c:765
Block re-read correct. Test succeeded!
=== End Write, backup, and re-read test ===



=== Forward space files test ===

This test is essential to Bacula.

I'm going to write five files then test forward spacing

btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:1571 Wrote one record of 64412 bytes.
btape: btape.c:1573 Wrote block to device.
btape: btape.c:499 Wrote 1 EOF to "LTO-3" (/dev/st0)
btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1305 Now forward spacing 1 file.
We should be in file 1. I am at file 1. This is correct!
btape: btape.c:1317 Now forward spacing 2 files.
We should be in file 3. I am at file 3. This is correct!
btape: btape.c:469 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1330 Now forward spacing 4 files.
We should be in file 4. I am at file 4. This is correct!

btape: btape.c:1348 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!

=== End Forward space files test ===


Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
that I can write on in Slot 1.

Do you wish to continue with the Autochanger test? (y/n): y


=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 24 loaded. I am going to unload it.
3302 Issuing autochanger "unload 24 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
27-Jan 16:46 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Jan 16:46 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
btape: btape.c:368 open device "LTO-3" (/dev/st0): OK
btape: btape.c:1235 Rewound "LTO-3" (/dev/st0)
btape: btape.c:1242 Wrote EOF to "LTO-3" (/dev/st0)

The test autochanger worked!!
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ►  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ►  February (10)
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ▼  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ▼  January (7)
      • Bacula : Tape Cannot label Volume because it is a...
      • Using btape to Verify your Tape Drive
      • Linux SCSI Tricks for Tape drive
      • bconsole: Error: bnet.c:779 gethostbyname() for h...
      • CentOS 5.5 64bit named[4474]: network unreachab...
      • named[3349]: the working directory is not writable
      • yum setup on Redhat
  • ►  2010 (24)
    • ►  December (1)
    • ►  November (1)
    • ►  October (4)
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (5)
    • ►  January (8)
  • ►  2009 (18)
    • ►  December (6)
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile