[Bacula-users] Autochanger advice

2006-11-24 Thread christian zimmermann
Hi folks,

I need some help with my autochanger config.
I have an overland arcvault 12 autochanger, I can mount all tapes with the mtx 
command no problem.
But when I try to mount a tape with bconsole so I can label it I allways get 
an error like this. 

mount
The defined Storage resources are:
 1: File
 2: Overland
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 0
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on 
"Drive-1" (/dev/st0). ERR=No medium found.

3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.


I can mount the tape with mtx and label it without a problem I can even umount 
the tape with the bconsole. But I´m not able to mount it.

Can someone point me in the right direction? 
I think I have a config error but not sure.


This is my bacula-sd.conf
---

Autochanger {
  Name = Overland
  Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, 
Drive-8, Drive-9, Drive-10, Drive-11, Drive-12
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = Drive-1  #
  Drive Index = 0
  Media Type = LTO-2
  Archive Device = /dev/st0
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Device {
 Name = Drive-2 
.
.
}


The bacula-dir.conf
---

Storage {
  Name = Overland
  Address = 10.2.0.43 
  SDPort = 9103
  Password = "test"  
  Device = Drive-1
  Device = Drive-2
  Device = Drive-3
  Device = Drive-4
  Device =  Drive-5
  Device =  Drive-6
  Device =  Drive-7
  Device =  Drive-8
  Device =  Drive-9
  Device =  Drive-10
  Device =  Drive-11
  Device =  Drive-12
  Media Type = LTO-2  
  Autochanger = yes   
}



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2007-05-10 Thread Mike Vasquez

I am getting the same errors.  What did you do to get it to work.

Mike

christian zimmermann wrote:
> 
> Hello all,
> 
> thanks everyone for the response the autoloader arcvault12 works now
> perfectly with bacula.
> 
> 
> Cu
> Christian
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Autochanger-advice-tf2696564.html#a10417457
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
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


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread Ralf Gross
christian zimmermann said:
> mount
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 0
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
> Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on
> "Drive-1" (/dev/st0). ERR=No medium found.
>
> 3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
>
>
> I can mount the tape with mtx and label it without a problem I can even
> umount the tape with the bconsole. But I´m not able to mount it.
>
> Can someone point me in the right direction?
> I think I have a config error but not sure.

Did you run the btape tests?

Maybe you have to enabel the offline option in the mtx-changer script.

# enable the following line if you need to eject the cartridge
 mt -f $device offline
 sleep 10

Ralf



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread Troy Daniels
Hi,

I'm not familiar with this particular autochanger but does it really 
have 12 DRIVES or does it have 12 tape SLOTS?

If it's the later, your config is wrong as you only need to configure a 
device per tape drive, not slot AFAIK.

Also, I dont think you should be specifying 'AutoChanger = Yes' in your 
Device definition. You're defining a tape drive there, not the 
autochanger (which is defined in the AutoChanger definition above it)

Hope this helps in some way,

Cheers,


Troy Daniels
Systems Administrator
iTouch Australia (pty) ltd.

christian zimmermann wrote:
> Hi folks,
> 
> I need some help with my autochanger config.
> I have an overland arcvault 12 autochanger, I can mount all tapes with the 
> mtx 
> command no problem.
> But when I try to mount a tape with bconsole so I can label it I allways get 
> an error like this. 
> 
> mount
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 0
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
> Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on 
> "Drive-1" (/dev/st0). ERR=No medium found.
> 
> 3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> 
> 
> I can mount the tape with mtx and label it without a problem I can even 
> umount 
> the tape with the bconsole. But I´m not able to mount it.
> 
> Can someone point me in the right direction? 
> I think I have a config error but not sure.
> 
> 
> This is my bacula-sd.conf
> ---
> 
> Autochanger {
>   Name = Overland
>   Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, 
> Drive-8, Drive-9, Drive-10, Drive-11, Drive-12
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg1
> }
> 
> Device {
>   Name = Drive-1  #
>   Drive Index = 0
>   Media Type = LTO-2
>   Archive Device = /dev/st0
>   AutomaticMount = yes;   # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
>   # Enable the Alert command only if you have the mtx package loaded
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> 
> Device {
>  Name = Drive-2 
> .
> .
> }
> 
> 
> The bacula-dir.conf
> ---
> 
> Storage {
>   Name = Overland
>   Address = 10.2.0.43 
>   SDPort = 9103
>   Password = "test"  
>   Device = Drive-1
>   Device = Drive-2
>   Device = Drive-3
>   Device = Drive-4
>   Device =  Drive-5
>   Device =  Drive-6
>   Device =  Drive-7
>   Device =  Drive-8
>   Device =  Drive-9
>   Device =  Drive-10
>   Device =  Drive-11
>   Device =  Drive-12
>   Media Type = LTO-2  
>   Autochanger = yes   
> }
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread christian zimmermann
Am Freitag, den 24.11.2006, 10:30 +0100 schrieb Ralf Gross:
>  I think I have a config error but not sure.
> 
> Did you run the btape tests?
> 
> Maybe you have to enabel the offline option in the mtx-changer script.
> 
> # enable the following line if you need to eject the cartridge
>  mt -f $device offline
>  sleep 10
> 
> Ralf
Hi Ralf,

yes all the btape tests are succeded.
Thanks for the hint, but the umount with the bconsole works I can 
not mount a tape here the output from bconsole.


*mount
The defined Storage resources are:
 1: File
 2: Overland
Select Storage resource (1-2): 2
Connecting to Storage daemon Overland at dmgr.vitanet.de:9103 ...
Enter autochanger drive[0]:
3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

am I right that the autochanger drive[0] is my pysical lto-2 drive and 
Drive-1 is my first slot in the autochanger? 

TIA
Christian



> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread James Ray
Troy Daniels wrote:
> Hi,
> 
> I'm not familiar with this particular autochanger but does it really 
> have 12 DRIVES or does it have 12 tape SLOTS?
> 
> If it's the later, your config is wrong as you only need to configure a 
> device per tape drive, not slot AFAIK.
> 
> Also, I dont think you should be specifying 'AutoChanger = Yes' in your 
> Device definition. You're defining a tape drive there, not the 
> autochanger (which is defined in the AutoChanger definition above it)
> 
> Hope this helps in some way,
> 

You are correct, unless you think they managed to cram 12 drives in a 2U
form factor or the first email mis-quoted the model of the tape library ;)

It seems to be a 2U, 1 Drive, 12 Slot loader

So your bacula-dir.conf should contain something like:
Storage {
  Name = Overland
  Address = 
  SDPort = 9103
  Password = 
  Device = Overland
  Media Type = 
  Autochanger = yes
  Maximum Concurrent Jobs = 8
}

Then your -sd.conf should have something like:
Autochanger {
Name = Overland
Device = Overland.0
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
Changer Device = 
}

Device {
Name = Overland.0
Drive Index = 0
Media Type = 
Archive Device = ;
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Autochanger = yes;
Maximum Network Buffer Size = 65536
}

The mtx-changer script may need changing of course, but this -should- work.


> Cheers,
> 
> 
> Troy Daniels
> Systems Administrator
> iTouch Australia (pty) ltd.
> 
> christian zimmermann wrote:
>> Hi folks,
>>
>> I need some help with my autochanger config.
>> I have an overland arcvault 12 autochanger, I can mount all tapes with the 
>> mtx 
>> command no problem.
>> But when I try to mount a tape with bconsole so I can label it I allways get 
>> an error like this. 
>>
>> mount
>> The defined Storage resources are:
>>  1: File
>>  2: Overland
>> Select Storage resource (1-2): 2
>> Enter autochanger drive[0]: 0
>> 3301 Issuing autochanger "loaded drive 0" command.
>> 3302 Autochanger "loaded drive 0", result: nothing loaded.
>> 3301 Issuing autochanger "loaded drive 0" command.
>> 3302 Autochanger "loaded drive 0", result: nothing loaded.
>> 3301 Issuing autochanger "loaded drive 0" command.
>> 3302 Autochanger "loaded drive 0", result: nothing loaded.
>> 3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
>> Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on 
>> "Drive-1" (/dev/st0). ERR=No medium found.
>>
>> 3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
>> If this is not a blank tape, try unmounting and remounting the Volume.
>>
>>
>> I can mount the tape with mtx and label it without a problem I can even 
>> umount 
>> the tape with the bconsole. But I´m not able to mount it.
>>
>> Can someone point me in the right direction? 
>> I think I have a config error but not sure.
>>
>>
>> This is my bacula-sd.conf
>> ---
>>
>> Autochanger {
>>   Name = Overland
>>   Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, 
>> Drive-8, Drive-9, Drive-10, Drive-11, Drive-12
>>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>>   Changer Device = /dev/sg1
>> }
>>
>> Device {
>>   Name = Drive-1  #
>>   Drive Index = 0
>>   Media Type = LTO-2
>>   Archive Device = /dev/st0
>>   AutomaticMount = yes;   # when device opened, read it
>>   AlwaysOpen = yes;
>>   RemovableMedia = yes;
>>   RandomAccess = no;
>>   AutoChanger = yes
>>   # Enable the Alert command only if you have the mtx package loaded
>>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>> }
>>
>> Device {
>>  Name = Drive-2 
>> .
>> .
>> }
>>
>>
>> The bacula-dir.conf
>> ---
>>
>> Storage {
>>   Name = Overland
>>   Address = 10.2.0.43 
>>   SDPort = 9103
>>   Password = "test"  
>>   Device = Drive-1
>>   Device = Drive-2
>>   Device = Drive-3
>>   Device = Drive-4
>>   Device =  Drive-5
>>   Device =  Drive-6
>>   Device =  Drive-7
>>   Device =  Drive-8
>>   Device =  Drive-9
>>   Device =  Drive-10
>>   Device =  Drive-11
>>   Device =  Drive-12
>>   Media Type = LTO-2  
>>   Autochanger = yes   
>> }
>>
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 

Re: [Bacula-users] Autochanger advice

2006-11-24 Thread Kern Sibbald
Hello,

Your bacula-dir.conf is messed up.  Delete all the Device = Drive-x
statements, and replace them with:

  Device = Overland

Then read the manual to understand why.

On Friday 24 November 2006 10:21, christian zimmermann wrote:
> Hi folks,
> 
> I need some help with my autochanger config.
> I have an overland arcvault 12 autochanger, I can mount all tapes with the 
mtx 
> command no problem.
> But when I try to mount a tape with bconsole so I can label it I allways get 
> an error like this. 
> 
> mount
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 0
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
> Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on 
> "Drive-1" (/dev/st0). ERR=No medium found.
> 
> 3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> 
> 
> I can mount the tape with mtx and label it without a problem I can even 
umount 
> the tape with the bconsole. But I´m not able to mount it.
> 
> Can someone point me in the right direction? 
> I think I have a config error but not sure.
> 
> 
> This is my bacula-sd.conf
> ---
> 
> Autochanger {
>   Name = Overland
>   Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, 
> Drive-8, Drive-9, Drive-10, Drive-11, Drive-12
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg1
> }
> 
> Device {
>   Name = Drive-1  #
>   Drive Index = 0
>   Media Type = LTO-2
>   Archive Device = /dev/st0
>   AutomaticMount = yes;   # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
>   # Enable the Alert command only if you have the mtx package loaded
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> 
> Device {
>  Name = Drive-2 
> .
> .
> }
> 
> 
> The bacula-dir.conf
> ---
> 
> Storage {
>   Name = Overland
>   Address = 10.2.0.43 
>   SDPort = 9103
>   Password = "test"  
>   Device = Drive-1
>   Device = Drive-2
>   Device = Drive-3
>   Device = Drive-4
>   Device =  Drive-5
>   Device =  Drive-6
>   Device =  Drive-7
>   Device =  Drive-8
>   Device =  Drive-9
>   Device =  Drive-10
>   Device =  Drive-11
>   Device =  Drive-12
>   Media Type = LTO-2  
>   Autochanger = yes   
> }
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread christian zimmermann
Am Freitag, den 24.11.2006, 09:56 + schrieb James Ray:
> Troy Daniels wrote:
> It seems to be a 2U, 1 Drive, 12 Slot loader
> 
> So your bacula-dir.conf should contain something like:
> Storage {
>   Name = Overland
>   Address = 
>   SDPort = 9103
>   Password = 
>   Device = Overland
>   Media Type = 
>   Autochanger = yes
>   Maximum Concurrent Jobs = 8
> }
> 
> Then your -sd.conf should have something like:
> Autochanger {
> Name = Overland
> Device = Overland.0
> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> Changer Device = 
> }
> 
> Device {
> Name = Overland.0
> Drive Index = 0
> Media Type = 
> Archive Device = ;
> AutomaticMount = yes;
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> Autochanger = yes;
> Maximum Network Buffer Size = 65536
> }
> 
> The mtx-changer script may need changing of course, but this -should- work.
> 
> 
> > Cheers,
> > 
> > 
> > Troy Daniels
> > Systems Administrator
> > iTouch Australia (pty) ltd.
> > 


Hello Troy,

thanks for your reply and you´re right I messed up drives with slots. 
I´ve corrected my bacula config, but it´s still the same. 
I can´t mount a tape with bconsole. 
When no tape is in the first slot 
an I issue the command mount, following will hapen.

*mount
Using default Catalog name=MyCatalog DB=bacula
The defined Storage resources are:
 1: File
 2: Overland
Select Storage resource (1-2): 2
Connecting to Storage daemon Overland at 10.2.0.43:9103 ...
3905 Device "Overland-LTO2" (/dev/st0) open but no Bacula volume is
mounted.
If this is not a blank tape, try unmounting and remounting the Volume.


I mountet a tape with the mtx command returned to the bconsole and tried
to umount and then to mount a tape.

 *umoun
The defined Storage resources are:
 1: File
 2: Overland
Select Storage resource (1-2): 2
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3307 Issuing autochanger "unload slot 1, drive 0" command.
3002 Device "Overland-LTO2" (/dev/st0) unmounted.
*
*
*
*
*mount
The defined Storage resources are:
 1: File
 2: Overland
Select Storage resource (1-2): 2
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3902 Cannot mount Volume on Storage Device "Overland-LTO2" (/dev/st0)
because:
Couldn't rewind device "Overland-LTO2" (/dev/st0): ERR=dev.c:678 Rewind
error on "Overland.0" (/dev/st0). ERR=No medium found.

Any hints?

TIA
Christian 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-24 Thread James Ray
christian zimmermann wrote:
> Am Freitag, den 24.11.2006, 09:56 + schrieb James Ray:
>> Troy Daniels wrote:
>> It seems to be a 2U, 1 Drive, 12 Slot loader
>>
>> So your bacula-dir.conf should contain something like:
>> Storage {
>>   Name = Overland
>>   Address = 
>>   SDPort = 9103
>>   Password = 
>>   Device = Overland
>>   Media Type = 
>>   Autochanger = yes
>>   Maximum Concurrent Jobs = 8
>> }
>>
>> Then your -sd.conf should have something like:
>> Autochanger {
>> Name = Overland
>> Device = Overland.0
>> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>> Changer Device = 
>> }
>>
>> Device {
>> Name = Overland.0
>> Drive Index = 0
>> Media Type = 
>> Archive Device = ;
>> AutomaticMount = yes;
>> AlwaysOpen = yes;
>> RemovableMedia = yes;
>> RandomAccess = no;
>> Autochanger = yes;
>> Maximum Network Buffer Size = 65536
>> }
>>
>> The mtx-changer script may need changing of course, but this -should- work.
>>
>>
>>> Cheers,
>>>
>>>
>>> Troy Daniels
>>> Systems Administrator
>>> iTouch Australia (pty) ltd.
>>>
> 
> 
> Hello Troy,
> 
> thanks for your reply and you´re right I messed up drives with slots. 
> I´ve corrected my bacula config, but it´s still the same. 
> I can´t mount a tape with bconsole. 
> When no tape is in the first slot 
> an I issue the command mount, following will hapen.
> 
> *mount
> Using default Catalog name=MyCatalog DB=bacula
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> Connecting to Storage daemon Overland at 10.2.0.43:9103 ...
> 3905 Device "Overland-LTO2" (/dev/st0) open but no Bacula volume is
> mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> 
> 
> I mountet a tape with the mtx command returned to the bconsole and tried
> to umount and then to mount a tape.
> 
>  *umoun
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result is Slot 1.
> 3307 Issuing autochanger "unload slot 1, drive 0" command.
> 3002 Device "Overland-LTO2" (/dev/st0) unmounted.
> *
> *
> *
> *
> *mount
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3902 Cannot mount Volume on Storage Device "Overland-LTO2" (/dev/st0)
> because:
> Couldn't rewind device "Overland-LTO2" (/dev/st0): ERR=dev.c:678 Rewind
> error on "Overland.0" (/dev/st0). ERR=No medium found.
> 
> Any hints?

Can you show the list volumes output?

I'm guessing you haven't run update slots or something to pick up any
tapes are actually in the autoloader.


-- 
James Ray.  <[EMAIL PROTECTED]>
Computing Services
Queen Mary, University of London

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-25 Thread Gerard Sharpe
christian zimmermann wrote:
> Hi folks,
> 
> I need some help with my autochanger config.
> I have an overland arcvault 12 autochanger, I can mount all tapes with the 
> mtx 
> command no problem.
> But when I try to mount a tape with bconsole so I can label it I allways get 
> an error like this. 
> 
> mount
> The defined Storage resources are:
>  1: File
>  2: Overland
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 0
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3902 Cannot mount Volume on Storage Device "Drive-1" (/dev/st0) because:
> Couldn't rewind device "Drive-1" (/dev/st0): ERR=dev.c:678 Rewind error on 
> "Drive-1" (/dev/st0). ERR=No medium found.
> 
> 3905 Device "Drive-1" (/dev/st0) open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.


Hi Christian,

I had the same issues running bacula 1.38.11-7 under Debian.

What I have done to temporarily fix the issue is changed the user 
bacula-sd uses. I updated the bacula-sd init.d script,
FROM:
---
ARGS="-c /etc/bacula/bacula-sd.conf -u bacula -g tape"
---

TO:
---
ARGS="-c /etc/bacula/bacula-sd.conf -u root -g tape"
---

As root it works fine, I now need to find the permissions the bacula 
users needs to work problem free!


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger advice

2006-11-27 Thread christian zimmermann
Hello all,

thanks everyone for the response the autoloader arcvault12 works now
perfectly with bacula.


Cu
Christian

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users