Re: [Bacula-users] Device Error

2011-05-06 Thread John Drescher
On Fri, May 6, 2011 at 12:42 PM, Robert Longfield
 wrote:
> yes the tape drive has a barcode scanner. i tried the 'update slots' message
> and i got the following error:
>
> Automatically selected Storage: PV-122T
> Connecting to Storage daemon PV-122T at localhost:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "PV-122T" has 0 slots.
> No slots in changer to scan.
> I get this error if there is a tape in the drive, or if they are all in
> their slots.
>

Do you have the mtx package installed?

I would perform the autochanger tests that are defined in the manual:

http://www.bacula.org/en/dev-manual/main/main/Autochanger_Resource.html#SECTION00369

John

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-06 Thread Robert Longfield
yes the tape drive has a barcode scanner. i tried the 'update slots' message
and i got the following error:

Automatically selected Storage: PV-122T
Connecting to Storage daemon PV-122T at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "PV-122T" has 0 slots.
No slots in changer to scan.
I get this error if there is a tape in the drive, or if they are all in
their slots.


> I assume you have a barcode reader on your archive and you also have
> barcode lables on your tapes. In this case you should never label your
> tapes directly. You normally issue the
>
> update slots
>
> command after adding tapes and the aotochanger is done scanning the labels.
>
> Then after that completes issue
>
> label barcodes
>
> command in bconsole and put all tapes into the Scratch pool. Do not
> worry about already labeled tapes being in the list. Bacula will only
> grab and label the tapes that are in the changer that are not in the
> bacula database.
>
> After this completes and bacula needs a tape it will grab it from the
> Scratch pool and move it into the current pool.
>
> John
>
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-06 Thread John Drescher
On Fri, May 6, 2011 at 12:14 PM, Robert Longfield
 wrote:
> I don't believe it has two drives in it. i've removed the second entry from
> bacula-sd as I was running into a problem when I tried to run a job.
>
> I've restarted all the services since removing the pv122T-2 lines from the
> -sd.conf file and when I do a 'run' from bconsole followed by a 'status' on
> "storage" I get the following error:
>
> Device status:
> Autochanger "PV-122T" with devices:
>    "PV-122T-1" (/dev/nst0)
> Device "PV-122T-1" (/dev/nst0) is mounted with:
>     Volume:  test001
>     Pool:    File
>     Media type:  LTO-2
>     Device is BLOCKED waiting to create a volume for:
>    Pool:    File
>    Media type:  LTO-2
>     Drive 0 status unknown.
>     Total Bytes Read=0 Blocks Read=0 Bytes/block=0
>     Positioned at File=0 Block=0
> 
> Used Volume status:
> test001 on device "PV-122T-1" (/dev/nst0)
>     Reader=0 writers=0 devres=1 volinuse=0
> 
>
> The first time it said it needed a volume to be creaded so I used the volume
> command and created test001. Now it seems the device is BLOCKED and needs a
> volume?
>

I assume you have a barcode reader on your archive and you also have
barcode lables on your tapes. In this case you should never label your
tapes directly. You normally issue the

update slots

command after adding tapes and the aotochanger is done scanning the labels.

Then after that completes issue

label barcodes

command in bconsole and put all tapes into the Scratch pool. Do not
worry about already labeled tapes being in the list. Bacula will only
grab and label the tapes that are in the changer that are not in the
bacula database.

After this completes and bacula needs a tape it will grab it from the
Scratch pool and move it into the current pool.

John

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-06 Thread Robert Longfield
I don't believe it has two drives in it. i've removed the second entry from
bacula-sd as I was running into a problem when I tried to run a job.

I've restarted all the services since removing the pv122T-2 lines from the
-sd.conf file and when I do a 'run' from bconsole followed by a 'status' on
"storage" I get the following error:

Device status:
Autochanger "PV-122T" with devices:
   "PV-122T-1" (/dev/nst0)
Device "PV-122T-1" (/dev/nst0) is mounted with:
Volume:  test001
Pool:File
Media type:  LTO-2
Device is BLOCKED waiting to create a volume for:
   Pool:File
   Media type:  LTO-2
Drive 0 status unknown.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0

Used Volume status:
test001 on device "PV-122T-1" (/dev/nst0)
Reader=0 writers=0 devres=1 volinuse=0


The first time it said it needed a volume to be creaded so I used the volume
command and created test001. Now it seems the device is BLOCKED and needs a
volume?

-Rob
On Thu, May 5, 2011 at 2:40 PM, John Drescher  wrote:

> 2011/5/5 Robert Longfield :
> > John,
> >
> > the online guidE I followed should setting up the pv-122t with -1 and -2
> so
> > I can't really give you a reason as to why I have them in my config,
> other
> > than i was told that was the correct way.
> >
>
> Does your  pv-122T have 1 or 2 drives? I am not familiar with that
> particular archive.
>
> John
>
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-05 Thread John Drescher
2011/5/5 Robert Longfield :
> John,
>
> the online guidE I followed should setting up the pv-122t with -1 and -2 so
> I can't really give you a reason as to why I have them in my config, other
> than i was told that was the correct way.
>

Does your  pv-122T have 1 or 2 drives? I am not familiar with that
particular archive.

John

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-05 Thread Robert Longfield
John,

the online guidE I followed should setting up the pv-122t with -1 and -2 so
I can't really give you a reason as to why I have them in my config, other
than i was told that was the correct way.

Greg,

thise changes seem to have worked. Well I am not getting the errors anymore
when i try to run a job. Now I just need to figure out how to porperly load
and mount the appropriate tape and everything will be good. It's always the
small things that get me it seems.

Thanks for the help thus far.
-rob
On Thu, May 5, 2011 at 10:18 AM, Kurzawa, Greg  wrote:

>
>
> I know I sent this to the mailing list and please forgive me for trying
> again but I am really at a loss of what my next step needs to be to get
> backup working.
>
>
>
> A bit on my setup. I am running Debian 6 with a Dell Powervault 122T. I can
> load tapes, and mount the tapes but when I tr y to run a bacup from bconsole
> I get the following errors when I do a 'messages'.
>
>
>
> KITSrv01-sd JobId 9: Fatal error: Device reservation failed for JobId=9:
> KITSrv01-dir JobId 9: Fatal error:
>  Storage daemon didn't accept Device "PV-122T-1" because:
>  3924 Device "PV-122T-1" not in SD Device resources.
>
>
>
> In my bacla-sd.conf I have the following which shows the device name:
> PV-122T-1 and -2
>
>
>
> Autochanger {
>
> Name = PV-122T
>
> Device = PV-122T-1, PV-122T-2
>
> Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
>
> Changer Device = /dev/sg5
>
> }
>
> Device {
>
> Name = PV-122T-1
>
> Drive Index = 0
>
> Media Type = LTO-2
>
> Archive Device = /dev/nst0
>
> AutomaticMount = yes; # when device opened, read it
>
> AlwaysOpen = yes;
>
> RemovableMedia = yes;
>
> RandomAccess = no;
>
> AutoChanger = yes
>
> }
>
> Device {
>
> Name = PV-122T-2
>
> Drive Index = 1
>
> Media Type = LTO-2
>
> Archive Device = /dev/nst0
>
> AutomaticMount = yes; # when device opened, read it
>
> AlwaysOpen = yes;
>
> RemovableMedia = yes;
>
> RandomAccess = no;
>
> AutoChanger = yes
>
> }
>
> In bacla-dir.conf I have the following:
>
>
>
>
>
> JobDefs {
>
>
>
>   Name = "DefaultJob"
>
>   Type = Backup
>
>   Level = Incremental
>
>   Client = KITSrv01-fd
>
>   FileSet = "Full Set"
>
>   Schedule = "WeeklyCycle"
>
> #  Storage = File
>
>   Storage = PV-122T-1
>
>   Messages = Standard
>
>   Pool = File
>
>   Priority = 10
>
>   Write Bootstrap = "/var/lib/bacula/%c.bsr"
>
> My full configs can be seen here: http://www.pastebin.ca/2046880
>
>
>
> Thanks,
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi Robert,
>
>
>
> It looks like your Storage resource in your bacula-dir.conf isn’t set up
> correctly.  You have it pointing to a Device, where it should be pointing to
> the Autochanger.  You also mistyped your Media Type as “VTO-2” instead of
> “LTO-2”.
>
>
>
> Try these changes and let us know if you get different results:
>
>
>
> bacula-dir.conf
>
>
>
> JobDefs {
>
> …
>
> Name = "DefaultJob"
>
> Storage = PV-122T
>
> …
>
> }
>
>
>
> Storage {
>
>   …
>
>   Name = PV-122T
>
>   Device = PV-122T
>
>   Media Type = LTO-2
>
>   …
>
> }
>
>
>
> Greg
>
>
>
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-05 Thread Kurzawa, Greg
 

I know I sent this to the mailing list and please forgive me for trying
again but I am really at a loss of what my next step needs to be to get
backup working.

 

A bit on my setup. I am running Debian 6 with a Dell Powervault 122T. I
can load tapes, and mount the tapes but when I tr y to run a bacup from
bconsole I get the following errors when I do a 'messages'.

 

KITSrv01-sd JobId 9: Fatal error: Device reservation failed for JobId=9:
KITSrv01-dir JobId 9: Fatal error:
 Storage daemon didn't accept Device "PV-122T-1" because:
 3924 Device "PV-122T-1" not in SD Device resources.

 

In my bacla-sd.conf I have the following which shows the device name:
PV-122T-1 and -2

 

Autochanger {

Name = PV-122T

Device = PV-122T-1, PV-122T-2

Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"

Changer Device = /dev/sg5

}

Device {

Name = PV-122T-1

Drive Index = 0

Media Type = LTO-2

Archive Device = /dev/nst0

AutomaticMount = yes; # when device opened, read it

AlwaysOpen = yes;

RemovableMedia = yes;

RandomAccess = no;

AutoChanger = yes

}

Device {

Name = PV-122T-2

Drive Index = 1

Media Type = LTO-2

Archive Device = /dev/nst0

AutomaticMount = yes; # when device opened, read it

AlwaysOpen = yes;

RemovableMedia = yes;

RandomAccess = no;

AutoChanger = yes

}

In bacla-dir.conf I have the following:

 

 

JobDefs {

 

  Name = "DefaultJob"

  Type = Backup

  Level = Incremental

  Client = KITSrv01-fd

  FileSet = "Full Set"

  Schedule = "WeeklyCycle"

#  Storage = File

  Storage = PV-122T-1

  Messages = Standard

  Pool = File

  Priority = 10

  Write Bootstrap = "/var/lib/bacula/%c.bsr"

My full configs can be seen here: http://www.pastebin.ca/2046880

 

Thanks,

 

 

 

 

 

 

Hi Robert,

 

It looks like your Storage resource in your bacula-dir.conf isn't set up
correctly.  You have it pointing to a Device, where it should be
pointing to the Autochanger.  You also mistyped your Media Type as
"VTO-2" instead of "LTO-2".

 

Try these changes and let us know if you get different results:

 

bacula-dir.conf

 

JobDefs {

...

Name = "DefaultJob"

Storage = PV-122T

...

}

 

Storage {

  ...

  Name = PV-122T

  Device = PV-122T

  Media Type = LTO-2

  ...

}

 

Greg

 

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device Error

2011-05-04 Thread John Drescher
2011/5/4 Robert Longfield :
> I know I sent this to the mailing list and please forgive me for trying
> again but I am really at a loss of what my next step needs to be to get
> backup working.
>
> A bit on my setup. I am running Debian 6 with a Dell Powervault 122T. I can
> load tapes, and mount the tapes but when I tr y to run a bacup from bconsole
> I get the following errors when I do a 'messages'.
>
> KITSrv01-sd JobId 9: Fatal error: Device reservation failed for JobId=9:
> KITSrv01-dir JobId 9: Fatal error:
>  Storage daemon didn't accept Device "PV-122T-1" because:
>  3924 Device "PV-122T-1" not in SD Device resources.
>
> In my bacla-sd.conf I have the following which shows the device name:
> PV-122T-1 and -2
>
>
> Autochanger {
> Name = PV-122T
> Device = PV-122T-1, PV-122T-2
> Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
> Changer Device = /dev/sg5
> }
> Device {
> Name = PV-122T-1
> Drive Index = 0
> Media Type = LTO-2
> Archive Device = /dev/nst0
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> }
> Device {
> Name = PV-122T-2
> Drive Index = 1
> Media Type = LTO-2
> Archive Device = /dev/nst0
> AutomaticMount = yes; # when device opened, read it
> AlwaysOpen = yes;
> RemovableMedia = yes;
> RandomAccess = no;
> AutoChanger = yes
> }
>


Not sure if this is the problem but why are PV-122T-1 and PV-122T-2
using the same tape drive?

John

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users