Skip to content

Instantly share code, notes, and snippets.

@ffund
Last active August 3, 2016 22:56
Show Gist options
  • Save ffund/45689ceb21bff1ffe54f15ed060e99eb to your computer and use it in GitHub Desktop.
Save ffund/45689ceb21bff1ffe54f15ed060e99eb to your computer and use it in GitHub Desktop.
RSpec for getting extra storage space on an ExoGENI VM.

This is an RSpec for getting extra storage space on an ExoGENI VM of type XOXLarge.

Note the line:

<storage:storage resource_type="LUN" do_format="true" fs_param="-F -b 1024" fs_type="ext4" mnt_point="/mnt" capacity="942"/>

Reduce the "942" to a smaller number if you don't need so much space.

Your slice will appear to have two resources: one called "master" and one called "master-stor". Log in to the one called "master" (when it is available).

ExoGENI VMs use /bin/sh as the default shell; if you prefer Bash (as all normal people would), just run bash when you log in to get a Bash shell.

To start off with, you'll have 75 GB of storage (since this is an XOXLarge). Additionally, this RSpec gives you another ~942 GB of storage mounted at /mnt, which you can see in the following output:

ffund01@master:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda         75G  1.2G   74G   2% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            5.9G  4.0K  5.9G   1% /dev
tmpfs           1.2G  356K  1.2G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            5.9G     0  5.9G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/sda        927G  6.3M  880G   1% /mnt

References:

<rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:storage="http://www.geni.net/resources/rspec/ext/storage/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd http://www.geni.net/resources/rspec/ext/nodegroup/1 http://groups.geni.net/exogeni/attachment/wiki/RspecExtensions/nodegroup/1/nodegroup.xsd http://www.geni.net/resources/rspec/ext/storage/1 http://groups.geni.net/exogeni/attachment/wiki/RspecExtensions/storage/1/storage.xsd" type="request">
<node client_id="master" exclusive="false">
<site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/>
<sliver_type name="XOXlarge">
</sliver_type>
<interface client_id="master:stor0">
</interface>
<emulab:routable_control_ip xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"/>
</node>
<node client_id="master-stor" exclusive="false">
<site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/>
<sliver_type name="storage">
<storage:storage resource_type="LUN" do_format="true" fs_param="-F -b 1024" fs_type="ext4" mnt_point="/mnt" capacity="942"/>
</sliver_type>
<interface client_id="masterstor:if0"/>
</node>
<link client_id="storage-lan">
<interface_ref client_id="masterstor:if0"/>
<interface_ref client_id="master:stor0"/>
</link>
</rspec>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment