[LU-10243] Lustre_rsync sync ".lustre" directory files Created: 15/Nov/17  Updated: 17/Nov/17  Resolved: 17/Nov/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question/Request Priority: Minor
Reporter: sebg-crd-pm (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Hi,

  I print these sync files in lustre_rsync  .

>>recno:2834414 type:create res:0 src:/mnt/client/.lustre/fid/[0x200001bc0:0x17fd2:0x0] >>dst:/mnt/cephfs/lustre-backup/.lustrerepl/[0x200001bc0:0x17fd2:0x0]

   I do not  known  the .lustre directory real work. 

    It seems like pseudo directory for fid2path function.

    These files in .lustre  directory also to be synced to backend when do lustre_rsync.

    Is it ok?

 

 



 Comments   
Comment by Bruno Faccini (Inactive) [ 15/Nov/17 ]

You are right, the .lustre is a special directory that allows to open files by FID via a specific access method, and lustre_rsync uses it extensively particularly to resolve path/tree discrepancies/changes, as described in lustre_rsync.c source file header/comments, where the destination .lustrerepl special directory is also used as a temporary location.

Comment by John Hammond [ 15/Nov/17 ]

Just to amplify Bruno's comment, yes, this is correct and expected behavior.

Is there anything else to do here?

 

Comment by sebg-crd-pm (Inactive) [ 16/Nov/17 ]

Hi,

        I found there is something wrong when sync with striped directory.

        Some directorys metadata (ex. ./dirA ) in MDT1 but there files(ex. disA/xxxx ) are in MDT0.

        The directory did not created when sync MDT0 changelog first, then lustre_rsync put these files to .lustrerepl        

        Do you have any suggestion to handle  this case? (besides put directory and files in the same MDT)    Thanks

 

       Test striped directory lustre_rsync steps.

       1. created striped directory and set default  striped.

       "lfs setdristripe -c 2  testdir" and set default by  "lfs setdristripe -c 2  -D testdir"

        2.copy some files with directorys to this directory

        3.do lustre_rsync MDT0000

        4.do lustre_rsync MDT0001   

 

Comment by John Hammond [ 16/Nov/17 ]

Would you open a new issue for this?

Comment by Brad Hoagland (Inactive) [ 17/Nov/17 ]

Hi sebg-crd-pm,

I'm closing this ticket as your original questions have been answered. Please open a new ticket for any additional issues as John has requested in the comments.

Thanks,

Brad

Generated at Sat Feb 10 02:33:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.