Bacula-users

Re: [Bacula-users] Update slots

2008-12-15 11:12:49
Subject: Re: [Bacula-users] Update slots
From: Massimo Schenone <mschenone AT sorint DOT it>
Date: Mon, 15 Dec 2008 16:44:39 +0100
I guess the "Full" label comes from:

root@splinter # ./mtx-changer /dev/scsi/changer/c3t4d1 list
1:Full
2:Full
3:Full
4:Full
5:Full
6:Full
7:Full
9:Full
10:Full
11:Full
13:Full
14:Full
17:Full
18:Full
19:Full
21:Full
22:Full
23:Full
24:Full
15:

Opening the mtx-changer script (bacula 2.2.6)..
..
#      list               list Volume names (requires barcode reader) <- I don't have one..is it necessary?
..
      ${MTX} -f $ctl status >${TMPFILE}
      rtn=$?
      cat ${TMPFILE} | grep " Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//" <- this stament is not working because the mtx status output is

root@splinter # /opt/csw/sbin/mtx -f /dev/scsi/changer/c3t4d1 status
  Storage Changer /dev/scsi/changer/c3t4d1:1 Drives, 24 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 15 Loaded)
      Storage Element 1:Full
      Storage Element 2:Full
      Storage Element 3:Full
      Storage Element 4:Full
      Storage Element 5:Full
      Storage Element 6:Full
      Storage Element 7:Full
      Storage Element 8:Empty
      Storage Element 9:Full
      Storage Element 10:Full
      Storage Element 11:Full
      Storage Element 12:Empty
      Storage Element 13:Full
      Storage Element 14:Full
      Storage Element 15:Empty
      Storage Element 16:Empty
      Storage Element 17:Full
      Storage Element 18:Full
      Storage Element 19:Full
      Storage Element 20:Empty
      Storage Element 21:Full
      Storage Element 22:Full
      Storage Element 23:Full
      Storage Element 24:Full

Thanks,
Massimo

----- Original Message -----
From: John Drescher <drescherjm AT gmail DOT com>
Date: Sunday, December 14, 2008 8:59 pm
Subject: Re: [Bacula-users] Update slots
To: Massimo Schenone <mschenone AT sorint DOT it>, bacula-users AT lists.sf DOT net

> On Sun, Dec 14, 2008 at 2:24 PM, Massimo Schenone
> <mschenone AT sorint DOT it> wrote:
> > Hi all,
> > when I get an unexpected behaviour when using the command
> update slots:
> >
> > *update slots
> > Automatically selected Storage: SunSTK-C2
> > Connecting to Storage daemon SunSTK-C2 at splinter:9103 ...
> > Connecting to Storage daemon SunSTK-C2 at splinter:9103 ...
> > 3306 Issuing autochanger "slots" command.
> > Device "Drive-0" has 24 slots.
> > Connecting to Storage daemon SunSTK-C2 at splinter:9103 ...
> > 3306 Issuing autochanger "list" command.
> > Volume "Full" not found in catalog. Slot=1 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=2 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=3 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=4 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=5 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=6 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=7 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=10 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=11 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=13 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=14 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=15 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=17 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=18 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=19 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=21 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=22 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=23 InChanger set to zero.
> > Volume "Full" not found in catalog. Slot=24 InChanger set to zero.
> > *list media
> > Pool: Default
> > +---------+------------+-----------+---------+----------------
> +----------+--------------+---------+------+-----------+---------
> --+---------------------+
> > | MediaId | VolumeName | VolStatus | Enabled |
> VolBytes       | VolFiles
> > | VolRetention | Recycle | Slot | InChanger | MediaType |
> LastWritten> |
> > +---------+------------+-----------+---------+----------------
> +----------+--------------+---------+------+-----------+---------
> --+---------------------+
> > |       1 |
> VOL0001    | Append   
> |       1 | 53,396,066,304
> |      127
> > |   31,536,000 |      
> 1 |    1
> |         0 |
> LTO3      | 2008-12-04
> > 23:10:22 |
> > |       2 |
> VOL0002    | Append   
> |       1
> |              0 |        0
> > |   31,536,000 |      
> 1 |    2
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       3 |
> VOL0003    | Append   
> |       1
> |              0 |        0
> > |   31,536,000 |      
> 1 |    3
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       4 |
> VOL0004    | Append   
> |       1
> |              0 |        0
> > |   31,536,000 |      
> 1 |    4
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       5 |
> VOL0005    | Append   
> |       1
> |         64,512
> |        0
> > |   31,536,000 |      
> 1 |    5
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       6 |
> VOL0006    | Append   
> |       1
> |         64,512
> |        0
> > |   31,536,000 |      
> 1 |    6
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       7 |
> VOL0007    | Append   
> |       1
> |         64,512
> |        0
> > |   31,536,000 |      
> 1 |    7
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |       8 |
> VOL0008    | Append   
> |       1 | 50,700,238,848
> |       86
> > |   31,536,000 |      
> 1 |    9
> |         0 |
> LTO3      | 2008-12-14
> > 19:11:21 |
> > |       9 |
> VOL0009    | Append   
> |       1
> |         64,512
> |        0
> > |   31,536,000 |      
> 1 |   10
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > |      10 | VOL0010   
> | Append    |      
> 1 |         64,512
> |        0
> > |   31,536,000 |      
> 1 |   11
> |         0 |
> LTO3      | 0000-00-00
> > 00:00:00 |
> > +---------+------------+-----------+---------+----------------
> +----------+--------------+---------+------+-----------+---------
> --+---------------------+
> > Pool: Scratch
> > No results to list.
> >
> > bacula is looking for "Full" volume... it's reading VolStatus
> but why?
> > Thanks a lot!!
> > M
>
> Was this working in the past? It looks like the grabbing of the tape
> name from the mtx inventory command is not working anymore. Did you
> upgrade bacula or mtx recently?
>
> John
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>