# df -h
Filesystem サイズ 使用 残り 使用% マウント位置
/dev/mapper/VG00-root
9.7G 5.0G 4.3G 55% /
/dev/mapper/VG00-var 3.9G 390M 3.3G 11% /var
/dev/mapper/VG00-backup
25G 17G 6.1G 74% /backup
/dev/sda1 99M 55M 40M 59% /boot
tmpfs 1.9G 0 1.9G 0% /dev/shm
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VG00 lvm2 a- 67.62G 22.62G
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
backup VG00 -wi-ao 25.00G
root VG00 -wi-ao 10.00G
swap VG00 -wi-ao 6.00G
var VG00 -wi-ao 4.00G
# lvextend -L 16G /dev/VG00/var
Extending logical volume var to 16.00 GB
Logical volume var successfully resized
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
backup VG00 -wi-ao 25.00G
root VG00 -wi-ao 10.00G
swap VG00 -wi-ao 6.00G
var VG00 -wi-ao 16.00G
# resize2fs /dev/VG00/var
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VG00/var is mounted on /var; on-line resizing required
Performing an on-line resize of /dev/VG00/var to 4194304 (4k) blocks.
The filesystem on /dev/VG00/var is now 4194304 blocks long.
# df -h
Filesystem サイズ 使用 残り 使用% マウント位置
/dev/mapper/VG00-root
9.7G 5.0G 4.3G 55% /
/dev/mapper/VG00-var 16G 393M 15G 3% /var
/dev/mapper/VG00-backup
25G 17G 6.1G 74% /backup
/dev/sda1 99M 55M 40M 59% /boot
tmpfs 1.9G 0 1.9G 0% /dev/shm
参考
0 件のコメント:
コメントを投稿