Linux磁盘分区扩容,原地扩容
# e2fsck -f /dev/vdb1e2fsck 1.42.9 (28-Dec-2013)
/dev/vdb1 is mounted.
e2fsck: Cannot continue, aborting.
# resize2fs /dev/vdb1
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/vdb1 is mounted on /mnt/blockstorage; on-line resizing required
old_desc_blocks = 15, new_desc_blocks = 32
The filesystem on /dev/vdb1 is now 65535739 blocks long.
# mount -a
# df -h
Filesystem SizeUsed Avail Use% Mounted on
devtmpfs 471M 0471M 0% /dev
tmpfs 490M 0490M 0% /dev/shm
tmpfs 490M7.5M483M 2% /run
tmpfs 490M 0490M 0% /sys/fs/cgroup
/dev/mapper/centos-root 29G7.7G 22G27% /
/dev/vda1 1014M208M807M21% /boot
tmpfs 98M 12K 98M 1% /run/user/42
tmpfs 98M 0 98M 0% /run/user/0
/dev/vdb1 246G112G125G48% /mnt/blockstorage
页:
[1]