给虚拟机VMWare下的redhat5.5根分区扩容(6)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:14 点击:次
p> tmpfs /dev/shm tmpfs defaults 0 0
p> devpts /dev/pts devpts gid=5,mode=620 0 0
p> sysfs /sys sysfs defaults 0 0
p> proc /proc proc defaults 0 0
p> /dev/VolGroup00/lvm_swap swap swap defaults 0 0
p>
p> 检查文件系统:e2fsck -f /dev/mapper/VolGroup00-lvm_root
p> 然后,告诉系统,分割区大小有调整:resize2fs /dev/mapper/VolGroup00-lvm_root
p>
p> [root@etl110 ~]# e2fsck -f /dev/mapper/VolGroup00-lvm_root
p> e2fsck 1.39 (29-May-2006)
p> /dev/mapper/VolGroup00-lvm_root is mounted.
p>
p> WARNING!!! Running e2fsck on a mounted filesystem may cause
p> SEVERE filesystem damage.
p>
p> Do you really want to continue (y/n)? yes
p>
p> /dev/mapper/VolGroup00-lvm_root: recovering journal
p> Pass 1: Checking inodes, blocks, and sizes
p> Pass 2: Checking directory structure
p> Pass 3: Checking directory connectivity
p> Pass 4: Checking reference counts
p> Pass 5: Checking group summary information
p>
p> /dev/mapper/VolGroup00-lvm_root: ***** FILE SYSTEM WAS MODIFIED *****
p> /dev/mapper/VolGroup00-lvm_root: ***** REBOOT LINUX *****
p> /dev/mapper/VolGroup00-lvm_root: 225531/4088000 files (1.6% non-contiguous), 3897107/4087808 blocks
p>
p> [root@etl110 ~]# resize2fs /dev/mapper/VolGroup00-lvm_root
p> resize2fs 1.39 (29-May-2006)
p> Filesystem at /dev/mapper/VolGroup00-lvm_root is mounted on /; on-line resizing required
p> Performing an on-line resize of /dev/mapper/VolGroup00-lvm_root to 9330688 (4k) blocks.
p> The filesystem on /dev/mapper/VolGroup00-lvm_root is now 9330688 blocks long.
p>
p> 到此所有操作完毕,使用df -h来查看扩充后的空间大小:
p> [root@etl110 ~]# df -h
p> 文件系统 容量 已用 可用 已用% 挂载点
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>