扩展磁盘空间
硬盘空间为20G,使用vSphereClient增加磁盘大小,需要再增加10G空间;
扩展完后,重启系统,再次使用fdisk-l查看,会发现硬盘空间变大了;
[root@linuxprobe~]#fdisk-lDisk/dev/sda:32.2GB,32212254720bytes255heads,63sectors/track,3916cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x0005210cDeviceBootStartEndBlocksIdSystem/dev/sda1*12620480083LinuxPartition1doesnotendoncylinderboundary./dev/sda22613011024000083Linux/dev/sda313011497157286482Linuxswap/Solaris/dev/sda414972611895283283Linux[root@linuxprobe~]#df-hTFilesystemTypeSizeUsedAvailUse%Mountedon/dev/sda2ext49.7G1.5G7.7G16%/tmpfstmpfs939M0939M0%/dev/shm/dev/sda1ext4194M34M151M19%/boot/dev/sda4ext48.5G148M7.9G2%/data