VTLにて用意した8巻オートローダーにてBaculaでの利用方法を記す

目下の情勢は

[root@director ~]# mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
      Storage Element 1:Full :VolumeTag=EM0001L6
      Storage Element 2:Full :VolumeTag=EM0002L6
      Storage Element 3:Full :VolumeTag=EM0003L6
      Storage Element 4:Full :VolumeTag=EM0004L6
      Storage Element 5:Full :VolumeTag=EM0005L6
      Storage Element 6:Full :VolumeTag=EM0006L6
      Storage Element 7:Full :VolumeTag=EM0007L6
      Storage Element 8:Full :VolumeTag=CLN101L6
[root@director ~]#

とメディアはドライブにマウントはしていない。
この状態を bacula 側では

[root@director ~]# bconsole
*list media                   <---「list media」と入力
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Full
No results to list.
Pool: Inc
No results to list.
Pool: Scratch
No results to list.
*

と何も感知せず、bconsoleの「update」サブコマンドでも

*update slots HPE-StoreEver-1-8-G2              <-- 「update slots HPE-StoreEver-1-8-G2」と入力
Connecting to Storage daemon HPE-StoreEver-1-8-G2 at vtl.sybyl.local:9103 ...
3306 Issuing autochanger "slots" command.
Device "HPE-StoreEver-1-8-G2" has 8 slots.
Connecting to Storage daemon HPE-StoreEver-1-8-G2 at vtl.sybyl.local:9103 ...
3306 Issuing autochanger "list" command.
Volume "EM0001L6" not found in catalog. Slot=1 InChanger set to zero.
Volume "EM0002L6" not found in catalog. Slot=2 InChanger set to zero.
Volume "EM0003L6" not found in catalog. Slot=3 InChanger set to zero.
Volume "EM0004L6" not found in catalog. Slot=4 InChanger set to zero.
Volume "EM0005L6" not found in catalog. Slot=5 InChanger set to zero.
Volume "EM0006L6" not found in catalog. Slot=6 InChanger set to zero.
Volume "EM0007L6" not found in catalog. Slot=7 InChanger set to zero.
Volume "CLN101L6" not found in catalog. Slot=8 InChanger set to zero.
*

っと、Volumeの名前は分かっているが、catalogには記載されていない模様。この「update slots」はinventory操作な感じです
Poolとの兼ね合いなのだが、このテープにラベルを張る

labelコマンド

ここでは「EM0001L6」から「EM0004L6」までをPoolの「Full」に割り当てて、「EM0004L6」から「EM0007L6」を「Inc」に割り当てる
bconsoleでシステムに入り込んで
label barcodes sotrage=HPE-StoreEver-1-8-G2 slots=1-4 pool=Full」と入力する

[root@director ~]# bconsole
*
*label barcodes sotrage=HPE-StoreEver-1-8-G2 slots=1-4 pool=Full   <-- 入力場所
Automatically selected Storage: HPE-StoreEver-1-8-G2
Connecting to Storage daemon HPE-StoreEver-1-8-G2 at vtl.sybyl.local:9103 ...
3306 Issuing autochanger "slots" command.
Device "HPE-StoreEver-1-8-G2" has 8 slots.
Connecting to Storage daemon HPE-StoreEver-1-8-G2 at vtl.sybyl.local:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
   1  EM0001L6
   2  EM0002L6
   3  EM0003L6
   4  EM0004L6
Do you want to label these Volumes? (yes|no): yes
Connecting to Storage daemon HPE-StoreEver-1-8-G2 at vtl.sybyl.local:9103 ...
Sending label command for Volume "EM0001L6" Slot 1 ...
3304 Issuing autochanger "load Volume EM0001L6, Slot 1, Drive 0" command.
3305 Autochanger "load Volume EM0001L6, Slot 1, Drive 0", status is OK.
3000 OK label. VolBytes=64512 VolABytes=0 VolType=0 Volume="EM0001L6" Device="LTO-6-Drive" (/dev/nst0)
Catalog record for Volume "EM0001L6", Slot 1  successfully created.
Sending label command for Volume "EM0002L6" Slot 2 ...
3307 Issuing autochanger "unload Volume EM0001L6, Slot 1, Drive 0" command.
3304 Issuing autochanger "load Volume EM0002L6, Slot 2, Drive 0" command.
3305 Autochanger "load Volume EM0002L6, Slot 2, Drive 0", status is OK.
3000 OK label. VolBytes=64512 VolABytes=0 VolType=0 Volume="EM0002L6" Device="LTO-6-Drive" (/dev/nst0)
Catalog record for Volume "EM0002L6", Slot 2  successfully created.
Sending label command for Volume "EM0003L6" Slot 3 ...
3307 Issuing autochanger "unload Volume EM0002L6, Slot 2, Drive 0" command.
3304 Issuing autochanger "load Volume EM0003L6, Slot 3, Drive 0" command.
3305 Autochanger "load Volume EM0003L6, Slot 3, Drive 0", status is OK.
3000 OK label. VolBytes=64512 VolABytes=0 VolType=0 Volume="EM0003L6" Device="LTO-6-Drive" (/dev/nst0)
Catalog record for Volume "EM0003L6", Slot 3  successfully created.
Sending label command for Volume "EM0004L6" Slot 4 ...
3307 Issuing autochanger "unload Volume EM0003L6, Slot 3, Drive 0" command.
3304 Issuing autochanger "load Volume EM0004L6, Slot 4, Drive 0" command.
3305 Autochanger "load Volume EM0004L6, Slot 4, Drive 0", status is OK.
3000 OK label. VolBytes=64512 VolABytes=0 VolType=0 Volume="EM0004L6" Device="LTO-6-Drive" (/dev/nst0)
Catalog record for Volume "EM0004L6", Slot 4  successfully created.
You have messages.
*
[root@director ~]#

引き続き、Pool「Inc」を用意します。同じくbconsoleから

label barcodes sotrage=HPE-StoreEver-1-8-G2 slots=5-7 pool=Inc

と入力してラベルをつけます。

一度つけたPoolを変更する

特定のテープを「Full」のPoolから「Inc」のPoolへ差し替えたい場合は

update volume=EM0003L6 pool=Inc

として行う

一覧表示

*list media
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Full
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | voltype | volparts | lastwritten | expiresin |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
|       1 | EM0001L6   | Append    |       1 |   64,512 |        0 |    2,592,000 |       1 |    1 |         1 | LTO-6     |       0 |        0 |             |         0 |
|       2 | EM0002L6   | Append    |       1 |   64,512 |        0 |    2,592,000 |       1 |    2 |         1 | LTO-6     |       0 |        0 |             |         0 |
|       3 | EM0003L6   | Append    |       1 |   64,512 |        0 |    2,592,000 |       1 |    3 |         1 | LTO-6     |       0 |        0 |             |         0 |
|       4 | EM0004L6   | Append    |       1 |   64,512 |        0 |    2,592,000 |       1 |    4 |         1 | LTO-6     |       0 |        0 |             |         0 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
Pool: Inc
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | voltype | volparts | lastwritten | expiresin |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
|       5 | EM0005L6   | Append    |       1 |   64,512 |        0 |    5,356,800 |       1 |    5 |         1 | LTO-6     |       0 |        0 |             |         0 |
|       6 | EM0006L6   | Append    |       1 |   64,512 |        0 |    5,356,800 |       1 |    6 |         1 | LTO-6     |       0 |        0 |             |         0 |
|       7 | EM0007L6   | Append    |       1 |   64,512 |        0 |    5,356,800 |       1 |    7 |         1 | LTO-6     |       0 |        0 |             |         0 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
Pool: Scratch
No results to list.
*

トップ   編集 添付 複製 名前変更     ヘルプ   最終更新のRSS
Last-modified: 2018-05-17 (木) 20:30:32 (184d)