推荐给好友 上一篇 | 下一篇

Integrating the Tape Library with an existing Bacula installation

BSD爱好者乐园}(Q)w8~-[&`d!e

In a recent article, I wrote about how to setup the various tools, such as mtx-changer, to allow your tape library to work with Bacula. In this article, I'll show how I integrated this tape library into my existing Bacula configuration.BSD爱好者乐园2r)C;v3ncY/q

+j s+V~R7{ qGiven the previous work, I will assume you have mtx-changer working will with your tape library.BSD爱好者乐园6] kz?Q_hbr
 
r!{w+d6L R$eC 
`FH|Q;a2{)vS4cThe configuration
mlJ3z p"UHere are a few extracts from my bacula-dir.conf file which relate to the tape library:BSD爱好者乐园 u Pv'DQ+HH-Q2p/o

BSD爱好者乐园F$IJ `x6J;d

# Definition of DLT tape storage device
9S+P'x+It-H GStorage {BSD爱好者乐园:l1a)}0} WTl
  Name       = DigitalTapeLibrary
~f`3XS6yPe g  Address    = bacula.example.orgBSD爱好者乐园'D x3@$s"VY0Z9E
  SDPort     = 9103
J6Q!o3|`+~P&@`  Password   = "VeryComplexPassword"

rq4T Hc-\-O

:p];_`!b8f-P;LzW  Device     = "DEC TL800"BSD爱好者乐园@,N8~6B~
  Media Type = DLT
?HN0M&^ub B3~z}

(O1|/lf` V

?c+g| GSAnd from bacula-sd.conf:BSD爱好者乐园5Y~7Sa|

BSD爱好者乐园O;a1zB&q(BeF1p;Y6u

Autochanger {
#^-ol}#n  Name            = "DEC TL800"BSD爱好者乐园TKDAc5w O:[6E8h3a
  Device          = "DEC TZ89"
1T1ot7K5T5V:tOx m{5]  Description     = Digital DLT MiniLibrary - TL891BSD爱好者乐园:G em4c Rmq
  Changer Device  = /dev/pass4BSD爱好者乐园7I%Slb iqrA)e
  Changer Command = "/usr/local/sbin/mtx-changer %c %o %S %a %d"
)x;?{H7j|}BSD爱好者乐园8zm9Zuf+u

BSD爱好者乐园 YQc?[Ih

Device {
tf2vT GQ2_X  Name                    = "DEC TZ89"
M*t8UVFWg  Description             = Digital DLT MiniLibrary - TL891
7c@:`$lgHG$dri-Z  Media Type              = DLT
yq.TI;@9u9q(M  Archive Device          = /dev/nsa1

#P$v5A \(g~1S$PBSD爱好者乐园bjGWP+k|Y

  Autochanger             = yes
KA&A!_tAw  Drive Index             = 0

)z2gF/iT)B;t3~

V:j^/cgSW&D R  Offline On Unmount      = noBSD爱好者乐园O.hY(D#c(A2a2dr%j8U
  Hardware End of Medium  = no
0D+_`HcC  BSF at EOM              = yesBSD爱好者乐园4{:_ a Tp QO!T
  Backward Space Record   = noBSD爱好者乐园9F L6c,|-E
  Fast Forward Space File = noBSD爱好者乐园g3Q5bq"p)F m
  TWO EOF                 = yesBSD爱好者乐园tq8p V5Ob od

BSD爱好者乐园np/t6}2@]

  Spool Directory         = /home/bacula/spooling-libBSD爱好者乐园9^9\]&l3c W)]$Q
  Maximum Spool Size      = 11759496889BSD爱好者乐园?\e;zWn
  Maximum Job Spool Size  = 11759496889    # 10GB
YwN0Ww$q1E}

dF}*X#[BSD爱好者乐园1s|QQWN_,G

 BSD爱好者乐园!DR3E5]|.FCaqf
 
%P.X PP5YBLabelling the tapes
/fo6O4S;N4C_6YHere is the command to label my barcodesBSD爱好者乐园7|~ BPHm j

BSD爱好者乐园3i*S8vp%h-~.z^&gl}

*label barcodes storage="DigitalTapeLibrary"
#C+G]s{)vN"\Automatically selected Catalog: MyCatalog
y$A,? l|d*PUsing Catalog "MyCatalog"BSD爱好者乐园"K+qZm*n;j Zd9Hn
Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ...
hp*_m S%t#N3306 Issuing autochanger "slots" command.
FZ-k%W]'VWDevice "DEC TL800" has 0 slots.
O G1J!`n2rKee"[No slots in changer to scan.BSD爱好者乐园 a+l.X8c5_A
*BSD爱好者乐园?#~2w"@ SO \ Bf/Y+[

0H i AFZ)p c%l&c2MEh? What's that?BSD爱好者乐园R H}zp{@
 BSD爱好者乐园}xiv-O
 BSD爱好者乐园*Z$kk4uG`d0H
Fixing permission issues
4V0XD:b0OOh oh! My configuration was wrong. I was using the wrong devices. My configuration (correct as show above) was incorrctly using /dev/pass1, instead of the real device /dev/pass4. This can be seen here:

0e%F,xo3TBSD爱好者乐园.]fX-S1{hc'gZ*`

$ sudo camcontrol devlistBSD爱好者乐园.R/}|Rc/^
Password:BSD爱好者乐园KO8[D!C,K
<QUANTUM DLT7000 1E48>             at scbus0 target 5 lun 0 (sa0,pass0)
d/G8|1TE t T[ r1C.i<DEC TL800    (C) DEC 0326>        at scbus1 target 0 lun 0 (pass4,ch0)BSD爱好者乐园X8^JHFC8P6`1OC'L
<DEC TZ89     (C) DEC 1837>        at scbus1 target 5 lun 0 (pass3,sa1)BSD爱好者乐园)Ax(F(EhEy_[
<HL-DT-ST DVDRAM GSA-H10A JL02>    at scbus2 target 0 lun 0 (cd0,pass1)BSD爱好者乐园6W-^$i9b$p;b"V'`r W
<USB 2.0 Storage Device 0100>      at scbus5 target 0 lun 0 (da0,pass2)

U#~9M0Ep.E

0N4T a9Ie n#a:zch0 is the line in question.

9J#i/d+{L^_6i9MWi;aBSD爱好者乐园_.t1L"KD{H

After correcting the entry in bacula-sd.conf and restarting bacula-sd, I tried again. But, you should know, that this problem will come back to haunt me. I do know that if the external tape drive is conntected at boot time, the tape changer is /dev/pass1. If it connected after boot, it gets /dev/pass4. I want to fix that. They need to be specific devices for this to work.

:m6kt,|&QBSD爱好者乐园w`y q!Soi5t.J6z

$ sudo /usr/local/etc/rc.d/bacula-sd restart
3w3NL'svBStopping bacula_sd.
l|2N Wym_vmWaiting for PIDS: 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621,
;_LH9t vp6`A@t 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621,BSD爱好者乐园l4P)\$Sd z3B1n-[h
 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621,BSD爱好者乐园1d/p H%Q*UT%H"U
 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621,BSD爱好者乐园!v.G.JoL?k1q1Z
 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621,
Cy!S5zZ#i$s 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621, 46621.
'cGY/\p0}e2kStarting bacula_sd.

^#wgk4j N:t p ^ lL

%_B C"WB-I A1c?All this waiting is for the tape to rewind and unmount. After making the change, I tried again:

E+c#M-`Si

EF,y-Wf ]5b^*label barcodes storage="DigitalTapeLibrary"
^Prb @;HP-rConnecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ...BSD爱好者乐园M;Cjozc
3306 Issuing autochanger "slots" command.BSD爱好者乐园 mI]w p
Device "DEC TL800" has 0 slots.
KQ$Wk:f8Uyi FNo slots in changer to scan.BSD爱好者乐园%tk"WQGW} x4gK

P^"kBt7E/~W5sStill no good. OK, it must be something else. I rechecked the configuration and found it to be correct. The permissions on mtx-changer were correct:BSD爱好者乐园?,` Y6R4y!dSa

BSD爱好者乐园"OQL1G nRwv

$ ls -l /usr/local/sbin/mtx-changerBSD爱好者乐园 a J2m:z'j8D1D~/Y5C,Y
-rwxr-xr--  1 root  operator  5221 Oct 30 00:52 /usr/local/sbin/mtx-changerBSD爱好者乐园#hn1c `|he#t

BSD爱好者乐园8U$tP B T\ }%U K

Is Bacula in the operator group?BSD爱好者乐园"X"j0yYJm Q&@(g

!o zByr"QY$ id baculaBSD爱好者乐园5\:QdKgq!q
uid=910(bacula) gid=910(bacula) groups=910(bacula),5(operator)BSD爱好者乐园7}c[*B~.l V

BSD爱好者乐园:x{,X\7r

Yes, so Bacula can run mtx-changer. OK, what about the tape changer?BSD爱好者乐园 I&_.U&rQ$I^

$b.l9ica4F$ ls -l /dev/pass4
P.w/Ij Hcrw-------  1 root  operator    0, 171 Jan 17 15:19 /dev/pass4

kB:UpP

XsZVe"O2[4MFHah! There's the issue. No operator permissions on that device. On FreeBSD, you can set these permissions via configuration. I added the following line to /etc/devfs.conf:BSD爱好者乐园I} M:X!Uhj

BSD爱好者乐园$r7G Y%bq Yd

perm    pass4   0660BSD爱好者乐园S X%FY)CW#} Z ]

0]f}*l'y*pThen I restarted devfs, and rechecked the permissions:BSD爱好者乐园Dva$@Z.h3LgV TS

BSD爱好者乐园5_ sv8m)X

$ /etc/rc.d/devfs restart
1p5]PT Tu$ ls -l /dev/pass4BSD爱好者乐园;Ah(j/E"P'E2M
crw-rw----  1 root  operator    0, 171 Jan 17 15:19 /dev/pass4

e:jG!wiC

+m{u7OeWlfAhh good! Progress. Now, let us try the command correctly, using su to run the command as the bacula user:

H(w4A4ULZzhBSD爱好者乐园 \#A5[ww-F5ka

# su -m bacula -c '/usr/local/sbin/mtx-changer /dev/pass4 slots'BSD爱好者乐园*Tq N"AdS cX!P
touch: /var/db/bacula/mtx.log: Permission deniedBSD爱好者乐园)?0yDQs:Q(Q r7rv{
/usr/local/sbin/mtx-changer: cannot create /var/db/bacula/mtx.log: Permission de                      niedBSD爱好者乐园2Z9t;o m:BH"^$L
/usr/local/sbin/mtx-changer: cannot create /var/db/bacula/mtx.log: Permission de                      niedBSD爱好者乐园7r)g3C4m2A ie
10
z#_5Ycz)c# ls -l /var/db/bacula/mtx.log
}.qA.g,W-rw-r--r--  1 root  bacula  2480 Jan 17 17:53 /var/db/bacula/mtx.log

&C"`{AMK,M!o2jBSD爱好者乐园@3\zv ^iJw

Now we see the correct number of slots, and another permissions issue comes to light. This one is easily fixed with:

,`sv*Sh!n K y

Hse i(U7}0M@!gEx# chmod g+w /var/db/bacula/mtx.log
T mDMw3~%OY(wj0o# ls -l /var/db/bacula/mtx.logBSD爱好者乐园3DI*|Ol t
-rw-rw-r--  1 root  bacula  2480 Jan 17 17:53 /var/db/bacula/mtx.logBSD爱好者乐园1xk3n v\D0P,m
# su -m bacula -c '/usr/local/sbin/mtx-changer /dev/pass4 slots'
'x)v-D7V1l1d3j10

CA:R X^BSD爱好者乐园;pA4cf|

Now, let's try bconsole again:

cz,zn^MbcZ

l kCZ#L%B7Lx*label barcodes storage="DigitalTapeLibrary"BSD爱好者乐园9El[)[ ow8\
Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ...
KE:m-dX4HN-_3306 Issuing autochanger "slots" command.BSD爱好者乐园o9gB1iO[7|d
Device "DEC TL800" has 10 slots.BSD爱好者乐园y+{!eGy+O/H}
Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ...BSD爱好者乐园1eV*zT+M8H
3306 Issuing autochanger "list" command.BSD爱好者乐园Jok$WaC2| p
The following Volumes will be labeled:BSD爱好者乐园^MDg#O'u
Slot  VolumeBSD爱好者乐园S\9x0ee(SSA;wj
==============BSD爱好者乐园8pDNN#E&g/gO
   1  DGG472BSD爱好者乐园foH.R]j.]K R,D
   2  DGG440BSD爱好者乐园n t S1d5WMz'i
   3  DGG443
S,Y [waT   4  DGG467
[+Tt]9I.JJ1J   5  DGG469
,v Y5qP"d-Y3^d$W   6  DGG442
1H1} Mr@L3o   7  DGG457BSD爱好者乐园W1X%mP+c:P
   8  DGG441
.g;zpYJ   9  DGG471BSD爱好者乐园vS9d/}/z#ot,LH D{
  10  DGG465BSD爱好者乐园'H$TLyDn j$}%N b&h$f-^
Do you want to label these Volumes? (yes|no):BSD爱好者乐园z}y O Xg0u#M

BSD爱好者乐园QLAd4o3~0x

Good. Very good. Let us proceed. My replies are in boldBSD爱好者乐园 gg f)hg`zZ

BSD爱好者乐园%aX R!`#DaA

Do you want to label these Volumes? (yes|no): yes
c:`N Sc7Y%vBsVDefined Pools:BSD爱好者乐园.C3^|9b$w
     1: Default
~2K `/dh6{F     2: FilePoolBSD爱好者乐园 Ss,D H-d*c y
Select the Pool (1-2): 1
.M&Mp+["\1E-j3aMedia record for Slot 1 Volume "DGG472" already exists.
J*v(w V"_/JConnecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ...BSD爱好者乐园HiR{U dCO
Sending label command for Volume "DGG440" Slot 2 ...
w I$p8P0j3301 Issuing autochanger "loaded? drive 0" command.
F co{Bg3302 Autochanger "loaded? drive 0", result: nothing loaded.
8o0kWWW?AXl3304 Issuing autochanger "load slot 2, drive 0" command.
:N2Q_P [6G-h{5_+n3305 Autochanger "load slot 2, drive 0", status is OK.BSD爱好者乐园APD~&ET J
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG440" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园"av'^"Hs:P&o H0n@'m k
Catalog record for Volume "DGG440", Slot 2  successfully created.
P~U){#[+o Z$P4EMedia record for Slot 3 Volume "DGG443" already exists.
;~`d7]4d$iV gSending label command for Volume "DGG467" Slot 4 ...
,D3y5u,uW3307 Issuing autochanger "unload slot 2, drive 0" command.BSD爱好者乐园AA5wTUV
3304 Issuing autochanger "load slot 4, drive 0" command.
D uLM3q,n3305 Autochanger "load slot 4, drive 0", status is OK.
^UN7Nc]H0N3000 OK label. VolBytes=64512 DVD=0 Volume="DGG467" Device="DEC TZ89" (/dev/nsa1)
$o tJ2ijhcrCatalog record for Volume "DGG467", Slot 4  successfully created.
1KzE;Kzm {,YSending label command for Volume "DGG469" Slot 5 ...
&Gk@f4Eb{0w]3307 Issuing autochanger "unload slot 4, drive 0" command.
;yU3qS3a2@3304 Issuing autochanger "load slot 5, drive 0" command.
0d rq K9X0R$K a;n5U3305 Autochanger "load slot 5, drive 0", status is OK.BSD爱好者乐园QSg)d }W%c
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG469" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园] J5aKh)Bf
Catalog record for Volume "DGG469", Slot 5  successfully created.BSD爱好者乐园(DA9h-Y!Sa\
Sending label command for Volume "DGG442" Slot 6 ...BSD爱好者乐园G7DD*V,f5h(X
3307 Issuing autochanger "unload slot 5, drive 0" command.
#L\5z'n#l KI M/B3304 Issuing autochanger "load slot 6, drive 0" command.
J-j8p;T"Q"A7XI0R,b3305 Autochanger "load slot 6, drive 0", status is OK.BSD爱好者乐园0Lp;sNU6|T.X,[8S
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG442" Device="DEC TZ89" (/dev/nsa1)
og-W$w2n-W'q.g6UCatalog record for Volume "DGG442", Slot 6  successfully created.
\ cp-M fSending label command for Volume "DGG457" Slot 7 ...BSD爱好者乐园 u&N5g&m6c
3307 Issuing autochanger "unload slot 6, drive 0" command.
lcl ['k"}}?4gIR3304 Issuing autochanger "load slot 7, drive 0" command.BSD爱好者乐园'Xfo:a:MV)Ve
3305 Autochanger "load slot 7, drive 0", status is OK.BSD爱好者乐园(}S5l~ }.v;g6i
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG457" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园 q(b#S#b4fpB%I
Catalog record for Volume "DGG457", Slot 7  successfully created.BSD爱好者乐园;R Q1A$qq.G C
Sending label command for Volume "DGG441" Slot 8 ...BSD爱好者乐园[(E k7G6f BfJo {M}
3307 Issuing autochanger "unload slot 7, drive 0" command.
O+d/d$i M8Qf:a3304 Issuing autochanger "load slot 8, drive 0" command.
M'[6Zwn Y f3305 Autochanger "load slot 8, drive 0", status is OK.
~ `/Meh3000 OK label. VolBytes=64512 DVD=0 Volume="DGG441" Device="DEC TZ89" (/dev/nsa1)
&wE$n P3{ g6F!`]Catalog record for Volume "DGG441", Slot 8  successfully created.BSD爱好者乐园C7v*r.E"q$S%l#Z
Sending label command for Volume "DGG471" Slot 9 ...
eb+[3a8zzV&bJ:b3307 Issuing autochanger "unload slot 8, drive 0" command.BSD爱好者乐园*^9\B S5bg0ZF
3304 Issuing autochanger "load slot 9, drive 0" command.BSD爱好者乐园FssM q |!f&e(A
3305 Autochanger "load slot 9, drive 0", status is OK.
!g5yEV @.X D3000 OK label. VolBytes=64512 DVD=0 Volume="DGG471" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园sL:e7qT(?
Catalog record for Volume "DGG471", Slot 9  successfully created.BSD爱好者乐园\6i'w%_ yv4?;iA
Media record for Slot 10 Volume "DGG465" already exists.BSD爱好者乐园P5XGT9V/r9?*iyc
*BSD爱好者乐园4{x*usi:y1F

d5~ P/y(u tOh. Well. That's a problem. All the volumes already have media records for them. That is, the Catalog already contains a record with that label. OK, easily fixed. Delete them. BSD爱好者乐园pc3pa/} U*c7Ge
 
i&~5dJ%w(e0a M\KDeleting Volumes
N LO M4dr t\;NeI have ten Volumes to delete from my Catalog.

:y M S~+H.R6ao-l

.Q/S+~Ty!p+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+BSD爱好者乐园a m*K#o6e0{ s0l3s
| mediaid | volumename       | volstatus | enabled | volbytes       | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten         |BSD爱好者乐园4xQ1CI;Jc%n
+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
?;f,f&Yv8I;o+L|     248 | DGG472           | Used      |       1 |         64,512 |        0 |   31,536,000 |       1 |    1 |         1 | DLT       |                     |
:o4` { T&Ti'\O|     249 | DGG443           | Used      |       1 |         64,512 |        0 |   31,536,000 |       1 |    3 |         1 | DLT       |                     |
ag5_{Cglc7E|     250 | DGG465           | Used      |       1 |         64,512 |        0 |   31,536,000 |       1 |   10 |         1 | DLT       |                     |BSD爱好者乐园wko"^o1DR]^8`
|     251 | DGG440           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    2 |         1 | DLT       |                     |BSD爱好者乐园:_Q,n8j:d_
|     252 | DGG467           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    4 |         1 | DLT       |                     |BSD爱好者乐园 VTc8a'X;\1\
|     253 | DGG469           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    5 |         1 | DLT       |                     |
SDwC#V1V|     254 | DGG442           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    6 |         1 | DLT       |                     |BSD爱好者乐园 ^2~%If!o} U
|     255 | DGG457           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    7 |         1 | DLT       |                     |BSD爱好者乐园Ih r0PP&|
|     256 | DGG441           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    8 |         1 | DLT       |                     |
qKpd9y(K9g0z|     257 | DGG471           | Append    |       1 |         64,512 |        0 |   31,536,000 |       1 |    9 |         1 | DLT       |                     |BSD爱好者乐园wm6Z[}E
+---------+------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+

:F$s$X)\(B5aQ,G2K"q6e

1KYK4E!c;AI can do one delete, manually, like this:

8N8g+W2Y5s

M5XJtE0a8TXL*delete volume="DGG472"BSD爱好者乐园6[Q&U+T:Qxv-S
Automatically selected Catalog: MyCatalogBSD爱好者乐园7N5Iw%D6R$kf'V\
Using Catalog "MyCatalog"

(sJ*|2O B K*zq

*g(T&M2M Y `&_2{This command will delete volume DGG472BSD爱好者乐园I5m?U l$bH
and all Jobs saved on that volume from the Catalog
2ah:rIOuDc#K3]+bAre you sure you want to delete Volume "DGG472"? (yes/no): yesBSD爱好者乐园&A9]C'foAQ
*

5RMT7c8tYBSD爱好者乐园q*k,l4jLw

But you can reduce typing by altering the original command, by putting yes into the line.BSD爱好者乐园J;YH2w R em2x

BSD爱好者乐园:IV*SA5a/T)B3} _

*label barcodesBSD爱好者乐园h$\K&is,G
The defined Storage resources are:
2C#M q`*iL6f,Es!Q     1: File
%q1Pj@,XYk:Lf     2: FileRemote
2j#D|I7I     3: FileRemoteTLS
M1AxfUj Eh     4: DLTBSD爱好者乐园`P2J%oRh7?
     5: DigitalTapeLibrary
&P7[h-Jm@%T     6: DLTRemoteBSD爱好者乐园:Wjt WS
     7: DLTRemoteTLS
'q"z r!D9m _%q?)f5tSelect Storage resource (1-7): 5
+x ?m,}8R+?Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ..                            .BSD爱好者乐园.G}5F_)b5n\'A
3306 Issuing autochanger "slots" command.BSD爱好者乐园7HUq'}/h
Device "DEC TL800" has 10 slots.
B,S^`*r$u O+P"q H7?Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ..                            .BSD爱好者乐园!t%FH^1x&C?1i;ET
3306 Issuing autochanger "list" command.BSD爱好者乐园[k(l:D5~P x3I
The following Volumes will be labeled:
A!oyKev;z} ^4W6T'cSlot  Volume
2Fv1yn ~,M.j j Z9@==============
Xw#x4G [ZI&D   1  DGG472BSD爱好者乐园n(]d m4^.d rU
   2  DGG440BSD爱好者乐园0y&d.}'eB$b_ p
   3  DGG443BSD爱好者乐园V-g ~!EE0Fp \4Sx^f
   4  DGG467BSD爱好者乐园(Y4M&SxuY&X
   5  DGG469BSD爱好者乐园vw h cS
   6  DGG442BSD爱好者乐园 z8Q zet2L3u
   7  DGG457BSD爱好者乐园nV(Ja4Clh
   8  DGG441
Z-y0a2mp   9  DGG471BSD爱好者乐园2\7c&q!f A yL1?
  10  DGG465
f/K6@ Ga;s'p8I]lDo you want to label these Volumes? (yes|no): yesBSD爱好者乐园aZ8z k5q
Defined Pools:
M~j%xE@jn     1: Default
(@ yN:G;vxW6o;z     2: FilePool
*J @*s|m&K4_Select the Pool (1-2): 1BSD爱好者乐园3F7m$l)G#z
Connecting to Storage daemon DigitalTapeLibrary at bacula.unixathome.org:9103 ..                            .BSD爱好者乐园at:@0ii ~
Sending label command for Volume "DGG472" Slot 1 ...
;?K&Fo;{6C i3301 Issuing autochanger "loaded? drive 0" command.BSD爱好者乐园V L#j7TKz8OQ_io
3302 Autochanger "loaded? drive 0", result: nothing loaded.BSD爱好者乐园&Y [&j W8X5nZ]u4i7p
3304 Issuing autochanger "load slot 1, drive 0" command.
w B}-lJ,I R k3305 Autochanger "load slot 1, drive 0", status is OK.
Zf RHR3000 OK label. VolBytes=64512 DVD=0 Volume="DGG472" Device="DEC TZ89" (/dev/nsa1                            )BSD爱好者乐园v Ze/N#y['ij
Catalog record for Volume "DGG472", Slot 1  successfully created.BSD爱好者乐园'a!_;h6JtEg
Sending label command for Volume "DGG440" Slot 2 ...
3r``(TJ8q,C7O-\3307 Issuing autochanger "unload slot 1, drive 0" command.
LZ~1_*R ]3304 Issuing autochanger "load slot 2, drive 0" command.BSD爱好者乐园x/Uov+V;fZBE
3305 Autochanger "load slot 2, drive 0", status is OK.BSD爱好者乐园 sr2QvTH;IN
3920 Cannot label Volume because it is already labeled: "DGG440"BSD爱好者乐园O|+gi%C
Label command failed for Volume DGG440.
j1ik$XLwzQ&~G"aSending label command for Volume "DGG443" Slot 3 ...BSD爱好者乐园1Q8G;g"N.uj1F:z
3307 Issuing autochanger "unload slot 2, drive 0" command.BSD爱好者乐园6zJ)G+x.sBfjV BZA
3304 Issuing autochanger "load slot 3, drive 0" command.
.UKN2}Yl \ sYy3305 Autochanger "load slot 3, drive 0", status is OK.BSD爱好者乐园nr2@%] c*r q
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG443" Device="DEC TZ89" (/dev/nsa1)
^7oTv&m*s"MjCatalog record for Volume "DGG443", Slot 3  successfully created.
2]Z*y N2~5TSending label command for Volume "DGG467" Slot 4 ...BSD爱好者乐园2bLn(oC-z7O
3307 Issuing autochanger "unload slot 3, drive 0" command.BSD爱好者乐园0rgDSH(}D
3304 Issuing autochanger "load slot 4, drive 0" command.
|os hb w3305 Autochanger "load slot 4, drive 0", status is OK.BSD爱好者乐园flb S6x
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG467" Device="DEC TZ89" (/dev/nsa1)
d}6g$G)[Catalog record for Volume "DGG467", Slot 4  successfully created.BSD爱好者乐园,D}lT5Y:[&v4f
Sending label command for Volume "DGG469" Slot 5 ...BSD爱好者乐园/gt+t0y8q4m3heT
3307 Issuing autochanger "unload slot 4, drive 0" command.
.UFGr jm2JF5S8B,^"o3304 Issuing autochanger "load slot 5, drive 0" command.
)WqD!`:Z8t3p(|3305 Autochanger "load slot 5, drive 0", status is OK.
(q6FU? me1Af3000 OK label. VolBytes=64512 DVD=0 Volume="DGG469" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园yuKz0jp[#Z*FS
Catalog record for Volume "DGG469", Slot 5  successfully created.
3op6@"KSSSending label command for Volume "DGG442" Slot 6 ...BSD爱好者乐园q#YD:o$x|/@ tH
3307 Issuing autochanger "unload slot 5, drive 0" command.BSD爱好者乐园 h5DN#}Fi
3304 Issuing autochanger "load slot 6, drive 0" command.BSD爱好者乐园)j(r%vKS;w;s
3305 Autochanger "load slot 6, drive 0", status is OK.
z0Z|_j2d JiWj(ok9`3000 OK label. VolBytes=64512 DVD=0 Volume="DGG442" Device="DEC TZ89" (/dev/nsa1)BSD爱好者乐园 }M5n8_"u M"B
Catalog record for Volume "DGG442", Slot 6  successfully created.BSD爱好者乐园.I kr[2w
Sending label command for Volume "DGG457" Slot 7 ...BSD爱好者乐园I(Sh(S&Z#p[
3307 Issuing autochanger "unload slot 6, drive 0" command.BSD爱好者乐园1_$Xml(i6\
3304 Issuing autochanger "load slot 7, drive 0" command.BSD爱好者乐园)ju A{)q;a
3305 Autochanger "load slot 7, drive 0", status is OK.BSD爱好者乐园(vL Z/z:n p[k;q\
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG457" Device="DEC TZ89" (/dev/nsa1)
|1vP'dwa ^DCatalog record for Volume "DGG457", Slot 7  successfully created.BSD爱好者乐园hU9tE/y!Sc G
Sending label command for Volume "DGG441" Slot 8 ...BSD爱好者乐园Rot[`xzs.IOG
3307 Issuing autochanger "unload slot 7, drive 0" command.BSD爱好者乐园VRo%\xCP%n
3304 Issuing autochanger "load slot 8, drive 0" command.BSD爱好者乐园(g!\f+d _9f]3t
3305 Autochanger "load slot 8, drive 0", status is OK.BSD爱好者乐园5x&eszjoMp
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG441" Device="DEC TZ89" (/dev/nsa1)
S7U]yI3oCatalog record for Volume "DGG441", Slot 8  successfully created.
^y,DD9Sa(b}Sending label command for Volume "DGG471" Slot 9 ...BSD爱好者乐园 sIF9O#|,F } _*k
3307 Issuing autochanger "unload slot 8, drive 0" command.
9`fpJ)Q \X3304 Issuing autochanger "load slot 9, drive 0" command.BSD爱好者乐园n"w:g Jt/]4P ~
3305 Autochanger "load slot 9, drive 0", status is OK.BSD爱好者乐园!SZe7~]:u0K'M_
3000 OK label. VolBytes=64512 DVD=0 Volume="DGG471" Device="DEC TZ89" (/dev/nsa1)
dI#^!['K\Catalog record for Volume "DGG471", Slot 9  successfully created.BSD爱好者乐园3]2tHM,Nd,D"P{1f
Sending label command for Volume "DGG465" Slot 10 ...BSD爱好者乐园5eOmh E%]}QK
3307 Issuing autochanger "unload slot 9, drive 0" command.
9N#ciB7W(G!}Q3T@c3304 Issuing autochanger "load slot 10, drive 0" command.
%z0`n0`'O3305 Autochanger "load slot 10, drive 0", status is OK.
6P1l/V5NN4Qwd9f3000 OK label. VolBytes=64512 DVD=0 Volume="DGG465" Device="DEC TZ89" (/dev/nsa1)
w%ha^+hb,Uu@5M8Q7YCatalog record for Volume "DGG465", Slot 10  successfully created.BSD爱好者乐园^1] E a@{
*

"x5y9q(s#JSiQ7D-Z|~#UBSD爱好者乐园&rP}u(S:mu J

Phew. That's the tapes labelled.BSD爱好者乐园O%CX"Y l.pWDw
 
l4S,Y'N Sv cU BSD爱好者乐园 O"XzA^+c%w9VS
Done, but not finishedBSD爱好者乐园 tHG.X? ?$I{!g.iB
There are still a few things to sort out:

z:ZcS'}1b#slEo

}8K.h%pK7_Y)F8I `ensuring the devices are always the same regardless of whether they are att at boot time.
RHP d r'V+Wamaking sure Bacula uses sa0 unless I tell it to use sa1. I don't want the tape library used unless I'm away
6M*| n*bW OH&{5VQverify that /boot/devices.hints contains the rights stuff to do the above
S&KOsz(iAchieving these goals won't be done today. So they will be left for a future article. Enjoy.

!R0_`rA]5e因为使用范围的限制,BSD方面文章更新速度不快,站长会坚持每天更新博客,欢迎访问!
[版权声明]BSD爱好者乐园站内文章,如来源不是互联网,则均系原创或翻译之作,可随意转载,或以此为基础进行演译,但务必以链接形式注明原始出处和作者信息,否则属于侵权行为。另对本站转载他处文章,俱有说明,如有侵权请联系本人,本人将会在第一时间删除侵权文章。
TAG: library Tape Library
 

评分:0

我来说两句

seccode