增加虚拟Ubuntu服务器上分区的大小

我是一名Web开发人员,负责pipe理一个小型的虚拟Web服务器。 不幸的是,之前我从来没有和服务器pipe理员做过任何事情,所以我有点迷路了。

负责虚拟机的人已经增加了虚拟硬件的大小,并且我试图按照几个指南来介绍如何增加使用LVM的空间,但是我已经有点迷失了,并且担心我搞砸了一下。

fdisk -l显示以下内容:

Disk /dev/sda: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e6ec9 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 52426751 25962497 5 Extended /dev/sda3 499712 501757 1023 8e Linux LVM /dev/sda5 501760 52426751 25962496 8e Linux LVM Partition table entries are not in disk order Disk /dev/mapper/TBD--WEB1-root: 9403 MB, 9403629568 bytes 255 heads, 63 sectors/track, 1143 cylinders, total 18366464 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/TBD--WEB1-root doesn't contain a valid partition table Disk /dev/mapper/TBD--WEB1-swap_1: 17.2 GB, 17179869184 bytes 255 heads, 63 sectors/track, 2088 cylinders, total 33554432 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/TBD--WEB1-swap_1 doesn't contain a valid partition table 

和df -h显示:

 Filesystem Size Used Avail Use% Mounted on /dev/mapper/TBD--WEB1-root 8.7G 7.3G 979M 89% / udev 7.9G 4.0K 7.9G 1% /dev tmpfs 3.2G 244K 3.2G 1% /run none 5.0M 0 5.0M 0% /run/lock none 7.9G 0 7.9G 0% /run/shm /dev/sda1 228M 221M 0 100% /boot 

预先感谢您提供的任何帮助

尝试一下我以前的答案 – 它可能不完美,但应该勾勒出完成工作所需的基本步骤。