Bacula-users

[Bacula-users] FW: Test Autochanger with mtx-changer - [SOLVED]

2011-07-08 02:10:02
Subject: [Bacula-users] FW: Test Autochanger with mtx-changer - [SOLVED]
From: "Robert Kromoser" <Robert.Kromoser AT kinamu DOT com>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 8 Jul 2011 08:07:10 +0200
Dear John.

Thanks for your tip to identify the right /dev/sgX device.

br Robert


-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Donnerstag, 07. Juli 2011 19:58
To: bacula-users AT lists.sourceforge DOT net
Cc: Robert Kromoser
Subject: Re: [Bacula-users] Test Autochanger with mtx-changer

>> /usr/local/bacula/bin/mtx-changer /dev/sg0 list 0 /dev/nst0 0
>> mtx: Request Sense: Sense Key=Illegal Request
>
> This is a typical error if you hit the wrong /dev/sg*, Try e.g.
> /dev/sg1 instead of /dev/sg0.
>

I agree.

Use tapeinfo -f device

to check.

Here is some sample output for my autochanger

dev6 ~ # tapeinfo -f /dev/sg4
Product Type: Tape Drive
Vendor ID: 'HP      '
Product ID: 'Ultrium 2-SCSI  '
Revision: 'S33U'
Attached Changer API: No
SerialNumber: 'HU106214GT'
MinBlock: 1
MaxBlock: 16777215
SCSI ID: 3
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: Not Loaded
Density Code: 0x42
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
Block Position: 3779315
Partition 0 Remaining Kbytes: 200448
Partition 0 Size in Kbytes: 200448
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 0
dev6 ~ # tapeinfo -f /dev/sg5
Product Type: Medium Changer
Vendor ID: 'EXABYTE '
Product ID: 'MAGNUM 224      '
Revision: 'C112'
Attached Changer API: No
SerialNumber: '000089000435'
SCSI ID: 3
SCSI LUN: 1
Ready: yes
dev6 ~ # tapeinfo -f /dev/sg6
Product Type: Tape Drive
Vendor ID: 'HP      '
Product ID: 'Ultrium 2-SCSI  '
Revision: 'S33U'
Attached Changer API: No
SerialNumber: 'HU106214CV'
MinBlock: 1
MaxBlock: 16777215
SCSI ID: 4
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: Not Loaded
Density Code: 0x42
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
Block Position: 2811939
Partition 0 Remaining Kbytes: 200448
Partition 0 Size in Kbytes: 200448
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 0

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>