顯示具有 HMC 標籤的文章。 顯示所有文章
顯示具有 HMC 標籤的文章。 顯示所有文章

2014-03-24

動態調整LPAR資源

動態調整LPAR資源時要注意CPU和Memory的Assign數值不能超過Maximum的數值。


另外若LPAR的RMC連線有問題時, 進行動態調整資源時需要重新啟用LPAR方能生效;問題的檢查方式如下:

As root on the HMC or IVM server, you can execute the rmcdomainstatus command as follows:

# /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

You should get a list of all the partitions that the HMC or IVM server can reach on the public network on port 657. The output should look like this:

Management Domain Status: Managed Nodes
  O a  0xc8bc2c9647c1cef3  0003  9.2.5.241
  I a  0x96586cb4b5fc641c  0002  9.2.5.33
  S S  0x5c88fb81dad9f609  0001  9.2.5.65

If you run the rmcdomainstatus command on a Managed Node (i.e. a partition), a list similar to the following should be displayed.

Management Domain Status: Management Control Points
   I A  0xef889c809d9617c7 0001  9.57.24.139

Each line of output represents the status of a cluster node, relative to the node upon which the command is executed.

I. The first token of the node status line is either S, I, i, O, X, or Z.

S

Indicates the line is the status of a peer node itself (when run on IVM, this will indicate the IVM partition itself.
I

Indicates that the partition is “Up" as determined by the RMC heartbeat mechanism (i.e. an active RMC connection exists).
i

Indicates that the partition is Pending Up. Communication has been established, but the initial handshake between two RMC daemons has not been completed. If this indicator is present upon successive executions of the rmcdomainstatus command, then message authentication is most likely failing. Authentication problems will occur when the MCP or partition identity do not match each other’s trusted host list. To list the current identity or identities for the IVM server or HMC and the logical partition run the following command on both:
/usr/sbin/rsct/bin/ctsvhbal
To list the trusted host list on the MCP or partition run :
/usr/sbin/rsct/bin/ctsthl -l
On the IVM or HMC, there is an entry for the partition. On the partition, there is an entry for the IVM or HMC. The HOST_IDENTITY value must match one of the identities listed in the respective ctsvhbal command output.
O

Indicates that the RMC connection is “Down", as determined by the RMC heartbeat mechanism. The partition is either not active or it may also indicate that the RMC daemon on the specified node is not connecting properly. Ensure that the partition can communicate with the HMC or IVM server on the public network and that port 657 is not being blocked on the public network firewall.
X

Indicates that a communication problem has been discovered and the RMC daemon has suspended communications with the RMC daemon that is on the specified node. This is typically the result of a configuration problem in the network, such that small heartbeat packets can be exchanged between the RMC daemon and the RMC daemon that is on the specified node, but larger data packets cannot. This is usually the result of a difference in MTU sizes in the network adapters of the nodes.
Z

Indicates that the RMC daemon has suspended communications with the RMC daemon that is on the specified node because the up/down state of the node is changing too rapidly. This is typically the result of more than one node having the same node ID. (See part III. for instructions on correcting.)
II. The second token of the node status line is either S, A, R, a, or r.

S

Indicates the line is the status of a peer node itself (when run on IVM, this will indicate the IVM partition itself.
A

Indicates that there are no messages queued to the specified node.
R

Indicates that messages are queued to the specified node. This may be caused by a network that is operating under a heavy load or possible a full /var filesystem.
a

Has the same meaning as A, but the specified node is executing a version of the RMC daemon that is at a lower code level than the local RMC daemon.
r

Has the same meaning as R, but the specified node is executing a version of the RMC daemon that is at a lower code level than the local RMC daemon.
III. The third token of the status line is the ID of the specified node.

The node ID is a 64-bit number that is created when RSCT is installed. It is derived using a True Random Number Generator and is used to uniquely identify a node to the RMC subsystem. The node ID is maintained in the /var/ct/cfg/ct_node_id file. A backup copy is maintained in the /etc/ct_node_id file. If this value is not unique among all systems where RSCT is installed and managed by the same HMC or IVM server, you can generate a new cluster identifier with the following command.
/usr/sbin/rsct/install/bin/recfgct
Note: This command will affect any cluster software that uses RSCT such as CSM or GPFS.
IV.The fourth token of the status line is an internal node number that is used by the RMC daemon.

V. If the list is a list of Peer Nodes or Managed Nodes, the fifth token is the name of the node as known to the RMC subsystem.

On power5 and power6 partitions, the RMC connection will be IP based so this will list the IP address of the partition.

2014-03-05

EXP510, DS4800, SAN, Switch, Power720接線圖和開、關機順序


1. 開機順序

          SAN Switch or Switch -> EXP510 -> DS4800(註1) -> HMC -> Power720

          註1:查詢DS4800的IP Address

1. 接妥console線, 查詢通用序列匯流排號碼
2. 開啟putty連結時透過 Ctrl + Break 按鍵進行正確字元的切換, 當出現正確的字元時, 再按 Esc 按鍵
3. login/password: shellUsr / w3oo&w4
4. 輸入 netCfgSet




1. 關機順序

   LPAR -> Power720 -> HMC -> DS4800 -> EXP510 -> SAN Switch or Switch


接線圖

2013-09-16

透過HMC指令列出LPAR的資訊

hscroot@localhost:~> lssyscfg -r sys -F name
Server-9179-MHC-SN06394FR

hscroot@localhost:~> lssyscfg -m Server-9179-MHC-SN06394FR -r lpar -F name,lpar_id,state,rmc_ipaddr
TS1-1,16,Running,10.199.130.158
FGW2-1,15,Running,10.199.130.157
FGW1-1,14,Running,10.199.130.156
DEV1,13,Running,10.199.130.155
WORKING_LPAR,12,Running,10.199.130.154
NIM_Server,11,Running,10.199.130.153
DAP2-1,10,Running,10.199.130.51
DAP1-1,9,Running,10.199.130.1
DAR2-1,8,Running,10.199.130.136
DAR1-1,7,Running,10.199.130.131
LOG2,6,Running,10.199.130.122
LOG1,5,Running,10.199.130.121
MDS2,4,Running,10.199.130.112
MDS1,3,Running,10.199.130.111
VIOS2,2,Running,10.199.130.152

VIOS1,1,Running,10.199.130.151


Reference
1. http://www.aixhealthcheck.com/blog.php?id=227
2. http://santosh-aix.blogspot.tw/2008/06/creating-lpar-from-hmc-command-line.html

2012-09-25

ITM System P Agent中的key.pl bug fix

ITM System P Agent有提供HMC Base Agent和CEC Base Agent交換key的perl檔案,進行交換key的程序一般是會透過normal user去執行,但原先的key.pl檔案中已預設使用者的家目錄位於/home底下,所以若使用者的家目錄並非位於/home時,就有可能發生無法交換key,因此須注意下列的key point:

●原先的key.pl內容






















●修改後的key.pl
方法有兩種:
1.修改原先定義$file和$key的所在目錄
2.增加自行判斷使用者的家目錄