Hi,

On 5/9/2007 11:35 PM, Mike Vasquez wrote:
> When trying to mount the PV-122T, I get the following error: 3901 open device
> failed: ERR=dev.c:425 Unable to open device "Autochanger" (/dev/nst0):
> ERR=Device or resource busy.
> 
> The DELL PV-122T Medium Changer tells me I have no attached changer when I
> run the command mtx -f /dev/sg0 inquiry, but I have had a PV-132T attached
> to it for sometime.

Don't worry, you only have to set the devices correctly. The attached 
changer would only mean that the autochanger is controlled by the tape 
drive, which is rather non-standard today.

I never encountered such a device, but think this sort of interaction 
was used by some manufacturers but is outdated today. It's simpler to 
use standard drives in an autchanger that has its own control interface, 
as compared to developing special drives with the additional 
intelligence and interface to control the autochanger.

> How can I change it so the PV-122T sees the other changer.
> 
> When trying to mount the PV-122T, I get the following error: 3901 open
> device failed: ERR=dev.c:425 Unable to open device "Autochanger"
> (/dev/nst0): ERR=Device or resource busy.
> 
> I just upgrade to 2.0.3.  by sd.conf is like this.
> Device {
>   Name = Autochanger                 # 
>   Media Type = LTO-1
>   Archive Device = /dev/changer
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>  Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d"
>  Changer Device = /dev/sg0
>  AutoChanger = yes
>  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>  Spool Directory = /var/spool/backup
>  Maximum Spool Size = 120000000000
> }

This is a pre-1.38 configuration... you need separate resources for the 
autochanger and the drives in it - this is documented both in the manual 
and the release notes. (I just notice I can't find anything in the 
manual... so just use the ReleaseNotes for reference :-)

Anyway, you set up the drives, basically identical to your existing 
configuration, assign a Drive index of 1, and remove the 
autochanger-related stuff. Then, create an autochanger resource 
referencing the tape drives and giving the details regarding autochanger 
operations. In the DIR storage resource, only use the autochanger resource.

> What is the differences between a Changer Device and an Archive Device?

Archive device is the device node where Bacula writes the data, 
typically /dev/nst0 under linux. The changer device is the generic SCSI 
device which controls the autochanger, typically /dev/sg1.

Arno

> Everything was working before I upgraded.
> 
> TIA
> Mike
> 
> 
> 

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to