Is it possible to fsfreeze -unfreeze right after taking a snapshot?

Assuming / data is the mount point of the EXT4 file system that spans the entire EBS volume. To create a backup, the file system is frozen and a snapshot is taken.

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:~#

At this point, OK to run

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

and start writing files under / data?

In other words, is it okay to start using the EBS volume immediately after returning aws ec2 create-snapshot, although the snapshot state may be delayed ?

+4
source share
1 answer

All Articles