stec-inc/EnhanceIO

Consistant snapshot on backing store

Closed this issue · 1 comments

Hello,

I would like to create consistant snapshot on backing store.
Is there any method to wait that dirty block is written when doing do_clean ?

Currently, I do :

  • xfs_freeze -f /mnt/testdev
  • /sbin/sysctl dev.enhanceio.testdev.do_clean=1
  • sleep some time ?
  • rbd snap create testdev@snap (ceph)
  • xfs_freeze -u /mnt/testdev

But there is no guarantee that all the data are written.
Do you have any suggestions ?

Regards,
Laurent

Hello,

I found : I make sleep while do_clean == 1

Laurent