openstackdevstack

How to increase capacity of open stack hypervisor local disks


I configured an open stack with devstack this time, but I think there will be a shortage of local storage, so I'm going to add it. So we have a 2TB hard drive that is composed of raid, so we're going to add it to the open stack, do you know how to do it?


Solution

  • If you are talking about ephemeral storage, I believe Devstack puts that on /opt/stack/data/nova/instances (you may want to double-check that on your system). You would have to mount your disk there.

    You may want to consider putting the entire /opt/stack onto the disk, since other large storage consumers such as Cinder and Swift would then have lots of space as well.

    I am a bit worried. What are your plans with this Devstack? Note that Devstack is suitable for testing, experimenting and learning, but nothing else. Among other problems, a Devstack cloud can't be rebooted without manual intervention.

    EDIT:

    I would try it as follows:

    The first two steps are precautions against copying inconsistent data.

    Better, reinstall that server, mount the 2TB drive on /opt, then rebuild the Devstack.

    Note that only works if your instances use ephemeral storage. If they use volumes, you need to copy Cinder data instead of Nova.