I've got XenCenter 7 running a Ubuntu 14.04 x64 box headless/GUI-less with Seafile.
I was initially just testing Seafile but now I want to test further and move toward production use. I started with a 16GB single VD. Even with only light testing, I've already used up this space.
I shut down the VM and used Xen to expand the disk to 50GB, that worked fine.
Now I just can't figure out how to extend the partition in Ubuntu. Some various tutorials I've read just didn't work.
It would seem that because it's just one VD, and it's the system drive, that I have to completely delete the partition in order to extend it? I'm not sure about that.
Here is fdisk -l
output:
Disk /dev/xvda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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: 0x0000a051
Device Boot Start End Blocks Id System
/dev/xvda1 2048 499711 248832 83 Linux
/dev/xvda2 501758 33552383 16525313 5 Extended
/dev/xvda5 501760 33552383 16525312 8e Linux LVM
Disk /dev/mapper/seafile--vg-root: 15.7 GB, 15699279872 bytes
255 heads, 63 sectors/track, 1908 cylinders, total 30662656 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/seafile--vg-root doesn't contain a valid partition table
Disk /dev/mapper/seafile--vg-swap_1: 1195 MB, 1195376640 bytes
255 heads, 63 sectors/track, 145 cylinders, total 2334720 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/seafile--vg-swap_1 doesn\'t contain a valid partition table
I have no idea why it's saying "doesn't contain a valid partition table". Nothing is making sense now.
At the top it says /dev/xvda is 53.7GB, this seems right since I changed the drive to 50GB. But the seafile--vg-root being 15.7GB is where the extra space needs to go.
I'm not sure if this can be expanded in place, or I have to delete and recreate it, or if it has to be done by booting to a recovery disk, etc.
/dev/xvda1 is ext2
/dev/xvda5 is LVM2_member
/dev/mapper/seafile--vg-root is ext4
/dev/mapper/seafile--vg-swap_1 is swap
Lastly, I was thinking maybe I should start over if I'm going to use in production and switch to CentOS7 instead of this old Ubuntu. If I wipe it all out, that kind of solves that problem, I can create my partitions differently too, or separate Seafile data on different VDs or something like that.