[cs615asa] HW5

Brett Biggs bbiggs at stevens.edu
Sun Apr 28 16:44:48 EDT 2019


If we are handing in a updated version of HW5 do we need a new README file?

-----Original Message-----
From: cs615asa-bounces at lists.stevens.edu <cs615asa-bounces at lists.stevens.edu> On Behalf Of Jan Schaumann
Sent: Friday, April 26, 2019 8:49 PM
To: cs615asa at lists.stevens.edu
Subject: [cs615asa] HW5

All,

I have just sent out grades for HW#5.

If you received a grade below 45/50, then you may resubmit an improved version no later than 05/06, 16:00 EDT.  (If you scored above 45/50, then making any improvements is not worth your nor my time.)

I am rather disappointed that quite a significant number of you appear to not have read the assignment thoroughly and have not tested your program on the target platform.  To quote again from
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstevens.netmeister.org%2F615%2Fs19-ec2-backup.html&amp;data=02%7C01%7Cbbiggs%40stevens.edu%7C0718770e89694123e55708d6caaa1efc%7C8d1a69ec03b54345ae21dad112f5fb4f%7C0%7C0%7C636919229385343207&amp;sdata=NX9EO9ZOLgE5P4IXFuJZlTbeh3d6KgWtgskhbAPWTIs%3D&amp;reserved=0:

"The tool you write will be executed (and graded) on an AWS EC2 NetBSD instance of type ami-569ed93c. You are free to develop it in some other environment, but please make sure to test it on this instance type before submitting it. If it does not work on these hosts, you will not get any points."

The image noted here does notably _not_ have "/bin/bash", so any tool written using /bin/bash as the interpreter *simply cannot possibly work* there (and shows you did not test your program there).

To resubmit, please make whatever changes you want and submit a tar archive as before.  The way that I will test your submission will be:

- start an instance of type ami-569ed93c
- scp your-tar-archive instance-name:
- wget https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstevens.netmeister.org%2F615%2Fec2-backup-prep&amp;data=02%7C01%7Cbbiggs%40stevens.edu%7C0718770e89694123e55708d6caaa1efc%7C8d1a69ec03b54345ae21dad112f5fb4f%7C0%7C0%7C636919229385343207&amp;sdata=LQf17AzxzJBv%2B45LUDf73n5MPKS1SSIeVZXf0MNs7Kc%3D&amp;reserved=0
- sh ec2-backup-prep instance-name
- ssh instance-name
instance# tar xf your-tar-archive
instance# cd your-username
instance# make install
instance# /usr/local/bin/ec2-backup -h
instance# export EC2_BACKUP_VERBOSE=1
instance# /usr/local/bin/ec2-backup .
instance# /usr/local/bin/ec2-backup /

If your command passes these tests, then I will use additional invocations; at a minimum, I will create a new volume in a different region and then pass it to your tool via the '-v' flag.

After that, I will terminate the instance, attach the volume your tool created to a different instance and attempt to restore the data from the volume (e.g., "ssh new-instance-with-your-volume-attached 'dd if=/dev/rxbd2d' | tar tvf -").

That is, being able to get the data back from the volume is critical; recall that we don't really care about backing up data, we care about being able to restore it!

It would be in your best interest to perform these tests yourself in this manner.

-Jan
_______________________________________________
cs615asa mailing list
cs615asa at lists.stevens.edu
https://lists.stevens.edu/mailman/listinfo/cs615asa


More information about the cs615asa mailing list