I'm trying to snapshot a boot disk on Google Compute Engine. Per the instructions in this post (https://cloud.google.com/compute/docs/disks/persistent-disks#create-snapshot-linux)
I've run the following commands, is this the correct method for a boot disk? After I execute fsfreeze and run the snapshot my server application crashes. However snapshoting completes if you run a sync command and then the snapshot command without usign fsfreeze.
I don't imagine that's much of a surprise, since how could you snapshot a disk if you've suspended access to the filesystem that holds the snapshot tools?
What is the best practice for creating a snapshot from a boot disk when you don't have the option of shutting the instance down?
$ sudo sync
$ sudo fsfreeze -f /
$ gcloud compute disks snapshot sm-elvis-boot-hot-001
$ sudo fsfreeze -u /