Top / Installmemo / RS6000 / DLPAR

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

LPAR

LPAR割り当てリソース情報取得

  • プロセッサー
    hscroot@hmc:~> lshwres -m Server01 -r proc --level lpar -F 表示させる項目
    lpar_name=lpar01,
    lpar_id=1,
    curr_proc_mode=ded,
    curr_min_procs=1,
    curr_procs=1,
    curr_max_procs=2,
    curr_sharing_mode=share_idle_procs,
    pend_proc_mode=ded,
    pend_min_procs=1,
    pend_procs=1,
    pend_max_procs=2,
    pend_sharing_mode=share_idle_procs,
    run_procs=1,
  • メモリ
    hscroot@hmc:~> lshwres -m Server01 -r mem --level lpar -F 表示させる項目
    lpar_name=lpar01,
    lpar_id=1,
    curr_min_mem=1536,
    curr_mem=1776,
    curr_max_mem=2048,
    pend_min_mem=1536,
    pend_mem=1776,
    pend_max_mem=2048,
    run_min_mem=1536,
    run_mem=1776,
    curr_min_num_huge_pages=0,
    curr_num_huge_pages=0,
    curr_max_num_huge_pages=0,
    pend_min_num_huge_pages=0,
    pend_num_huge_pages=0,
    pend_max_num_huge_pages=0,
    run_num_huge_pages=0
  • I/Oスロット
    hscroot@hmc:~> lshwres -m Server01 -r io --rsubtype slot -F 表示させる項目
    unit_phys_loc=U789C.001.DQDJ428,
    bus_id=519,
    phys_loc=C3,
    drc_index=21010207,
    lpar_name=06-CEC72,
    lpar_id=1,slot_io_pool_id=none,
    description=イーサネット・コントローラー,
    feature_codes=none,
    pci_vendor_id=8086,
    pci_device_id=105E,
    pci_subs_vendor_id=1014,
    pci_subs_device_id=0340,
    pci_class=0200,
    pci_revision_id=06,
    bus_grouping=0,
    iop=0,
    parent_slot_drc_index=none,
    drc_name=U789C.001.DQDJ428-P1-C3

LPARリソースの追加・削除・移動

リソースの操作はHMCから「chhwres」コマンドで操作できる。

-rリソースタイプproc,mem,io,virtualio
-m対象管理サーバ管理サーバ名
-oオペレーションa:追加, r:削除, m:移動
-p対象パーティションパーティション名(移動オペレーションの場合は移動元)
-tターゲットパーティション移動オペレーションにおいての移動先
-wタイムアウトタイムアウト値(分)
  • 専用プロセッサー
    lpar01からlpas02へ1プロセッサを移動
    hscroot@hmc:~> chhwres -r proc -m Server01 -o m -p lpar01 -t lpar02 --procs 1
  • 共用プロセッサー
    • Processing Unitの増減例
      0.1 processing unitsを追加
      hscroot@hmc:~> chhwres -r proc -o a -p lpas01 -m Server01 --procunits .1
    • 仮想プロセッサの増減例
      1 processorを削除
      hscroot@hmc:~> chhwres -r proc -o r -p lpar01 -m Server01 --procs 1
  • メモリ
    lpar01に128MBメモリを追加する場合。ほか、移動削除はプロセッサと同様
    chscroot@hmc:~> hhwres -r mem -m Server01 -o a -p lpar01 -q 128 
  • I/Oスロット
    lpar01のテープドライブをlpar02へ移動させる。
  1. AIX上でデバイス切り離し
    lpar01のAIX上にて
    1. 切り離すデバイスの確認
      # lsdev -Cl rmt0 -F parent
      sas1
      # lsdev -Cl sas1 -F parent
      sissas1
      # lsdev -Cl sissas1 -F parent
      pci1
    2. AIXからデバイス切り離し実施
      # rmdev -l pci1 -R
      rmt0 定義済み
      sasdrawer0 定義済み
      ses3 定義済み
      sas1 定義済み
      cd0 定義済み
      sata1 定義済み
      sissas1 定義済み
      pci1 定義済み
  2. HMCにてI/Oスロットの移動・削除
    1. H/Wロケーションコードの確認
      hscroot@hmc:~> lshwres -r io -m Server01 --rsubtype slot -F phys_loc,description,drc_index
      T9,RAID Controller,21010200
      T7,Universal Serial Bus UHC Spec,21010201
      C1,POWER GXT145 PCI Express Graphics Accelerator,21010204
      C2,Ethernet controller,21010205
      C9,Empty slot,21010206
      C3,Empty Slot,21010207
      C4,Empty slot,21010202
      C5,RAID Controller,21010203
    2. リソース移動実施
      lpar01からlpar02へ移動させる場合(指定するロケーションコードはlshwresで確認したdrc_indexの値を使用する。)
      hscroot@hmc:~> chhwres -r io -m Server01 --rsubtype slot -o m -p lpar01 -t lpar02 -l 21010203 -w 5
  3. AIXでH/W認識
    lpar02のAIX上にて
    # cfgmgr

AIX

LPARリソース

# lparstat -i
Node Name                                  : lpar01
Partition Name                             : lpar01
Partition Number                           : 1
Type                                       : Shared-SMT
Mode                                       : Uncapped
Entitled Capacity                          : 0.80
Partition Group-ID                         : 32769
Shared Pool ID                             : 0
Online Virtual CPUs                        : 8
Maximum Virtual CPUs                       : 10
Minimum Virtual CPUs                       : 1
Online Memory                              : 1152 MB
Maximum Memory                             : 2048 MB
Minimum Memory                             : 128 MB
Variable Capacity Weight                   : 100
Minimum Capacity                           : 0.60
Maximum Capacity                           : 1.00
Capacity Increment                         : 0.01
Maximum Physical CPUs in system            : 2
Active Physical CPUs in system             : 2
Active CPUs in Pool                        : 2
Unallocated Capacity                       : 0.00
Physical CPU Percentage                    : 10.00%
Unallocated Weight                         : 0 
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=On lcpu=16 mem=1152 psize=1 ent=0.90

%user  %sys  %wait  %idle physc %entc  lbusy  vcsw phint
-----  ----  -----  ----- ----- ----- ------  ---- -----
  0.1   0.4    0.0   99.5  0.01   0.8    0.1   724     0
  0.0   0.3    0.0   99.7  0.01   0.6    0.1   726     0
  0.0   0.3    0.0   99.7  0.01   0.6    0.0   730     0
  0.0   0.3    0.0   99.7  0.01   0.6    0.0   510     0
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=On lcpu=16 mem=1152 psize=1 ent=0.90

%user  %sys  %wait  %idle physc %entc  lbusy   app  vcsw phint
-----  ----  -----  ----- ----- ----- ------   ---  ---- -----
  0.1   0.4    0.0   99.5  0.01   0.8    0.0  1.00   571     0
  3.6   0.4    0.0   95.9  0.04   4.6    0.8  0.95   691     0
  0.0   0.3    0.0   99.7  0.01   0.6    0.1  0.99   712     0
  0.0   0.3    0.0   99.7  0.01   0.7    0.0  0.99   720     0

RMCサービスの操作

DLAPRによるリソースの動的再配置はLPAR側においてもRMCサービスが必要となる。DLPARはpServerのHypervisorとLPARのRMCサービスにより実現される。

  • RMCデーモンの操作
    • 停止
      # /usr/sbin/rsct/bin/rmctl -z
      # lssrc -g rsct_rm
      Subsystem         Group            PID          Status
       IBM.ERRM         rsct_rm                       inoperative
       IBM.AuditRM      rsct_rm                       inoperative
       IBM.CSMAgentRM   rsct_rm                       inoperative
       IBM.ServiceRM    rsct_rm                       inoperative
       IBM.HostRM       rsct_rm                       inoperative
       IBM.DRM          rsct_rm                       inoperative
       IBM.LPRM         rsct_rm                       inoperative
    • 起動
      # /usr/sbin/rsct/bin/rmctl -A
    • HMCへの接続
      RMCサービスの再起動のみではHMCへの再接続が実施されない。下記のオプションにより再接続を行う。
      # /usr/sbin/rsct/bin/rmctl -p
  • リソースクラス情報の表示
    lpar01は2台のHMCから管理されていることがわかる。
    # lsrsrc IBM.ManagementServer
    Resource Persistent Attributes for IBM.ManagementServer
    resource 1:
            Name             = "192.168.1.3"
            Hostname         = "192.168.1.3"
            ManagerType      = "HMC"
            LocalHostname    = "192.168.1.81"
            ClusterTM        = "9078-160"
            ClusterSNum      = ""
            ActivePeerDomain = ""
            NodeNameList     = {"lpar01"}
    resource 2:
            Name             = "192.168.1.4"
            Hostname         = "192.168.1.4"
            ManagerType      = "HMC"
            LocalHostname    = "192.168.1.81"
            ClusterTM        = "9078-160"
            ClusterSNum      = ""
            ActivePeerDomain = ""
            NodeNameList     = {"lpar01"}
  • RMC構成の再初期化(緊急時のみ)
    # /usr/sbin/rsct/install/bin/recfgct
    0513-071 The ctcas Subsystem has been added.
    0513-071 The ctrmc Subsystem has been added.
    0513-059 The ctrmc Subsystem has been started. Subsystem PID is 213128.
  • スナップショットの取得
    スナップは/tmp/ctsuptに出力される
    # /usr/sbin/rsctb/bin/ctsnap
    Log directory set to /tmp/ctsupt
    ...................................................................

Counter: 4216, today: 1, yesterday: 1