Mik*_*e B 4 linux filesystems centos vmware-esx
VMWare / CentOS 5.x
我的 CentOS VM 系统空间不足,因此 VMWare 管理员增加了分配给 VM 的存储空间。关闭系统电源并重新启动后,操作系统仍显示相同的旧空间量。
有人可以建议我需要完成哪些具体步骤才能让 CentOS 5 识别新空间?我的理解是我可能需要运行一个分区工具来合并新空间。
如果有帮助,这里是输出fdisk -l
:
Disk /dev/sda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 128488+ 83 Linux
/dev/sda2 17 277 2096482+ 82 Linux swap / Solaris
/dev/sda3 278 1566 10353892+ 83 Linux
Run Code Online (Sandbox Code Playgroud)
这是 /etc/fstab 的内容:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
Run Code Online (Sandbox Code Playgroud)
这是 pvs 命令的输出:
[root@foo ~]# pvs
/dev/hdc: open failed: No medium found
Run Code Online (Sandbox Code Playgroud)
这是 pvscan 命令的输出:
[root@foo ~]# pvscan
No matching physical volumes found
Run Code Online (Sandbox Code Playgroud)
在 Centos 上调整分区大小:http : //www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-disk-storage-parted-resize-part.html
如果您使用的是 LVM,则必须先pvresize
达到所需大小,然后lvextend
再调整 LV ,然后再调整分区大小。
不需要vgresize
,它用于添加 PV,而不是用于调整 volgroup 的大小。
归档时间: |
|
查看次数: |
19781 次 |
最近记录: |