Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (19.1k points)

Assume /data is the mount point for an EXT4 file system that occupies a whole EBS volume. To create a backup, the file system is freezed and a snapshot is created.

root@ubuntu:~# fsfreeze --freeze /data

root@ubuntu:~# aws ec2 create-snapshot --volume-id vol-1234567 --description "/data snapshot"

{

    "SnapshotId": "snap-27c5ebdf",

    "Description": "/data snapshot",

    "VolumeId": "vol-1234567",

    "State": "pending",

    "VolumeSize": 250,

    "OwnerId": "744275636941",

    "StartTime": "2014-11-04T15:17:19.000Z",

    "Tags": []

}

root@ubuntu:~#

Is it at this point OK to run

root@ubuntu:~# fsfreeze --unfreeze /data

and start writing files under /data?

In other words, is it OK to start using an EBS volume directly after aws ec2 create-snapshot returns, although the state of the snapshot might be pending?

1 Answer

0 votes
by (44.4k points)

It is OK to do that.

As said in this doc:

You can remount and use your volume while the snapshot status is pending.

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Jan 16, 2020 in AWS by R. Raman (790 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...