Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8029

Lustre_rsync does not sync files modified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      Since changelog does not record the activity of append-writing a file properly, lustre_rsync does not sync files modified.

      To reproduce, do the following:

      # echo bbb >> /lustre/file
      # lfs changelog lustre-MDT0000
      388 11CLOSE 09:51:49.93058314 2016.04.12 0x442 t=[0x200000405:0x45:0x0]
      # cat /lustre/file
      aaa
      bbb
      # lustre_rsync  --source=/lustre --target=/mnt/lustre-rsync --mdt=lustre-MDT0000 --user=cl1
      # cat /mnt/lustre-rsync/file
      aaa
      

      I see the changelog only register CLOSE event (no MTIME event) when a file is modified.
      But, lustre_rysnc ignores this entry and does nothing.

                      case CL_CLOSE:                                                                                                                                                    
                      case CL_EXT:                                                                                                                                                      
                      case CL_OPEN:                                                                                                                                                     
                      case CL_LAYOUT:                                                                                                                                                   
                      case CL_MARK:                                                                                                                                                     
                              /* Nothing needs to be done for these entries */                                                                                                          
                              /* fallthrough */ 
      

      I think lustre_rsync should detect file data changes by CLOSE event and CLOSE event should trigger file copying
      (According to LU-2298, it seems to be hard for changelog to register MTIME event by file data changes).

      Attachments

        Activity

          People

            wc-triage WC Triage
            takamura Tatsushi Takamura
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: