StarCluster - Mailing List Archive

Re deleting root volumes after termination

From: Steve Heistand <no email>
Date: Fri, 6 Sep 2013 07:51:26 -0700

Hash: SHA1

you can set the device to be deleted on termination with an ec2 command:

ec2-modify-instance-attribute -b "/dev/sda1=:true" 'instance_id'

and then use the starcluster ebsimage command to create a new AMI that
is permanently marked this way. (detaching any nonroot volumes before imaging)

or use the AWS dashboard/cli command to create a new AMI from the running instance.
in that operation there is an option to mark the root volume to be deleted.

If you dont want to create a new AMI then I would suggest something like
the ec2-modify-instance-attribute above placed in a userdata script that
is run at cluster start time.


On 09/05/2013 07:09 PM, Lyn Gerner wrote:
> Thanks Rayson, good stuff.
> Do you (does anyone) happen to know a cmd-line way of resetting this on the AMI so
> the instances that boot it always have their vols/devices set to delete on term? (As
> opposed to having to set this on every volume on every instance that gets launched.)
> I've been scouring the forums and 'net, and haven't come up w/anything slick.
> Thanks, Lyn
> On Wed, Sep 4, 2013 at 6:58 AM, <> wrote:
>> Send StarCluster mailing list submissions to
>> To subscribe or unsubscribe via the World Wide Web, visit
>> or, via email, send a message
>> with subject or body 'help' to
>> You can reach the person managing the list at
>> When replying, please edit your Subject line so it is more specific than "Re:
>> Contents of StarCluster digest..."
>> Today's Topics:
>> 1. Re: root volumes after termination (Rayson Ho) 2. Re: Loadbalancing error
>> against ubuntu QIIME AMI (Rayson Ho) 3. Re: root volumes after termination (Steve
>> Heistand)
>> ---------- Forwarded message ---------- From: Rayson Ho <> To:
>> Steve Heistand <> Cc: ""
>> <> Date: Wed, 4 Sep 2013 12:12:52 -0400 Subject: Re:
>> [StarCluster] root volumes after termination OK, start a 1-node EBS StarCluster
>> (t1.micro is good) and make sure to use your AMI instead of the standard
>> StarCluster AMI. Then go to the AWS management Console, select the instance of the
>> 1-node cluster, and click the "Root Device:" (eg. Root Device: sda1) link, and you
>> will see information about the root device like:
>> Root device type: ebs Attachment time: 2012-12-12 Block device status: attached
>> Delete on termination: Yes
>> Rayson
>> ================================================== Open Grid Scheduler - The
>> Official Open Source Grid Engine
> _______________________________________________ StarCluster mailing list

- --
 Steve Heistand NASA Ames Research Center
 email: Steve Heistand/Mail Stop 258-6
 ph: (650) 604-4369 Bldg. 258, Rm. 232-5
 Scientific & HPC Application P.O. Box 1
 Development/Optimization Moffett Field, CA 94035-0001
 "Any opinions expressed are those of our alien overlords, not my own."

# For Remedy #
#Action: Resolve #
#Resolution: Resolved #
#Reason: No Further Action Required #
#Tier1: User Code #
#Tier2: Other #
#Tier3: Assistance #
#Notification: None #
Version: GnuPG v2.0.14 (GNU/Linux)

Received on Fri Sep 06 2013 - 10:51:32 EDT
This archive was generated by hypermail 2.3.0.


Sort all by: