Linux 用 IBM テープ・デバイス・ドライバーのインストール

appkg_install コマンドを使用して、Linux 用 IBM テープ・デバイス・ドライバーをインストールおよびアンインストールできます。

手順

  • 以下のコマンドを使用して、Linux 用 IBM テープ・デバイス・ドライバーをインストールします。
    appkg_install lintapeinstaller --help
    usage: appkg_install lintapeinstaller [-h] [-v] --chart CHART --path PATH
    
    Install the IBM Tape Device Drivers for Linux
    
    optional arguments:
      -h, --help     show this help message and exit
      -v, --verbose  increase output verbosity
    
    required arguments:
      --chart CHART  Path to the helm chart defining install options
      --path PATH    Directory path to the software package(s) to install
    以下の引数を指定する必要があります。
    • --chart helm チャート形式を使用するインストール構成ファイルのパス。
      IBM Linux テープ・デバイス・ドライバーのインストールに使用できる helm チャートの例を以下に示します。
      apiVersion: v1
      	vendor: IBM
      	product: IBM Tape Device Drivers for Linux
      	version: 1.0.17
      	description: installation information for the IBM Tape Device Drivers for Linux
      	appVersion: 3.0.39.0
      	# customer filled in parameters
      	parameters:
      	  lin_tape_src_rpm: lin_tape-3.0.39-1.src.rpm
      	  lin_taped_rpm: lin_taped-3.0.39-rhel7.ppc64le.rpm
      	  checksum:
      	    lin_tape_src_rpm_checksum: 73d375c74a72f73e3eadba7ce1717f4b
      	    lin_taped_rpm_checksum: 4a56f18974b005373b833b0d5815b72d
      このチャートでは、vendor、product、version、description および appVersion の各フィールドがテンプレートで既に入力されています。
      apiVersion

      helm チャートのバージョン自体を参照します。

      vendor

      製品のプロバイダー

      product

      インストールされるパッケージ

      version
      IIAS のバージョン
      appVersion
      インストールできるバージョン。これは、定義されているサポートされる最小バージョン以上である必要があります。IBM Linux テープ・デバイス・ドライバーの場合は 3.0.39.0 です。
      以下の値を指定する必要があります。
      lin_tape_src_rpm
      IBM Linux テープ・デバイス・ドライバー・クライアントのソース rpm ファイルの名前
      lin_taped_rpm
      IBM Linux テープ・デバイス・ドライバーのデーモン rpm の名前
      lin_tape_src_rpm_checksum
      クライアント rpm ファイルの md5sum チェックサム
      lin_taped_rpm_checksum
      デーモン rpm ファイルの md5sum チェックサム
    • --path クライアントおよび nmda ライブラリーの tar.gz ファイルが配置されているディレクトリーのパス。
    例:
    [apuser@node0101]# appkg_install lintapeinstaller --chart /root/lin-tape/lintape.yaml --path /root/lin-tape/
    Logging to /var/log/appliance/appkg_install/log/20190531/appkg_install-20190531154250.log
    Checking to see if DSX is running
    Preparing the installation directory
    Checking that RPMs have the right architecture for this appliance
    Stopping magneto service
    Stopping Magneto service...
    Finished stopping Magneto service
    Stopping docker service on all nodes
    Updating modprobe configuration
    Rebuilding lin_tape src rpm
    Installing lin_tape rpm on all nodes
    Installing lin_taped rpm on all nodes
    Adding lin_tape udev rules to nodes
    Starting docker service on all nodes
    Renaming dashDB containers to dashDB-dead
    Updating dashdb.env file
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0101
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0102
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0103
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0104
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0105
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0106
    Copying file from /opt/ibm/appliance/storage/scratch/lintape/lin_tape_on_boot.service to /usr/lib/systemd/system/lin_tape_on_boot.service on node0107
    Reloading systemctl daemon on all nodes
    Enabling lin_tape_on_boot service on all nodes
    Deploying new dashDB image to all nodes
    Deploying dashDB container to node0101.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n2.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n3.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n4.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n5.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n6.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n7.swg.usma.ibm.com
    Removing backed up dashDB container dashDB-dead
    Starting Magneto
    Starting Magneto...
    Finished starting Magneto
    Successfully installed and configured IBM Tape Device Drivers for Linux on all nodes
    System state is 'Ready'
    Application state is 'Ready'
    Platform management state is 'Active'
    +-----------------+---------+-----------+-----------+--------+
    | Node            |   State | Monitored | Is Master | Is HUB |
    +-----------------+---------+-----------+-----------+--------+
    | hadomain1.node1 | ENABLED |       YES |       YES |    YES |
    | hadomain1.node2 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node3 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node4 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node5 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node6 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node7 | ENABLED |       YES |        NO |     NO |
    +-----------------+---------+-----------+-----------+--------+
    
    Generated: 2019-05-31 16:21:30
    
    
    For more info see /var/log/appliance/appkg_install/log/20190531/appkg_install-20190531154250.log
  • 以下のコマンドを使用して、IBM テープ・デバイス・ドライバーをアンインストールします。
    appkg_install lintapeuninstaller --help
    usage: appkg_install lintapeuninstaller [-h] [-v]
    
    Uninstall the IBM Tape Device Drivers for Linux
    
    optional arguments:
      -h, --help     show this help message and exit
      -v, --verbose  increase output verbosity
    例:
    [Apuser@Node0101]# appkg_install lintapeuninstaller
    Logging to /var/log/appliance/appkg_install/log/20190531/appkg_install-20190531133508.log
    Checking to see if DSX is running
    Stopping magneto service
    Stopping Magneto service...
    Finished stopping Magneto service
    Stopping docker service on all nodes
    Uninstalling lin_taped rpm on all nodes
    Uninstalling lin_tape rpm on all nodes
    Removing lin_tape udev rules on nodes
    Running "udevadm control --reload-rules" across all nodes
    Running "udevadm trigger" across all nodes
    Starting docker service on all nodes
    Renaming dashDB containers to dashDB-dead
    Updating dashdb.env file
    Disabling lin_tape_on_boot service on all nodes
    Removing file /usr/lib/systemd/system/lin_tape_on_boot.service on all nodes
    Reloading systemctl daemon on all nodes
    Deploying new dashDB image to all nodes
    Deploying dashDB container to node0101.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n2.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n3.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n4.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n5.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n6.swg.usma.ibm.com
    Deploying dashDB container to sail67-t07-n7.swg.usma.ibm.com
    Removing backed up dashDB container dashDB-dead
    Starting Magneto
    Starting Magneto...
    Finished starting Magneto
    Successfully uninstalled IBM Tape Device Drivers for Linux on all nodes
    System state is 'Ready'
    Application state is 'Ready'
    Platform management state is 'Active'
    +-----------------+---------+-----------+-----------+--------+
    | Node            |   State | Monitored | Is Master | Is HUB |
    +-----------------+---------+-----------+-----------+--------+
    | hadomain1.node1 | ENABLED |       YES |       YES |    YES |
    | hadomain1.node2 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node3 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node4 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node5 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node6 | ENABLED |       YES |        NO |     NO |
    | hadomain1.node7 | ENABLED |       YES |        NO |     NO |
    +-----------------+---------+-----------+-----------+--------+
    
    Generated: 2019-05-31 14:12:53
    
    
    For more info see /var/log/appliance/appkg_install/log/20190531/appkg_install-20190531133508.log