Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Help resizing bootstack VM kvm which is 100% full



I have inherrited sole ownership of an 14 node openstack which was setup via Canonical "jumpstart" which was working fine for the mostpart but is now broken completely..

cant juju or anything

Error / warning:

@maas:~$ juju status
WARNING ignoring invalid API endpoint environment UUID

but can luckily still ssh to VMs from maas, and ssh to other VMs that are part of the infrastructure from there.


bootstack vm on the main hypervisor is at 100% disk usage.

@bootstrap:/home$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       9.8G  9.8G     0 100% /

What I've done: ps –faux | grep bootstrap -> shows the drive file is under /dev/mapper/system-bootstrap


@hypervisor:~$ ls -ahlti /dev/mapper

total 0
1440 lrwxrwxrwx  1 root root       8 Sep 22 15:50 system-bootstrap -> ../dm-11

I've done a extention of the lvm

sudo lvextend --size +10G /dev/system/bootstrap
  Extending logical volume bootstrap to 20.00 GiB
  Logical volume bootstrap successfully resized

but I'm not very use to openstack style virtualization (mostly work with VSphere )

PS: We're getting a Canonical support contract in place but that might take ages and researchers want the data out of some VMs which were happily working even though the dashboard was inaccessible.


I know that after resizing the LVM partitions would then usually need to be resized but super confused with the way this was setup...

hypervisor:~$ ls -ahlti /dev/mapper | grep bootstrap
1440 lrwxrwxrwx  1 root root       8 Sep 22 15:50 system-bootstrap -> ../dm-11

@hypervisor:~$ ls -ahlti /dev/ | grep dm-11
 9267 brw-rw----  1 libvirt-qemu kvm     252,  11 Sep 22 17:13 dm-11


Can I just do a

virsh shutdown bootstrap

and then resize using qemu-img ?

1.  stop the VM 
2.  run qemu-img resize vmdisk.img +10G to increase image size by 10Gb
3.  start the VM, resize the partitions and LVM structure within it normally

Help *sigh