Show Table of Contents
4.8. host
host リソースタイプは、Red Hat Virtualization 環境のホストリソースをすべてグループ化します。
表4.17 ホストのパラメーター
| 名前 | タイプ | 説明 | 必須 | ユーザーが作成可能 | ユーザーが更新可能 |
|---|---|---|---|---|---|
--name
|
文字列
|
ホスト名
|
はい
|
はい
|
はい
|
--address
|
文字列
|
ホストの IP アドレスあるいホスト名
|
はい
|
はい
|
はい
|
--root_password
|
文字列
|
ホストの
root ユーザーのパスワード
|
はい
|
はい
|
はい
|
--cluster-id|name
|
文字列
|
ホストが含まれるクラスターを定義します。
|
はい
|
はい
|
はい
|
--port
|
整数
|
ホストで実行する VDSM デーモンと通信するポート
|
いいえ
|
はい
|
はい
|
--storage_manager-priority
|
整数
|
Storage Pool Manager (SPM) のホストの優先順位を設定します。
|
いいえ
|
はい
|
はい
|
--power_management-type
|
文字列
|
ホストの電源管理デバイスのタイプ
|
いいえ
|
はい
|
はい
|
--power_management-enabled
|
ブール値
|
電源管理設定が有効化または無効化されているかを示します。
|
いいえ
|
はい
|
はい
|
--power_management-address
|
文字列
|
電源管理デバイスのホスト名または IP アドレス
|
いいえ
|
はい
|
はい
|
--power_management-user_name
|
文字列
|
電源管理の有効なユーザー名
|
いいえ
|
はい
|
はい
|
--power_management-password
|
文字列
|
電源管理用の有効かつ堅固なパスワード
|
いいえ
|
はい
|
はい
|
--power_management-options-option
|
コレクション
|
選択した
power_management-type 用のフェンシングオプション
|
いいえ
|
はい
|
はい
|
--reboot_after_installation
|
ブール値
|
VDSM インストール後にホストが再起動するかをどうかを定義します。
|
いいえ
|
はい
|
いいえ
|
--power_management-options-option パラメーターは、以下の表に記載したサブパラメーターを使用するコレクションです。
表4.18 --power_management-options-option パラメーター
| 名前 | タイプ | 説明 |
|---|---|---|
option.name
|
文字列
|
電源管理のオプション名
|
option.value
|
文字列
|
電源管理のオプション値
|
例4.17 新規ホストの作成
[RHEVM shell (connected)]# add host --name Host1 --address host1.example.com --root_password p@55w0rd! --cluster-name Default
例4.18 ホストの更新
[RHEVM shell (connected)]# update host Host1 --name Host2
例4.19 ホストの削除
[RHEVM shell (connected)]# remove host Host1
以下の表には、ホストのリソースに対するアクションをまとめています。
表4.19 host アクション
| アクション | 説明 |
|---|---|
activate | ホストをアクティブ化します。 |
approve | ホストを承認します。 |
commitnetconfig | ネットワーク設定を保存します。 |
deactivate | ホストを非アクティブ化します。 |
fence | ホストをフェンスします。 |
forceselectspm | Storage Pool Manager に設定するホストを選択します。 |
install | ホストで VDSM をインストールします。 |
iscsidiscover | iSCSI 検出コマンドを実行します。 |
iscsilogin | iSCSI ログインコマンドを実行します。 |
以下の表では、
fence アクションのその他のオプションを表示しています。
表4.20 Fencing オプション
| オプション | 説明 |
|---|---|
manual | ホストを手動でフェンスします。このアクションを使用して、ホストの応答がなくなり手動でリブートされたことを Manager に確認します。 |
restart | ホストを再起動します (停止、待機、ステータス、開始、待機、ステータスとして実装)。 |
start | ホストの電源を入れます。 |
stop | ホストの電源を切ります。 |
status | ホストの実行ステータスを確認します。 |
例4.20 ホストが再起動されていることの確認
[RHEVM shell (connected)]# action host Host1 fence --fence_type manual

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.