Hello Jessi,

Am 11.08.2014 11:20, schrieb jesse hart:
> Turns out I resolved this issue. 
> 
> Let me break it down for anyone else that has the issue.
> 
> 
> The symptoms presented with the autochanger loading a tape but then saying 
> there was no media in the drive. 
> 
> 
> It turns out that my /dev/nst devices were not mapped to the drive indexes in 
> the 0 though 3 order so /dev/nst0 was not associated with drive 0 
> 
> I figured this out by using the btape test using my bareos-sd.conf and 
> manually loading and unloading each drive from each of the 4 drives I have 
> until I found what drive was associated with each /dev/nst device. 
> 
> After doing this I found 
> /dev/nst0 was mapped to drive 3 on my device
> /dev/nst1 was mapped to drive 0 on my device
> /dev/nst2 was mapped to drive 2 on my device
> /dev/nst3 was mapped to drive 1 on my device

Good that you found that out. The problem is, that it can happen that the 
devices are discovered by
your os in a different order the next time you boot.

So it is better to use the /dev/tape/by-id/* devices to address your tapes 
instead of /dev/nst[0-3]

These devices are symlinks to /dev/nstx, but udev will make sure that the link 
always points to the
right device, no matter in what order the devices were discovered.

So you can replace /dev/nst0 by the /dev/tape/by-id/scsi-yxxxxx-nst device 
which points to /dev/nst0
( and so on for the other devices) .

That should help to avoid a lot of problems in the future.

You can also use the dev/tape/xxx device for the tapechanger device, so that 
you will not get
problems accessing your changer device if something on your scsi bus changes.

Best regards,

Philipp



-- 
Mit freundlichen Grüßen

 Philipp Storz                             [email protected]
 Bareos GmbH & Co. KG                       Phone: Phone: +49221630693-92
 http://www.bareos.com                      Fax: +49221630693-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Geschäftsführer: Stephan Dühr, M. Außendorf,
 J. Steffens, P. Storz, M. v. Wieringen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to