Help:Adding Disk Space

From Wikitech
Jump to: navigation, search

Cloud VPS instances have a maximum storage quota based on the size of the instance. By default only 20G of the allowed quota is allocated to the instance as the / volume.

The additional space is allocated to /srv. If you already have content in /srv, it will be overwritten. Back up your content before proceeding.

Adding space as a second volume

The additional space can be added to the instance as a separate logical volume. The easiest way to do this is by enabling the role::labs::lvm::srv Puppet role:

  1. Go to https://horizon.wikimedia.org/project/.
  2. Set "your project" in the project filter
  3. Find the instance you want to change the in the table below that
  4. Click the "Puppet Configuration" tab to get to the Puppet management screen for that instance
  5. In the row for labs::lvm::srv, click "apply Role"
  6. In the pop-up, click "Apply"
  7. Wait for the Puppet job to run, OR connect to the instance and run sudo puppet agent --test --verbose

After the Puppet run completes you should see a new volume mounted at /srv. The size of this volume will depend on the amount of remaining quota for your instance.

Resize root partition

See Help:Resize root partition for an explanation of how to attempt to resize the / volume for an existing instance.