| 1 | [[PageOutline]] |
| 2 | |
| 3 | = InstaGENI/ProtoGENI extra disk space = |
| 4 | To get extra disk space on your PG/IG VMs you will need to do two steps: |
| 5 | 1. request it in your rspec |
| 6 | 1. mount it once your VM is booted |
| 7 | |
| 8 | == 1. RSpec modification == |
| 9 | 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: |
| 10 | {{{ |
| 11 | <emulab:xen cores="2" ram="2048" disk="5"/> |
| 12 | }}} |
| 13 | |
| 14 | An example of a complete rspec: |
| 15 | {{{ |
| 16 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| 17 | <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" |
| 18 | xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"> |
| 19 | <node client_id="node0" component_manager_id="urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm" exclusive="true"> |
| 20 | <sliver_type name="emulab-xen"> |
| 21 | <emulab:xen cores="2" ram="2048" disk="5"/> |
| 22 | </sliver_type> |
| 23 | </node> |
| 24 | </rspec> |
| 25 | }}} |
| 26 | |
| 27 | == 2. Mount the space == |
| 28 | |
| 29 | What you have to do is login to the VM after it is reserved and run these |
| 30 | commands: |
| 31 | {{{ |
| 32 | |
| 33 | sudo bash |
| 34 | /usr/testbed/bin/mkextrafs /mnt |
| 35 | exit |
| 36 | |
| 37 | Then you should see a new device that will look like: |
| 38 | /dev/xvda4 7.9G 147M 7.4G 2% /mnt |
| 39 | }}} |