USB Tape Drives on Linux with BRU
Description of Problem:
Group Technical Support team has received several calls concerning the use of USB tape drives on Linux with BRU Server
The error message that is seen upon making the attempt to write to the tape device for backup operations is:
brufilter: [W130] warning - write error on first block: errno = 16, Device or resource busy
There are some already known devices that exhibit this problem on Linux and they are as follows:
3 USB Tape Drives
- DDS/DAT 4 USB Tape Drives
- DAT72 USB Tape Drives
- DAT160 USB Tape Drives
-1 USB Tape Drives
As we learn of more devices we will continue to add them to this list.
This problem is caused from an apparent limitation being set by the Linux kernel for block sizes sent over the USB bus. By default, BRU Server uses a 128k block size. However, in customer reports, as well as in-house testing, it has been discovered that setting the block size to a value higher than 64k results in the above error.
To resolve this problem, the BRU Server block size must be set to 64k or lower on your BRU Server Linux installation. To do this, follow the steps below:
- Open the BRU Server Console
- Click on the "Tools" tab.
- From the "Database Option" button, select "Device Configuration."
- From the "Device" pull down menu, select the USB tape drive that is experiencing the problem.
- By default, the block size for BRU Server is 128k, or 131072 bytes. Change the block size to 65536. 65536 is the value for 64k (1024 x 64 = 65536).
- Once that has been changed, click the "Save" button in the bottom right corner of the Console. You may need to enlarge the Console window for the "Refresh," "Cancel," and "Save" buttons to appear.
The "Status:" report at the bottom of the window should report "Record saved" after clicking the "Save" button.
No further changes need to be made to fix the above problem. If you plan on using "bru-server.console" or "bru-server.cmd" to make these changes, the syntax for the command is:
setc -m device <device_name> block_size 65536
You must insert the device name in place of <device_name> in the command above.
If you continue to experience problems with your USB tape device on Linux, please contact TOLIS Group Technical Support.
Note: This issue appears to be caused by a Linux OS limitation, not a drive limitation. The above drives have been tested on Mac OS X
& Windows with success using block sizes up to 1MB on some drives. In all cases, the drives listed above accepted and worked with 128k and 256k block sizes under Mac OS X