<div>Got it. Thank you.<br><div class="gmail_quote"><div>On Sun, Apr 9, 2017 at 16:43 Jan Schaumann &lt;<a href="mailto:jschauma@stevens.edu">jschauma@stevens.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tianxiao Yang &lt;<a href="mailto:tyang8@stevens.edu" class="gmail_msg" target="_blank">tyang8@stevens.edu</a>&gt; wrote:<br class="gmail_msg">
<br class="gmail_msg">
&gt; &quot;$ afewmore i-0a1b2c3d4f&quot; this command generated ten IDs, but one of<br class="gmail_msg">
&gt; them is the original ID itself, there are only 9 newly generated IDs.<br class="gmail_msg">
&gt; Do we need to count the source instance itself as newly generated<br class="gmail_msg">
&gt; instance?<br class="gmail_msg">
<br class="gmail_msg">
No.  The example output was wrong, I have updated the manual page:<br class="gmail_msg">
<br class="gmail_msg">
$ afewmore i-0a1b2c3d4f<br class="gmail_msg">
i-1a1b2c3d4f<br class="gmail_msg">
i-2a1b2c3d4f<br class="gmail_msg">
i-3a1b2c3d4f<br class="gmail_msg">
i-4a1b2c3d4f<br class="gmail_msg">
i-5a1b2c3d4f<br class="gmail_msg">
i-6a1b2c3d4f<br class="gmail_msg">
i-7a1b2c3d4f<br class="gmail_msg">
i-8a1b2c3d4f<br class="gmail_msg">
i-9a1b2c3d4f<br class="gmail_msg">
i-0b1b2c3d4f<br class="gmail_msg">
$<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
&gt; 2.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;      -d dir   Copy the contents of this data directory from the orignal source<br class="gmail_msg">
&gt;               instance to all the new instances.  If not specified, defaults<br class="gmail_msg">
&gt;               to /data.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; By default(-d not specified), source data directory should be /data, but in the example below:<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;      To create just one more instance and copy the contents of the directory<br class="gmail_msg">
&gt;      &#39;/usr/local/share&#39;:<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;            $ afewmore -n 1 i-0a1b2c3d4f<br class="gmail_msg">
&gt;            i-1a1b2c3d4f<br class="gmail_msg">
<br class="gmail_msg">
This example invocation was missing the &#39;-d&#39; flag.  I&#39;ve updated the<br class="gmail_msg">
manual page:<br class="gmail_msg">
<br class="gmail_msg">
$ afewmore -d /usr/local/share -n 1 i-0a1b2c3d4f<br class="gmail_msg">
i-1a1b2c3d4f<br class="gmail_msg">
<br class="gmail_msg">
&gt; User who uses afewmore cannot chose the directory to which the contents of source data should be copied.<br class="gmail_msg">
&gt; -- Can we just copy the source data to home directory of newly created instance?<br class="gmail_msg">
<br class="gmail_msg">
No, the objective is to create a clone or copy of the original instance,<br class="gmail_msg">
so the data from the source needs to be copied into the same location on<br class="gmail_msg">
the destination instance(s).<br class="gmail_msg">
<br class="gmail_msg">
&gt; -- If we need to copy the /data directory from source instance A to<br class="gmail_msg">
&gt; the /data directory in newly created instance B(doesn&#39;t have a /data<br class="gmail_msg">
&gt; directory), we usually need to execute the operation as superuser for<br class="gmail_msg">
&gt; instance B. How could we know the what is the superuser command(sudo<br class="gmail_msg">
&gt; or yum etc.)?<br class="gmail_msg">
<br class="gmail_msg">
You need to work as the super user on both instances.  Given how<br class="gmail_msg">
different EC2 instances handle user logins and superuser access, you<br class="gmail_msg">
probably need to have an internal mapping of OS to correct user / access<br class="gmail_msg">
method.<br class="gmail_msg">
<br class="gmail_msg">
&gt; -- If /data directory in A is a mount point for a filesystem, do we need to create the same filesystem in B and mount it to the same directory?<br class="gmail_msg">
<br class="gmail_msg">
I think that&#39;s not necessary.  While that would be useful, I suspect<br class="gmail_msg">
it&#39;d make the assignment overly complicted.  To simplify, you may ignore<br class="gmail_msg">
differences in partitions.<br class="gmail_msg">
<br class="gmail_msg">
-Jan<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
cs615asa mailing list<br class="gmail_msg">
<a href="mailto:cs615asa@lists.stevens.edu" class="gmail_msg" target="_blank">cs615asa@lists.stevens.edu</a><br class="gmail_msg">
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br class="gmail_msg">
</blockquote></div></div>