CephFS tar archiving immediately after writing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have an existing workflow that we've moved from one server sharing a local disk via NFS to secondary servers to all of them mounting CephFS.  The primary server runs a script similar to [1] this, but since we've moved it into CephFS, we get [2] this error.  We added the sync in there to try to help this, but it didn't have an effect.

Does anyone have a suggestion other than looping over a sleep to wait for the tar to succeed?  Waiting just a few seconds to run tar does work, but during a Ceph recovery situation, I can see that needing to be longer and longer.


[1] #!/bin/bash
cp -R /tmp/17857283/db.sql /cephfs/17857283/
sync
tar --ignore-failed-read -cvzf /cephfs/17857283.tgz /cephfs/17857283

[2] tar: Removing leading `/' from member names
/cephfs/17857283/
/cephfs/17857283/db.sql
tar: /cephfs/17857283: file changed as we read it
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux