Roll Back EBS Disk from a Snapshot

<p class="shortdesc">If the data on an EBS disk is lost, you can roll back the data in the previously created snapshots to the EBS disk to restore the data by rolling back the disk. </p> <section class="section prereq" id="rollback__prereq_l4q_j5n_slb"><div class="tasklabel"><h2 class="doc-tairway">Before you begin</h2></div> <ul class="ul" id="rollback__ul_tfw_j5n_slb"> <li class="li">You have created manual snapshots or automatic snapshots for the EBS disk, and no snapshot is being created. </li> <li class="li">The EBS disk to be rolled back is not released. </li> <li class="li">After the OS is reinstalled, historical system disk snapshots cannot be used to roll back the new system disk. </li> <li class="li">If you have mounted the EBS disk to an ECS instance, you must shut down the instance before rolling back the disk. </li> </ul> </section> <section class="section attention" id="rollback__or1_35n_slb"><div class="tasklabel"><h2 class="doc-tairway">Attention</h2></div> <ul class="ul" id="rollback__ul_fkl_k5n_slb"> <li class="li">Rolling back disk is irreversible. Once a rollback is completed, original data cannot be restored. </li> <li class="li">Rolling back disk will lead to the loss of data generated during the period from creating the snapshots to rolling back the disk. Perform this with caution. </li> <li class="li">Snapshot data can be rolled back only to its source EBS disk. A rollback to another EBS disk is not supported. </li> <li class="li">Before rolling back snapshots, confirm whether dependent resources exist. Otherwise, the rolled back snapshots still cannot restore complete information. Example 1: A user logs in to the cloud host with the key pair bound at t1 and creates snapshot s1, and cancels the key pair binding at t2 and logs in with the password. Then, the user deletes the key pair. At the moment, if the user wants to roll back to s1, it is impossible to log in to the cloud host with the key pair. Example 2: A user, with two network cards for an instance, creates snapshot s1, deletes the network card 1 at t2, and restores s1 at t3. In this case, the network card 1 cannot be restored through the snapshot. </li> </ul> </section> <section><div class="tasklabel"><h2 class="doc-tairway">Procedure</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Log in to the <a class="xref" href="/console/ecs/overview" target="_blank">ECS Console</a>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the left navigation pane, click <span class="ph menucascade"><span class="ph uicontrol">Block Storage</span><abbr title="and then"> > </abbr><span class="ph uicontrol">Disk</span></span>. </span> </li><li class="li step stepexpand" id="rollback__step_ncz_114_slb"> <span class="ph cmd">On the <span class="keyword wintitle">Disk Management</span> page, click the target EBS disk. </span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Snapshot</span> area on the <span class="ph uicontrol">Disk Information</span> page, click <span class="ph uicontrol">Roll Back Disk</span> in the operation column. </span> <div class="itemgroup info"> <img class="image" id="rollback__image_rqd_3wn_slb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20200707171849-1fd8c9679e9d.png" width="800"> </div> <div class="itemgroup info"> <p class="p">You can also complete the rollback by finding the target snapshot on the <span class="ph menucascade"><span class="ph uicontrol">Images and Snapshots</span><abbr title="and then"> > </abbr><span class="ph uicontrol">Snapshot</span></span> page, and then clicking <span class="ph uicontrol">Roll Back Disk</span> in the operation column. </p> <img class="image" id="rollback__image_zlz_yvn_slb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20200707171849-16e03e649479.png" width="800"> </div> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Roll Back Disk</span> page, view the prompts. If there is no problem, click <span class="ph uicontrol">Confirm</span>. <img class="image" id="rollback__image_ipq_3wn_slb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20200707171849-131f352b9ac3.png" width="800"></span> </li></ol></section> <section class="section result" id="rollback__result_dp3_jwn_slb"><div class="tasklabel"><h2 class="doc-tairway">Results</h2></div> <p class="p">On the <strong class="ph b">Disk Management</strong> page, you can see that the EBS disk status becomes <strong class="ph b">Restoring</strong>. After 3 to 5 minutes, it turns into <strong class="ph b">Available</strong>, which indicates that the restoring succeeds. </p> </section>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products