LXC・LXDのinstance、profileと資源管理5 / 5

Lifecycleと復旧

lxc snapshot web01 before-change
lxc copy web01 web02
lxc stop web01
lxc restore web01 before-change
lxc info web01 --show-log

snapshotの保存範囲やstatefulな保存の可否はbackendとguestの条件に依存する。copyは別instanceを作り、network固有の設定や識別情報を整える。restoreは保存点への復元で、復元後に必要なdataの状態も確認する。lxc deleteはinstanceを削除し、stopは停止する。

起動失敗はimage、root disk、profile/device、hostのkernel機能、権限・MAC policy、consoleやlogを順に絞る。従来LXCではlxc-create、lxc-start、lxc-stop、lxc-info、lxc-attach等を使い、LXDのAPI管理とは異なる設定・状態を扱う。

学習パスへ
参考資料