Arno Lehmann wrote:
> Hi,
> 
> On 6/13/2007 8:58 PM, Maria McKinley wrote:
>> Ralf Gross wrote:
>>> Maria McKinley schrieb:
>>>> Falk Sauer wrote:
>>>>> please make shure that your changer device has the correct permissions 
>>>>> eg.:
>>>>>
>>>>>  crw-rw---- root disk /dev/sg0
>>>>>
>>>>> and for the potentially next problem ...
>>>>> by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
>>>>> don't 
>>>>> know how its correct on exabyte tapes.
>>>>>
>>>>> Normally the /dev/st* device makes a automatic rewind after write, 
>>>>> the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
>>>>> device. You dosn't write wich OS you use, here are little differences 
>>>>> between 
>>>>> the OSes.
>>>> My permissions are:
>>>>
>>>> crw------- 1 root root     21,   0 2005-02-25 22:38 sg0
>>>>
>>>> so, maybe that is my problem. Can I just change this, like any file, 
>>>> with chown (assuming that the disk part is important) and chmod?
>>> udev might override the permissions again. I would create an udev rule
>>> to set the right permissions (check if your system uses udev).
>>>
>>> You could try something like that:
>>>
>>> /etc/udev/rules.d/010-local.rules 
>>>
>>> KERNEL=="st*",                  GROUP="tape", MODE="0660"
>>> KERNEL=="nst*",                 GROUP="tape", MODE="0660"
>>>
>>> /etc/init.d/udev restart (or reload...)
>>>
>>> The bacula user has to be member of group tape.
>>>
>>> Ralf
>>>
>> Hmm, udev does not seem to be installed, although curiously, the config 
>> files are there. On the machine I had working previously with this tape 
>> drive and an earlier version of bacula (1.36), udev was also not 
>> installed, but again the config files were there, so it seems some other 
>> package is using and installing these config files.
> ...
>> I'm still not entirely sure what to do about it. Since udev isn't 
>> actually installed, I'm not sure what to restart to read my script.
>> Seems like something should be reading the udev config files, since I 
>> didn't put the default ones there, so some package must have. I'd rather 
>> not reboot this machine, but I will if no one knows, and then I can see 
>> if the permissions were updated. But how on earth did this get set in my 
>> previous installation without a script in udev?
> 
> Which OS do you use?
> 
> Usually, there a commands available to tell you which package a file 
> belongs to. For example, running an rpm-based distribution:
> elf:~ # rpm -qf /etc/udev/udev.conf
> udev-030-9.2
> 
> Starting with that information, or knowing which OS you run, someone 
> might have an idea...
> 
> 
> Oh, and of course you could always add a simple line like 'chown 
> bacula.tape /dev/sg0' into the Bacula start script.
> 
> Arno
> 

Ah, thanks for that jolt. Forgot about figuring out what package a file 
belongs to. Looks like both hdparm and mt-st have files in the 
/etc/udev, so I tried reloading hdparm, and that updated permissions in 
/dev. I am now trying to label the tapes, but it appears that bacula is 
hung trying, this is where I've been for over 10 minutes:

*label barcodes
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at dinah:9103 ...


In answer to other questions, mtx and mt-st both work from the command 
line, and the tape changer is definitely /dev/sg0, and the tape drive is 
definitely /dev/st0

thanks again,
Maria

-------------------------------------------------------------------------
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