Show Table of Contents
15.2.2. swap 用の LVM2 論理ボリュームを作成する
swap ボリュームグループを追加します (
/dev/VolGroup00/LogVol02 が追加する swap ボリュームであるとします)。
- サイズが 2 GB の LVM2 論理ボリュームを作成します。
#
lvcreate VolGroup00 -n LogVol02 -L 2G - 新しい swap 領域をフォーマットします。
#
mkswap /dev/VolGroup00/LogVol02 - 次のエントリーを
/etc/fstabファイルに追加します。#
/dev/VolGroup00/LogVol02 swap swap defaults 0 0 - 拡張した論理ボリュームを有効にします。
#
swapon -v /dev/VolGroup00/LogVol02
論理ボリュームが正常に作成されたかどうかテストするには、
cat /proc/swaps または free を使って swap 領域を確認します。

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.