Thanks for your help, i have tracked down the error..
The bacula user had the wrong GID. I fixed that...
So now i am in the really weird world where enabling debugging with for example "-d100" makes it work :-)
If i remove that parameter, it stops working.
The version i am using is the packaged one in debian stable (Version: 1.36.2 (28 February 2005))..
For now i'll just leave the debugging in there.. since this can't be a bug but a debug-feature :-)
//Nicklas
On 11/4/06, Arno Lehmann <[EMAIL PROTECTED]> wrote:
Hi,
On 11/3/2006 4:36 PM, Nicklas Börjesson wrote:
> Hi Arno,
> And thanks for your reply.
> That didn't help though.. Are they supposed to be same?
No. On the front end, you use the names you assign in the storage
resource in the DIR. The DIR then determines which SD (Address, Port) to
contact for the corresponding device.
> Since the error is that it cannot find a specific device, it should mean
> that the storage deamon responds, right?
Right.
> Is it correct to configure the way i have?
Obviously not ;-)
Ok, try the following: Firts, make sure the SD actually runs with the
configuration you have on disk: Restart it.
Then try a 'status storage' command, it should give you all the devices
on that SD. In this report you can find all the SD-internal device names
as well as the names they are referenced by externally.
Double- and triple-check for typos.
Then, issue a 'show storage' command and make sure the references match.
I have a sample here (ignore the additional debug output...):
#sta sd=DLT
Connecting to Storage daemon DLT at goblin:9103
goblin-sd Version: 1.39.22...
Device "Tandberg SLR" (/dev/nst0) is mounted with Volume="QIC-525-0021"
Pool="QIC"
Configured device capabilities:
EOF BSR BSF FSR FSF EOM REM !RACCESS AUTOMOUNT !LABEL !ANONVOLS ALWAYSOPEN
Device state:
OPENED TAPE LABEL !MALLOC APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT
!MOUNTED
num_writers=0 block=0
Device parameters:
Archive name: /dev/nst0 Device name: Tandberg SLR
File=12 block=0
Min block=0 Max block=0
Total Bytes=449,455,104 Blocks=6,966 Bytes/block=64,521
Positioned at File=12 Block=0
You note the SD-internal device name "Tandberg SLR" and the associated
device identifier /dev/nst0.
Now, from 'show storage':
#show storage
Storage: name=GoblinFile address=goblin SDport=9103 MaxJobs=1
DeviceName=GoblinFile MediaType=File StorageId=1
Storage: name=ElfFile address=elf SDport=9103 MaxJobs=4
DeviceName=ElfFile MediaType=ElfFile StorageId=8
Storage: name=ElfArchive address=elf SDport=9103 MaxJobs=4
DeviceName=ElfArchive MediaType=ElfArchive StorageId=9
Storage: name=QIC address=goblin SDport=9103 MaxJobs=1
DeviceName=Tandberg SLR MediaType=DC6525 StorageId=2
Storage: name=HPDAT address=goblin SDport=9103 MaxJobs=6
DeviceName=HP DAT MediaType=DDS2 StorageId=3
Storage: name=DLT address=goblin SDport=9103 MaxJobs=6
DeviceName=FastStor 4000 MediaType=DLTIV StorageId=4
Storage: name=DVD address=elf SDport=9103 MaxJobs=4
DeviceName=DVD MediaType=DVD StorageId=7
Look at the Storage QIC. It's connected to SD at goblin, port 9103,
device name "Tandberg SLR".
QIC is the only name you reference in the DIR config or using bconsole.
Now, compare this to your output and look for discrepancies... that
spares me the effort to really carefully check the config you sent :-)
If this doesn't help you, i.e. everything should work ok but doesn't,
then try running the SD in the foreground, with debug output enabled at
level, for example, 100. The SD will, as part of its startup sequence,
report about the devices (and media) it uses, like this:
goblin-sd: dev.c:242 init_dev: tape=0 dev_name=/var/bacula/
goblin-sd: stored.c:459 SD init done /var/bacula/
goblin-sd: dev.c:242 init_dev: tape=1 dev_name=/dev/nst0
goblin-sd: stored.c:459 SD init done /dev/nst0
goblin-sd: stored.c:472 calling first_open_device "Tandberg SLR" (/dev/nst0)
goblin-sd: dev.c:283 open dev: type=2 dev_name="Tandberg SLR"
(/dev/nst0) vol= mode=OPEN_READ_ONLY
goblin-sd: dev.c:328 open dev: device is tape
goblin-sd: dev.c:397 open dev: tape 5 opened
goblin-sd: label.c:206 Compare Vol names: VolName= hdr=QIC-525-0021
Locate the lines with first_open_device and you should see which devices
the SD finds. See if you find any problems with the devices you can't
connect to.
Hope this helps,
Arno
> //Nicklas
>
>
> On 11/2/06, *Arno Lehmann* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi,
>
> On 11/2/2006 10:22 PM, Nicklas Börjesson wrote:
> > Hi all,
> > I am trying to get my setup to work.. However, it doesn't. Yes iam a
> > newbie.
>
> We all were :-)
>
> > I have tried all possible combinations of device names and so on,
> and
> > the only error get from the console when trying to mount for
> example the
> > HDD2_160gb device is: "3999 Device "HDD2_160gb" not found".
> >
> ...
> > Storage {
> > Name = "util01-sd160"
> > Device = "HDD2_160gb"
> > }
> ...
> > bacula-sd.conf :
> > Device {
> > Name = "HDD2_160gb"
> > }
>
> What happens when you try to use util01-sd160 instead of HDD2_160gb?
>
> Arno
>
> --
> IT-Service Lehmann [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> Arno Lehmann http://www.its-lehmann.de
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> < http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> <mailto:Bacula-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users