付録B LVM 設定ファイル
LVM は複数の設定ファイルに対応しています。システム起動時に
lvm.conf 設定ファイルが、環境変数 LVM_SYSTEM_DIR によって指定されたディレクトリからロードされます。このディレクトリはデフォルトでは /etc/lvm にセットしてあります。
The
lvm.conf file can specify additional configuration files to load. Settings in later files override settings from earlier ones. To display the settings in use after loading all the configuration files, execute the lvmconfig command.
追加の設定ファイルのロードに関する情報は、「ホストタグ」 をご覧ください。
B.1. LVM 設定ファイル リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
LVM 設定に使用されるファイルは以下のとおりです。
- /etc/lvm/lvm.conf
- ツールで読み込まれる中央設定ファイル
- etc/lvm/lvm_hosttag.conf
- For each host tag, an extra configuration file is read if it exists:
lvm_hosttag.conf. If that file defines new tags, then further configuration files will be appended to the list of files to read in. For information on host tags, see 「ホストタグ」. - LVM profiles
- An LVM profile is a set of selected customizable configuration settings that can be implemented for specific environments. The settings in an LVM profile can be used to override existing configuration. For information on LVM profiles see 「LVM Profiles」.
LVM 設定ファイルの他にも、LVM を稼働しているシステムには LVM システムセットアップに影響する以下のようなファイルが含まれます。
- /etc/lvm/cache/.cache
- デバイス名フィルターキャッシュファイル (設定可能)
- /etc/lvm/backup/
- ボリュームグループメタデータの自動バックアップ用ディレクトリ (設定可能)
- /etc/lvm/archive/
- ボリュームグループメタデータの自動アーカイブ用ディレクトリ (ディレクトリパスとアーカイブ履歴の範囲に関して設定可能)
- /var/lock/lvm/
- 単一ホストの設定では、並行ツール実行によるメタデータの破損を防止するロックファイルが使用され、クラスターでは、クラスター全域の DLM が使用されます。