给虚拟机VMWare下的redhat5.5根分区扩容(4)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:14 点击:次
p> 262160 blocks (5.00%) reserved for the super user
p> First data block=0
p> Maximum filesystem blocks=4294967296
p> 160 block groups
p> 32768 blocks per group, 32768 fragments per group
p> 16416 inodes per group
p> Superblock backups stored on blocks:
p> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
p> 4096000
p>
p> Writing inode tables: done
p> Creating journal (32768 blocks): done
p> Writing superblocks and filesystem accounting information: done
p>
p> This filesystem will be automatically checked every 29 mounts or
p> 180 days, whichever comes first. Use tune2fs -c or -i to override.
p> 到此为止,我们就新建了一个分区/dev/sda3,此时我们已经可以通过挂载来使用这个新的空间;但是,因为数据库是安装在
p>根目录上的,目前根目录空间已经使用完毕,所以能把新建的分区使用在更目录上,分担根目录的空间,才能解决问题。
p>
p>第四步:基于LVM扩充根分区
p> [root@etl110 ~]# lvs
p> /dev/hdc: open failed: 找不到介质
p> LV VG Attr LSize Origin Snap% Move Log Copy% Convert
p> lv_home VolGroup00 -wi-ao 2.00G
p> lvm_root VolGroup00 -wi-ao 15.59G
p> lvm_swap VolGroup00 -wi-ao 2.28G
p>
p> [root@etl110 ~]# pvcreate /dev/sda3
p> Physical volume "/dev/sda3" successfully created
p>
p> [root@etl110 ~]# vgextend VolGroup00 /dev/sda3
p> /dev/hdc: open failed: 找不到介质
p> Volume group "VolGroup00" successfully extended
p>
p> [root@etl110 ~]# vgdisplay
p> /dev/hdc: open failed: 找不到介质
p> --- Volume group ---
p> VG Name VolGroup00
p> System ID
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>