4.3.4. ボリュームグループの表示
LVM ボリュームグループのプロパティを表示するには、2つのコマンドが使用できます:
vgs
と vgdisplay
です。
The
vgscan
command will also display the volume groups, although its primary purpose is to scan all the disks for volume groups and rebuild the LVM cache file. For information on the vgscan
command, see 「キャッシュファイル構築の為にボリュームグループのディスクスキャン」.
The
vgs
command provides volume group information in a configurable form, displaying one line per volume group. The vgs
command provides a great deal of format control, and is useful for scripting. For information on using the vgs
command to customize your output, see 「LVM 用のカスタム報告」.
vgdisplay
コマンドは、固定した形式でボリュームグループの プロパティ(サイズ、エクステント、物理ボリュームの数量など)を表示します。以下にある 例では、ボリュームグループ new_vg
用の vgdisplay
コマンドの出力を示しています。ボリュームグループを指定しないと、全ての既存ボリュームグループが 表示されます。