wiki:HowTo/IGGetExtraDIskSpace

InstaGENI/ProtoGENI extra disk space

To get extra disk space on your PG/IG VMs you will need to do two steps:

  1. request it in your rspec
  2. mount it once your VM is booted

1. RSpec modification

You can specify memory, cores and disk space for your IG/PG VMs using the following rspec tag which is a child of sliver_type:

<emulab:xen cores="2" ram="2048" disk="5"/>

An example of a complete rspec:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rspec generated="2014-03-22T01:53:21.460+01:00" generated_by="Experimental jFed Rspec Editor" type="request" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" xmlns="http://www.geni.net/resources/rspec/3"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1">
  <node client_id="node0" component_manager_id="urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm" exclusive="true">
      <sliver_type name="emulab-xen">
        <emulab:xen cores="2" ram="2048" disk="5"/>
    </sliver_type>
  </node>
</rspec>

2. Mount the space

What you have to do is login to the VM after it is reserved and run these commands:

sudo bash 
/usr/testbed/bin/mkextrafs /mnt 
exit  

Then you should see a new device that will look like:
/dev/xvda4      7.9G  147M  7.4G   2% /mnt 
Last modified 4 years ago Last modified on 11/10/15 14:58:48