SLE Microクライアントの登録
このセクションでは、x86-64、arm64、およびIBM Z (s390x) アーキテクチャでSLE Microオペレーティングシステム5.1、5.2、5.3、5.4、および5.5を実行しているクライアントの登録について説明します。
SLE Microはトランザクション更新を使用します。 トランザクション更新はアトミックであり(すべての更新はすべての更新が成功した場合にのみ適用されます)、ロールバックをサポートします。 システムが再起動されるまで変更はアクティブ化されないため、実行中のシステムには影響しません。
For more information on transactional updates and rebooting, see https://documentation.suse.com/sles/15-SP7/html/SLES-all/cha-transactional-updates.html.
本章で説明するクライアント登録は、次の手順で構成されます。
-
Web UIまたはコマンドラインインタフェースを使用して、新しいクライアントのオペレーティングシステムとアーキテクチャのソフトウェアチャンネルを同期します。
-
Web UIまたはコマンドラインインタフェースを使用してクライアントをSUSE Multi-Linux Managerサーバに登録します。
追加のセクションでは、登録手順を確認し、検証する方法について説明します。
1. ソフトウェアチャンネルの追加
SLE MicroクライアントをSUSE Multi-Linux Managerサーバに登録する前に、必要なソフトウェアチャンネルを追加して同期する必要があります。
ソフトウェアチャンネルは、Web UIまたはコマンドラインから追加できます。
|
In the following section, descriptions often default to the |
Web UI手順には、次の製品が必要です。
| OSバージョン | 製品名 |
|---|---|
SLE Micro 5.5 x86-64 |
SUSE Linux Enterprise Micro 5.5 x86_64 |
SLE Micro 5.5 arm64 |
SUSE Linux Enterprise Micro 5.5 aarch64 |
SLE Micro 5.5 s390x |
SUSE Linux Enterprise Micro 5.5 s390x |
SLE Micro 5.4 x86-64 |
SUSE Linux Enterprise Micro 5.4 x86_64 |
SLE Micro 5.4 arm64 |
SUSE Linux Enterprise Micro 5.4 aarch64 |
SLE Micro 5.4 s390x |
SUSE Linux Enterprise Micro 5.4 s390x |
SLE Micro 5.3 x86-64 |
SUSE Linux Enterprise Micro 5.3 x86_64 |
SLE Micro 5.3 arm64 |
SUSE Linux Enterprise Micro 5.3 aarch64 |
SLE Micro 5.3 s390x |
SUSE Linux Enterprise Micro 5.3 s390x |
SLE Micro 5.2 x86-64 |
SUSE Linux Enterprise Micro 5.2 x86_64 |
SLE Micro 5.2 arm64 |
SUSE Linux Enterprise Micro 5.2 aarch64 |
SLE Micro 5.2 s390x |
SUSE Linux Enterprise Micro 5.2 s390x |
SLE Micro 5.1 x86-64 |
SUSE Linux Enterprise Micro 5.1 x86_64 |
SLE Micro 5.1 arm64 |
SUSE Linux Enterprise Micro 5.1 aarch64 |
SLE Micro 5.1 s390x |
SUSE Linux Enterprise Micro 5.1 s390x |
SUSE Multi-Linux ManagerのWeb UIで、に移動します。
Locate the appropriate products for your client operating system and architecture using the search bar, and check the appropriate product. This will automatically check all mandatory channels. Also all recommended channels are checked as long as the
include recommendedtoggle is turned on. Click the arrow to see the complete list of related products, and ensure that any extra products you require are checked.製品の追加をクリックし、製品の同期が完了するまで待機します。
または、コマンドプロンプトからチャンネルを追加できます。 このプロシージャでは、次の製品が必要です。
| OSバージョン | ベースチャンネル | 更新チャンネル |
|---|---|---|
SLE Micro 5.5 x86-64 |
sle-micro-5.5-pool-x86_64 |
sle-micro-5.5-updates-x86_64 |
SLE Micro 5.5 arm64 |
sle-micro-5.5-pool-arm64 |
sle-micro-5.5-updates-arm64 |
SLE Micro 5.5 IBM Z (s390x) |
sle-micro-5.5-pool-s390x |
sle-micro-5.5-updates-s390x |
SLE Micro 5.4 x86-64 |
sle-micro-5.4-pool-x86_64 |
sle-micro-5.4-updates-x86_64 |
SLE Micro 5.4 arm64 |
sle-micro-5.4-pool-arm64 |
sle-micro-5.4-updates-arm64 |
SLE Micro 5.4 IBM Z (s390x) |
sle-micro-5.4-pool-s390x |
sle-micro-5.4-updates-s390x |
SLE Micro 5.3 x86-64 |
sle-micro-5.3-pool-x86_64 |
sle-micro-5.3-updates-x86_64 |
SLE Micro 5.3 arm64 |
sle-micro-5.3-pool-arm64 |
sle-micro-5.3-updates-arm64 |
SLE Micro 5.3 IBM Z (s390x) |
sle-micro-5.3-pool-s390x |
sle-micro-5.3-updates-s390x |
SLE Micro 5.2 x86-64 |
suse-microos-5.2-pool-x86_64 |
suse-microos-5.2-updates-x86_64 |
SLE Micro 5.2 arm64 |
suse-microos-5.2-pool-aarch64 |
suse-microos-5.2-updates-aarch64 |
SLE Micro 5.2 IBM Z (s390x) |
suse-microos-5.2-pool-s390x |
suse-microos-5.2-updates-s390x |
SLE Micro 5.1 x86-64 |
suse-microos-5.1-pool-x86_64 |
suse-microos-5.1-updates-x86_64 |
SLE Micro 5.1 arm64 |
suse-microos-5.1-pool-aarch64 |
suse-microos-5.1-updates-aarch64 |
SLE Micro 5.1 IBM Z (s390x) |
suse-microos-5.1-pool-s390x |
suse-microos-5.1-updates-s390x |
SUSE Multi-Linux Managerコンテナホストのコマンドプロンプトで、 root として、適切なチャンネルを追加します。
mgrctl exec -- mgr-sync add channel <channel_label_1> mgrctl exec -- mgr-sync add channel <channel_label_2> mgrctl exec -- mgr-sync add channel <channel_label_n>同期は自動的に開始されます。 チャンネルを手動で同期する場合、次のコマンドを使用します。
mgrctl exec -- mgr-sync sync --with-children <channel_name>続行前に、同期が完了していることを確認してください。
2. 同期ステータスの確認
In the SUSE Multi-Linux Manager Web UI, navigate to and select the
Productstab. This dialog displays a completion bar for each product when they are being synchronized.Alternatively, you can navigate to , then click the channel associated to the repository. Navigate to the
Repositoriestab, then clickSyncand checkSync Status.
tailを実行する前に利用可能なログを一覧表示するには、コンテナホストで次のコマンドを実行します。
mgrctl exec ls /var/log/rhn/reposync/SUSE Multi-Linux Managerコンテナホストのコマンドプロンプトで、rootとして、チャンネルログファイルの同期を確認します。
mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。
3. クライアントの登録
|
SLE Microクライアントは、登録後に再起動が必要です。 Following the bootstrapping process, automatic booting is disabled on SLE Micro clients. This change was implemented due to intermittent automatic reboots, which could occur before Salt could relay the results of applying the bootstrap Salt state. 登録が完了すると、再起動が自動的にスケジュールされますが、この再起動はデフォルトの再起動マネージャのメンテナンスウィンドウに従って実行されます。このウィンドウは、クライアントが登録されてから数時間後になる場合があります。迅速に登録してシステムをシステム一覧に表示するには、登録スクリプトの完了後にクライアントを手動で再起動することをお勧めします。 |
クライアントを登録するには、ブートストラップリポジトリが必要です。 デフォルトでは、ブートストラップリポジトリは自動的に作成され、すべての同期製品に対して毎日再生成されます。 コンテナホストのコマンドプロンプトからブートストラップリポジトリを手動で作成できます。
mgrctl exec -ti mgr-create-bootstrap-repo
クライアントの登録については、クライアントの登録を参照してください。
SLE Microシステムでブートストラップスクリプトを使用する場合は、スクリプトの証明書セクションに次のコンテンツがあることを確認します。
ORG_CA_CERT=RHN-ORG-TRUSTED-SSL-CERT ORG_CA_CERT_IS_RPM_YN=0
ブートストラップスクリプトを直接編集して設定を追加するか、次のパラメータを使用してブートストラップスクリプトを作成します。
mgrctl exec -ti -- mgr-bootstrap --script=bootstrap-sle-micro.sh \
--ssl-cert=/srv/www/htdocs/pub/RHN-ORG-TRUSTED-SSL-CERT
4. SLE Microの再起動
SLE Micro is a transactional system. Transactional updates in general support several reboot methods. It is recommended to use systemd for rebooting in systems managed by SUSE Multi-Linux Manager. Using other methods can lead to undesired behavior.
When bootstrapping a transactional system on SUSE Multi-Linux Manager, systemd will be configured as the reboot method (REBOOT_METHOD), if the system is in its default configuration. Such a configuration allows SUSE Multi-Linux Manager to control the reboot action, and rebooting can be performed immediately or scheduled with SUSE Multi-Linux Manager as wanted.
4.1. 背景情報
By default, the reboot method during client installation is set to auto. With the auto boot method, rebootmgrd will be used to reboot the system according to the configured policies if the service is running. Policies can be to reboot instantly or during a maintenance window. For more information, see the rebootmgrd(8) man page. Otherwise if rebootmgrd is not running, SUSE Multi-Linux Manager will call systemctl reboot.
|
Using any method different from |