backup/restore ec2 instance before o.s. update

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I have an EC2 instance with an EBS backed root volume. The OS hasn't been updated in some time and I'd like to remedy that, but I need a rollback plan in case the updates cause issues.



I think I know what to do, but I was hoping to have someone sanity check my plan before making changes. Does the following seem reasonable?



Update:



  1. Create snapshot of root volume; wait for it to complete.

  2. Update O.S.

Rollback:



  1. Create new volume from snapshot.

  2. Stop instance.

  3. Detach root volume.

  4. Attach volume created from snapshot as new root volume.

  5. Start instance.

Reasonable?










share|improve this question







New contributor




jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    3
    down vote

    favorite












    I have an EC2 instance with an EBS backed root volume. The OS hasn't been updated in some time and I'd like to remedy that, but I need a rollback plan in case the updates cause issues.



    I think I know what to do, but I was hoping to have someone sanity check my plan before making changes. Does the following seem reasonable?



    Update:



    1. Create snapshot of root volume; wait for it to complete.

    2. Update O.S.

    Rollback:



    1. Create new volume from snapshot.

    2. Stop instance.

    3. Detach root volume.

    4. Attach volume created from snapshot as new root volume.

    5. Start instance.

    Reasonable?










    share|improve this question







    New contributor




    jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have an EC2 instance with an EBS backed root volume. The OS hasn't been updated in some time and I'd like to remedy that, but I need a rollback plan in case the updates cause issues.



      I think I know what to do, but I was hoping to have someone sanity check my plan before making changes. Does the following seem reasonable?



      Update:



      1. Create snapshot of root volume; wait for it to complete.

      2. Update O.S.

      Rollback:



      1. Create new volume from snapshot.

      2. Stop instance.

      3. Detach root volume.

      4. Attach volume created from snapshot as new root volume.

      5. Start instance.

      Reasonable?










      share|improve this question







      New contributor




      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have an EC2 instance with an EBS backed root volume. The OS hasn't been updated in some time and I'd like to remedy that, but I need a rollback plan in case the updates cause issues.



      I think I know what to do, but I was hoping to have someone sanity check my plan before making changes. Does the following seem reasonable?



      Update:



      1. Create snapshot of root volume; wait for it to complete.

      2. Update O.S.

      Rollback:



      1. Create new volume from snapshot.

      2. Stop instance.

      3. Detach root volume.

      4. Attach volume created from snapshot as new root volume.

      5. Start instance.

      Reasonable?







      amazon-web-services amazon-ec2 virtualization amazon-ebs






      share|improve this question







      New contributor




      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      jph

      1161




      1161




      New contributor




      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      jph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          Yes, you have the gist of it. A couple of things to point out.



          If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing.




          You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete.




          Second, the snapshot may not be available immediately. If you'd have to restore quickly you should wait for the snapshot to be out of the pending state.




          Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed




          References



          https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            jph is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933806%2fbackup-restore-ec2-instance-before-o-s-update%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            Yes, you have the gist of it. A couple of things to point out.



            If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing.




            You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete.




            Second, the snapshot may not be available immediately. If you'd have to restore quickly you should wait for the snapshot to be out of the pending state.




            Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed




            References



            https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html






            share|improve this answer
























              up vote
              3
              down vote













              Yes, you have the gist of it. A couple of things to point out.



              If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing.




              You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete.




              Second, the snapshot may not be available immediately. If you'd have to restore quickly you should wait for the snapshot to be out of the pending state.




              Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed




              References



              https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html






              share|improve this answer






















                up vote
                3
                down vote










                up vote
                3
                down vote









                Yes, you have the gist of it. A couple of things to point out.



                If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing.




                You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete.




                Second, the snapshot may not be available immediately. If you'd have to restore quickly you should wait for the snapshot to be out of the pending state.




                Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed




                References



                https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html






                share|improve this answer












                Yes, you have the gist of it. A couple of things to point out.



                If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing.




                You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete.




                Second, the snapshot may not be available immediately. If you'd have to restore quickly you should wait for the snapshot to be out of the pending state.




                Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed




                References



                https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 4 hours ago









                kenlukas

                415211




                415211




















                    jph is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    jph is a new contributor. Be nice, and check out our Code of Conduct.












                    jph is a new contributor. Be nice, and check out our Code of Conduct.











                    jph is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933806%2fbackup-restore-ec2-instance-before-o-s-update%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery