OnStream DI-30
From Gentoo Linux Wiki
Contents |
[edit] OnStream DI-30
The OnStream DI-30 is an streamer connected via the USB port. It should more or less work out of the box an the steps to do are very minimal. This tutorial will show you how to install the device but will not focus on backup strategies.
[edit] Installation
Installation is straight forward. Plug it in and check dmesg output.
| Code: part of the dmesg output |
usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning scsi 2:0:0:0: Sequential-Access OnStream DI-30 1.08 PQ: 0 ANSI: 2 usb-storage: device scan complete |
You need to have the line
scsi 2:0:0:0: Sequential-Access OnStream DI-30 1.08 PQ: 0 ANSI: 2
If you get it, all is fine for the next steps.
[edit] Kernel requirements
You need
Device Drivers ---> SCSI device support ---> SCSI tape support
and
Device Drivers ---> SCSI device support ---> SCSI OnStream SC-x0 tape support
and
Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> SCSI emulation support
I recommend compiling all these as modules, so you can simply use them without restarting your system. Just load the modules using:
| Code: load modules |
modprobe ide-scsi modprobe osst |
I powered off the device to check if dmesg output showed me osst:
| Code: part of the dmesg output |
usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning scsi 2:0:0:0: Sequential-Access OnStream DI-30 1.08 PQ: 0 ANSI: 2 osst 2:0:0:0: osst :I: Attached OnStream DI-30 tape as osst0 osst 2:0:0:0: Attached scsi generic sg0 type 1 usb-storage: device scan complete |
You can see your device is listed as osst0 and sg0 in /dev
| Code: ll /dev/sg0 /dev/osst0 |
crw-rw---- 1 root tape 206, 0 18. Apr 12:05 /dev/osst0 crw-rw---- 1 root root 21, 0 18. Apr 12:05 /dev/sg0 |
[edit] Userspace requirements
You need a program to use the streamer/tape. To get a simple commandline tool just type:
| Code: install mt-st |
emerge mt-st -va |
mt-st always expects the streamer/tape to be located at /dev/tape. OSST numbers the devices in /dev/osstX. So you need to provide a symlink:
| Code: symlink for mt-st |
ln -s /dev/osst0 /dev/tape Rewinding device ln -s /dev/nosst0 /dev/ntape Non-rewinding device |
Now you can run mt with it's various commands, like:
| Code: mt status |
OnStream SC-, DI-, DP-, or USB tape drive: File number=0, block number=0. Tape block size 512 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN |
[edit] Creating a backup
There are several tutorials on the net on how to backup using mt-st. Pick one and use it.
[edit] References
http://www.jpsdomain.org/linux/OnStream_DI-30-RedHat_Backup_mini-HOWTO.html
