Linux VPS下启用未使用的硬盘空间扩充LVM
SSH登陆后,查看现有分区、挂载及swap情况:
可以看到大概8G的硬盘空间分布情况
df -hal
free -m
[root@XenSystem ~]# df -hal
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
5.7G 1.1G 4.4G 20% /
proc 0 0 0 – /proc
sysfs 0 0 0 – /sys
devpts 0 0 0 – /dev/pts
/dev/xvda1 99M 27M 67M 29% /boot
tmpfs 257M 0 257M 0% /dev/shm
none 0 0 0 – /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 – /var/lib/nfs/rpc_pipefs[root@XenSystem~]# free -m
total used free shared buffers cached
Mem: 512 506 5 0 447 9
-/+ buffers/cache: 49 463
Swap: 2079 0 2079
查看硬盘设备列表:
fdisk -l
Disk /dev/xvdb: 23.6 GB, 23622320128 bytes
255 heads, 63 sectors/track, 2871 cylinders
Units = cylinders of 1606
…阅读全文