トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#contentsx
**TSMでのストレージ管理概念 [#kd007f4c]
〜準備中〜
**ディスクを使用したストレージプールの登録 [#m0f387e2]
#ref(stgpool-disk.png)
***順次ファイルボリュームの登録 [#bc3852ee]
+''デバイスクラスの登録''
 TSM:SERVER1> define devclass fileclass1 devtype=file directory=/tsmdata/current
 
 ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE DEVCLASS fileclass1
    devtype=file directory=/tsmdata/current
 ANR2203I Device class FILECLASS1 defined.
FILE デバイス・クラスの MAXCAPACITY 値のデフォルトは 2G です。(1ファイルあたりの容量)
FILE デバイス・クラスの MAXCAPACITY 値のデフォルトは 2GB です。(1ファイルあたりの容量)
TSM8.1のMAXCAPACITY 値のフォルトは 10GB です。
+''ストレージプールの登録''
 TSM:SERVER1> define stgpool diskpool1 fileclass1 maxscratch=100
 
 ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE STGPOOL 
   diskpool1  fileclass1
 maxscratch=100
 ANR2200I Storage pool DISKPOOL1 defined (device class FILECLASS1).
※maxscratch:ストレージプールで使用する最大ファイル数

***順次ファイルボリュームの変更 [#p0e21ffa]
-1ファイルあたりの最大容量の変更
 TSM:SERVER1> update devclass fileclass1 maxcap=4096m
-ストレージプールで使用する最大ファイル数の変更
 TSM:SERVER1> update stgpool DISKPOOL1 maxscratch=150

***サーバーサイド重複排除機能の使用(TSM8.1) [#c1a571fa]
ストレージプールに対して重複除外機能を有効にする
 IBM Spectrum Protect:SERVER1> UPDATE STGPOOL DISKPOOL01 DEDUPLICATE=YES
 ANR2017I Administrator SERVER_CONSOLE issued command: UPDATE STGPOOL DISKPOOL01 DEDUPLICATE=YES
 ANR2202I Storage pool DISKPOOL01 updated.
 ANR0984I Process 2 for IDENTIFY DUPLICATES started in the BACKGROUND at 11時53分58秒.
 ANR1018I Volume deduplication process 2 started for storage pool DISKPOOL01, identify processes=1.
重複調査を実行する
 IBM Spectrum Protect:SERVER1> IDENTIFY DUPLICATES DISKPOOL01
 ANR2017I Administrator SERVER_CONSOLE issued command: IDENTIFY DUPLICATES DISKPOOL01
 ANR1999I IDENTIFY DUPLICATES completed successfully.
重複調査プロセスはデフォルトでは1プロセスであるが、間に合わない。4プロセス程度を稼働させるのが良い。
 Protect: SERVER1>UPDATE STGPOOL DISKPOOL01 DEDUPLICATE=YES identifyproc=4
 ANR2202I Storage pool DISKPOOL01 updated.
ところが、いつまでたっても「Deduplication Savings」が0Byteのままで重複排除が実行されない。
 Protect: SERVER1>q stgpool diskpool01 f=d 
                      Storage Pool Name: DISKPOOL01
                      Storage Pool Type: Primary
                      Device Class Name: FILECLASS01
 〜中略〜
                      Deduplicate Data?: Yes
   Processes For Identifying Duplicates: 1
                             Compressed:
    Additional space for protected data:
             Total Unused Pending Space:
                  Deduplication Savings: 0 (0%)
                    Compression Savings:
                      Total Space Saved: 0 (0%)
                         Auto-copy Mode: Client
  Contains Data Deduplicated by Client?: No
 〜以下省略〜
その場合、オプションファイルのDEDUPREQUIRESBACKUPをnoにするとよい。
 Protect: SERVER1>setopt DEDUPREQUIRESBACKUP no
 続行しますか? (はい (Y)/いいえ (N)) y
 ANR2119I The DEDUPREQUIRESBACKUP option has been changed in the options file.
https://www.ibm.com/support/knowledgecenter/ja/SSGSG7_7.1.1/com.ibm.itsm.srv.ref.doc/r_cmd_stgpool_psa_update.html
http://www.lanigera.com/wordpress/2011/08/enabling-deduplication-on-a-primary-storage-pool-in-tsm-6-2/
https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.7/srv.reference/r_cmd_setopt.html


**テープ装置を使用したストレージプールの登録 [#l87d11af]
***IBM Tape Device Driverの導入(Linux) [#bd93b38d]
IBM Tape Device Drivers Installation and User's Guide
http://www-01.ibm.com/support/docview.wss?rs=577&uid=ssg1S7002972
-AIXはAtape
-Linuxはlin_tape
 # rpmbuild --rebuild lin_tape-1.76.0-1.src.rpm
 # cd /usr/src/redhat/RPMS/x86_64
 # rpm -ivh lin_tape-1.76.0-1.x86_64.rpm
 Preparing...                ########################################### [100%]
    1:lin_tape               ########################################### [100%]
 Starting lin_tape:
 lin_tape loaded

***Passthruドライバの構成(Linux)[#y205b66e]
Linux環境においてIBM Tape Device Driversに対応していない、テープドライブ、チェンジャーを使用する場合はテープライブラリおよびテープドライブを使用するにはTSMからSCSI機器を直接コントロールさせるため、Tivoli Storage Manager Passthruドライバの構成が必要である。
PassthruドライバはSCSIデバイスファイル(''/dev/sg'''''n''')からTSMデバイスファイル(テープドライブの場合''/dev/tsmscsi/mt'''''n''' , ライブラリの場合''/dev/tsmscsi/lb'''''n''')へのマッピングを行う。
 # /opt/tivoli/tsm/devices/bin/autoconf
 ******************************************
 *       IBM TIVOLI STORAGE MANAGER       *
 *   Autoconf Utility Program for Linux   *
 ******************************************
 Licensed Materials - Property of IBM
 
 (C) Copyright IBM Corporation 2009. All rights reserved.
 U.S. Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corporation.
 
 Tivoli Tape Drives:
 ===================
 Index Minor Host CHN ID  LUN Type Vendor_ID Device_Serial_Number Product_ID Rev.
 000   003   004  000 006 000 001  SEAGATE   HN0EXD9       DAT    9SP40-000 912L

***テープライブラリの登録[#wb1ae15b]
#ref(stgpool-tape.png)
+''テープライブラリの登録''
テープライブラリを登録する場合、登録されるテープライブラリはTSMによってサポートされている必要がある。また、テープ装置単体の場合であってもライブラリータイプ=MANUALにてライブラリとして登録する必要がある。
[[Linux版サポートデバイス(ibm.com)>http://www-01.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_Linux.html]]
[[AIX/Solaris版サポートデバイス(ibm.com)>http://www-01.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_AIXHPSUNWIN.html]]
 TSM:SERVER1> define library ライブラリー名 libtype=ライブラリータイプ device=論理デバイスファイル名
// TSM:SERVER1> define library ライブラリー名 libtype=ライブラリータイプ device=論理デバイスファイル名
 TSM:SERVER1> define library ライブラリー名 libtype=ライブラリータイプ
 TSM:SERVER1> define path サーバー名 ライブラリー名 srctype=server desttype=library
                 device= 論理デバイスファイル名
RIGHT:論理デバイスファイル名はPassthruドライバで登録されたデバイスファイル(/dev/tsmscsi/lb'''n''')
LEFT:なお、テープ装置単体の場合、path定義は不要である。
+''テープ装置の登録''
 TSM:SERVER1> define drive ライブラリー名 ドライブ名 device=論理デバイスファイル名 element=エレメント番号
エレメント番号はTSMサポートデバイスのページに記載される。また、テープドライブが1台のみの場合は省略できる。
// TSM:SERVER1> define drive ライブラリー名 ドライブ名 device=論理デバイスファイル名 element=エレメント番号
//エレメント番号はTSMサポートデバイスのページに記載される。また、テープドライブが1台のみの場合は省略できる。
 TSM:SERVER1> define drive ライブラリー名 ドライブ名
 TSM:SERVER1> define path サーバー名 ドライブ名 library=ライブラリ名 srctype=server
                 desttype=drive device=論理デバイスファイル名 
RIGHT:論理デバイスファイル名はPassthruドライバで登録されたデバイスファイル(/dev/tsmscsi/mt'''n''')
+''デバイスクラスの登録''
 SM:SERVER1> define devclass デバイスクラス名 devtype=デバイスタイプ format=フォーマットタイプ library=ライブラリ名
 SM:SERVER1> define devclass デバイスクラス名 devtype=デバイスタイプ 
                format=フォーマットタイプ library=ライブラリ名
デバイスタイプおよびフォーマットタイプは、使用するメディアにより次のような指定となる。
|メディア|devtype|format|   |
|4mmDAT|4mm  |dds3    |DDS3非圧縮|
|      |     |dds3c   |DDS3圧縮|
|      |     |dds4    |DDS4非圧縮|
|      |     |dds4c   |DDS4圧縮|
|      |     |dds5    |DAT72非圧縮|
|      |     |dds5c   |DAT72圧縮|
|LTO   |lto  |ULTRIUM |Ultrium非圧縮|
|      |     |ULTRIUMC|Ultrium圧縮|
|      |     |ULTRIUM2|Ultrium2非圧縮|
|      |     |ULTRIUM2C|Ultrium2圧縮|
http://publib.boulder.ibm.com/tividd/td/ITSML/GC23-4691-02/ja_JA/HTML/anrlrf522108.htm
+''ストレージプールの登録''
 TSM:SERVER1> define stgpool ストレージプール名 デバイスクラス名
+''テープメディアの登録''
++''ボリュームの定義''
 TSM:SERVER1> define volume ストレージプール名 ボリューム名
++''テープのラベル付け''
テープメディアにボリューム名を書き込みます
 TSM:SERVER1> label libvolume ライブラリー名 ボリューム名 overwrite=yes
overwriteはすでにラベル付けされたテープを使用する場合に指定します。 

**バックアップ用ストレージプールの登録(コピー・ストレージプール) [#yb506751]
-デバイスクラスの登録
 TSM:SERVER1> define devclass fileclass2 devtype=file directory=/tsmdata/backup
 
 ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE DEVCLASS fileclass2
 devtype=file directory=/tsmdata/backup
 ANR2203I Device class FILECLASS2 defined.

-ストレージプールの登録
 TSM:SERVER1> define stgpool testbackpool fileclass2 pooltype=copy maxscratch=100
 
 ANR2017I Administrator SERVER_CONSOLE issued command: DEFINE STGPOOL 
    testbackpool fileclass2 pooltype=copy maxscratch=100
 ANR2200I Storage pool TESTBACKPOOL defined (device class FILECLASS2).

-ストレージプールのコピー実行
 TSM:SERVER1> backup stgpool diskpool1 testbackpool
 ANR2017I Administrator SERVER_CONSOLE issued command: BACKUP STGPOOL 
    diskpool1 testbackpool
 ANR0984I Process 2 for BACKUP STORAGE POOL started in the BACKGROUND 
    at 11:35:01 AM.
 ANR2110I BACKUP STGPOOL started as process 2.
 ANR1210I Backup of primary storage pool DISKPOOL1 to copy storage pool 
    TESTBACKPOOL started as process 2.
 ANR1228I Removable volume /tsmdata/current/00000003.BFS is required for
    storage pool backup.
 ANR8340I FILE volume /tsmdata/backup/00000004.BFS mounted.
 ANR8340I FILE volume /tsmdata/current/00000003.BFS mounted.
 ANR1340I Scratch volume /tsmdata/backup/00000004.BFS is now defined in 
    storage pool TESTBACKPOOL.
 ANR0512I Process 2 opened input volume /tsmdata/current/00000003.BFS.
 ANR0513I Process 2 opened output volume /tsmdata/backup/00000004.BFS.
 ANR1212I Backup process 2 ended for storage pool DISKPOOL1.
 ANR0986I Process 2 for BACKUP STORAGE POOL running in the BACKGROUND
    processed 16 items for a total of 4,671,334 bytes with a completion
    state of SUCCESS at 11:35:01 AM.
 ANR1214I Backup of primary storage pool DISKPOOL1 to copy storage pool
    TESTBACKPOOL has ended.  Files Backed Up: 16, Bytes Backed Up: 4671334,
    Unreadable Files: 0, Unreadable Bytes: 0.
----
#counter