Commit 77628601 authored by Robert Ricci's avatar Robert Ricci

Another example over to a profile

parent dc06b900
"""This profile demonstrates how to add some extra *local* disk space on your node. In general nodes have much more disk space then what you see with `df` when you log in. That extra space is in unallocated partitions or additional disk drives. An *ephemeral blockstore* is how you ask for some of that space to be allocated and mounted as a **temporary** filesystem (temporary means it will be lost when you terminate your experiment).
"""This profile demonstrates how to add some extra *local* disk space on your
node. In general nodes have much more disk space then what you see with `df`
when you log in. That extra space is in unallocated partitions or additional
disk drives. An *ephemeral blockstore* is how you ask for some of that space to
be allocated and mounted as a **temporary** filesystem (temporary means it will
be lost when you terminate your experiment).
Instructions:
Log into your node, your **temporary** file system in mounted at `/mydata`.
......@@ -11,11 +16,8 @@ import geni.rspec.pg as rspec
# Import the emulab extensions library.
import geni.rspec.emulab
# Create a portal context.
pc = portal.Context()
# Create a Request object to start building the RSpec.
request = pc.makeRequestRSpec()
request = portal.context.makeRequestRSpec()
# Allocate a node and ask for a 30GB file system mounted at /mydata
node = request.RawPC("node")
......@@ -23,4 +25,4 @@ bs = node.Blockstore("bs", "/mydata")
bs.size = "30GB"
# Print the RSpec to the enclosing page.
pc.printRequestRSpec()
portal.context.printRequestRSpec()
......@@ -342,7 +342,7 @@ the RSpec.
@section[#:tag "local-diskpace"]{Add temporary local disk space to a node}
@code-sample["geni-lib-local-diskspace.py"]
@profile-code-sample["PortalProfiles" "local-diskspace"]
This example demonstrates how to request @bold{extra temporary diskspace}
on a node. The extra disk space is allocated from unused disk partitions,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment