LVサイズを拡張する
サイズの縮小と違い、動的に変更することが可能
拡張するファイルシステムをマウントしたまま以下実行する。
- このままではサイズがかわっていないのでresize2fsコマンドを実行する
[root@localhost test]# resize2fs /dev/vg00/test
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg00/test is mounted on /share; on-line resizing required
Performing an on-line resize of /dev/vg00/test to 28835840 (4k) blocks.
The filesystem on /dev/vg00/test is now 28835840 blocks long. [root@localhost test]# df -h Filesystem サイズ 使用 残り 使用% マウント位置 /dev/mapper/vg00-test 124M 6.3M 112M 6% /test
以上でマウントしたままファイルシステムの拡張ができた。
|