OSB(Oracle Secure Backup) 磁帶重用方法

feelpurple發表於2015-12-23
登入 obtool ,檢視 library 裡面所有 volume 的使用情況
volume ATFDB-MF-000008 已經滿了,我們決定重用這盤磁帶,它的 mte 號為 4,barcode 為 KJX533L4
[oracle@ATFDB2 ~]$ obtool
ob> lsvol --long --library lib01
Inventory of library lib01:
    in    mte:           vacant
    in    1:             volume OSB-CATALOG-MF-000002, barcode KJX530L4, oid 140, 816534528 kb remaining, never expires, mediainfo hw encryptable
    in    2:             volume JKOM-GAME-MF-000003, barcode KJX531L4, oid 172, 819375104 kb remaining, never expires, mediainfo hw encryptable
    in    3:             volume ATFDB-MF-000011, barcode KJX532L4, oid 222, full, content manages reuse, mediainfo hw encryptable
    in    4:             volume ATFDB-MF-000008, barcode KJX533L4, oid 195, full, content manages reuse, mediainfo hw encryptable
    in    5:             volume ATF-MF-000003, barcode KJX534L4, oid 178, full, never expires, mediainfo hw encryptable
    in    6:             volume GTF-MF-000003, barcode KJX535L4, oid 180, 588802048 kb remaining, never expires, mediainfo hw encryptable
    in    7:             volume ATFB-MF-000003, barcode KJX536L4, oid 215, 82357248 kb remaining, never expires, mediainfo hw encryptable
    in    8:             volume GTFDB-MF-000013, barcode KJX537L4, oid 224, full, content manages reuse, mediainfo hw encryptable
    in    9:             volume ATFDB-MF-000010, barcode KJX538L4, oid 220, 588896256 kb remaining, content manages reuse, mediainfo hw encryptable
    in    10:            volume GTFDB-MF-000012, barcode KJX539L4, oid 223, full, content manages reuse, mediainfo hw encryptable
    in    11:            cleaning tape: 3 uses, 57 remaining
    in    12:            vacant
    in    13:            vacant
    in    14:            volume GTFB-MF-000001, barcode KJX524L4, oid 206, 513059840 kb remaining, never expires, mediainfo hw encryptable
    in    15:            volume GTFDB-MF-000011, barcode KJX522L4, oid 221, 566432768 kb remaining, content manages reuse, mediainfo hw encryptable
    in    16:            vacant
    in    17:            volume ATFB-MF-000001, barcode KJX520L4, oid 210, full, never expires, mediainfo hw encryptable
    in    18:            volume ATFB-MF-000002, barcode KJX521L4, oid 212, 801191936 kb remaining, never expires, mediainfo hw encryptable
    in    19:            volume JKMISDB-MF-000007, barcode KJX526L4, oid 225, full, content manages reuse, mediainfo hw encryptable
    in    20:            vacant
    in    21:            vacant
    in    22:            volume GTFDB-MF-000014, barcode KJX523L4, oid 226, 812628992 kb remaining, content manages reuse, mediainfo hw encryptable
    in    23:            barcode KJX525L4, oid 227, 819431424 kb remaining, mediainfo hw encryptable
    in    iee:           vacant
    in    dte:           vacant

重用 mte 號為 4 的磁帶

ob> reusevol --drive lib01tape01 --force 4

上面命令操作成功後,檢視 library 裡面所有 volume 的使用情況,可以看到 mte 號為 4 的卷已經重用,沒有關聯到任何 Media Family

ob> lsvol --long --library lib01
Inventory of library lib01:
    in    mte:           vacant
    in    1:             volume OSB-CATALOG-MF-000002, barcode KJX530L4, oid 140, 816534528 kb remaining, never expires, mediainfo hw encryptable
    in    2:             volume JKOM-GAME-MF-000003, barcode KJX531L4, oid 172, 819375104 kb remaining, never expires, mediainfo hw encryptable
    in    3:             volume ATFDB-MF-000011, barcode KJX532L4, oid 222, full, content manages reuse, mediainfo hw encryptable
    in    4:             barcode KJX533L4, oid 228, 819431424 kb remaining, mediainfo hw encryptable
    in    5:             volume ATF-MF-000003, barcode KJX534L4, oid 178, full, never expires, mediainfo hw encryptable
    in    6:             volume GTF-MF-000003, barcode KJX535L4, oid 180, 588802048 kb remaining, never expires, mediainfo hw encryptable
    in    7:             volume ATFB-MF-000003, barcode KJX536L4, oid 215, 82357248 kb remaining, never expires, mediainfo hw encryptable
    in    8:             volume GTFDB-MF-000013, barcode KJX537L4, oid 224, full, content manages reuse, mediainfo hw encryptable
    in    9:             volume ATFDB-MF-000010, barcode KJX538L4, oid 220, 588896256 kb remaining, content manages reuse, mediainfo hw encryptable
    in    10:            volume GTFDB-MF-000012, barcode KJX539L4, oid 223, full, content manages reuse, mediainfo hw encryptable
    in    11:            cleaning tape: 3 uses, 57 remaining
    in    12:            vacant
    in    13:            vacant
    in    14:            volume GTFB-MF-000001, barcode KJX524L4, oid 206, 513059840 kb remaining, never expires, mediainfo hw encryptable
    in    15:            volume GTFDB-MF-000011, barcode KJX522L4, oid 221, 566432768 kb remaining, content manages reuse, mediainfo hw encryptable
    in    16:            vacant
    in    17:            volume ATFB-MF-000001, barcode KJX520L4, oid 210, full, never expires, mediainfo hw encryptable
    in    18:            volume ATFB-MF-000002, barcode KJX521L4, oid 212, 801191936 kb remaining, never expires, mediainfo hw encryptable
    in    19:            volume JKMISDB-MF-000007, barcode KJX526L4, oid 225, full, content manages reuse, mediainfo hw encryptable
    in    20:            vacant
    in    21:            vacant
    in    22:            volume GTFDB-MF-000014, barcode KJX523L4, oid 226, 812628992 kb remaining, content manages reuse, mediainfo hw encryptable
    in    23:            barcode KJX525L4, oid 227, 819431424 kb remaining, mediainfo hw encryptable
    in    iee:           vacant
    in    dte:           vacant

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-1878934/,如需轉載,請註明出處,否則將追究法律責任。

相關文章