1 磁帶從帶庫中取放操作
1.1 checkout 磁帶
查詢checkout命令參數remove默認為yes
1、單盤磁帶舉例
#查看存儲池 tsm>q stgpool f=d tsm>q vol ----Pct Util為利用率 #查看磁帶屬性 tsm>q vol S84547L5 f=d #查看磁帶內容 tsm>q content S84547L5 f=d #查看驅動器是否有mount tsm>q mount #設置磁帶為不可用 tsm> update vol S84547L5 access=unavailable #移除磁帶到I/O station操作 tsm> checkout libv 3584lib S84547L5 #可查詢日志信息 tsm> q act
2、多盤磁帶舉例
#移除多盤磁帶操作 根據查看request做相應應答 issue 'REPLY' along with the request ID when ready. tsm> checkout libv 3584lib vollist='000702L3,000705L3,000706L3,000865L3' tsm> q request tsm> reply xxx tsm>q pro
1.2 checkin 磁帶(全新未用磁帶需要label進去)
新磁帶貼標簽,打開磁帶庫的I/O station,順序放入。
Checkin操作
1、 checkin單盤磁帶
#添加一盤磁帶操作(status=private或scratch) tsm>label libvolume 3584lib search=bulk labelsource=barcode checkin=scratch或private tsm>q request tsm>reply request_id
#添加舊磁帶操作 tsm>checkin libvolume library_name volume_name status= scratch或private
2、 checkin I/O站中所有磁帶
tsm>label libvolume 3584lib search=bulk labelsource=barcode checkin=scratch或private tsm>q request tsm>reply request_id
#添加舊磁帶操作
tsm>checkin libvolume library_name search=Bulk status=private
例:checkin libvolume 3584lib search=Bulk status=private
Checkin操作必須使用reply命令進行應答才能完成磁帶的最終入庫操作。
應答步驟:
tsm>q request(查詢request id)tsm>reply request_id
查看磁帶是否已經被checkin
q libv
如果該命令可以看到被checkin的磁帶,說明磁帶已從I/O站的插槽中被checkin到帶庫中。
3、定義新磁帶加入存儲池
Define volume dbpool XXXX
刪除定義
delete volume xxxx
4、修改磁帶狀態為可用
checkin完成后必須將磁帶改為可讀寫狀態,否則下次TSM備份仍認為該磁帶不可用,不會搜索該磁帶。
update volume volume_name access=readwrite wherestgpool=stgpool_name
例:update volume A00025L3 access=readwrite wherestgpool=testpool
5、查看磁帶狀態
q vol volume_name f=d
確認access項的值已被改為readwrite
6、注意事項
向I/O站插槽中放入磁帶時必須按照磁帶編號從小到大從上到下的順序放入
tsm>q vol S84547L5 f=d
tsm>q content S84547L5 f=d