Execute sync command before creating vol snap

Registered by Fausto Marzi

The sync command on linux and windows flush on disk the memory held at kernel level. Would be good if Freezer execute sync, just before the vol snap creation or just before the backup execution in case the backup is not configured to use vol snap.

the sync execution should be managed with try: exception as if the execution fails, it should be logged, but it shouldn't stop the freezerc execution.

Blueprint information

Status:
Complete
Approver:
Fabrizio Fresco
Priority:
Medium
Drafter:
Fausto Marzi
Direction:
Approved
Assignee:
sbartel
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
sbartel
Completed by
Fabrizio Fresco

Related branches

Sprints

Whiteboard

Since freezerc don't know what fs is used underneath, only if the fs is jurnaled we can be quite confident that the status of the data we are backing up is consistent.
IMHO, the sync should be done in all cases, lvm or not, cinder, nova or whatever type of backup we are taking.

Gerrit topic: https://review.openstack.org/#q,topic:bp/sync-exec,n,z

Addressed by: https://review.openstack.org/198251
    add execute sync command before

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.