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

cp with FIEMAP support creates completely sparse file

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • None
    • Lustre 2.3.0, Lustre 2.4.0
    • SLES 11 SP2 (client), Lustre 2.1.2 RHEL6 (server)
    • 2
    • 6020

    Description

      We are seeing an issue at KIT where cp will occasionally use the FIEMAP extension to create a completely sparse file instead of actually copying the file. It seems to occur under a workload involving creating and deleting many files at once. It only involves a single client though, it's not a parallel workload.

      Relevant strace from 'bad' cp:
      ioctl(3, 0xc020660b, 0x7fff392c0950) = 0
      ftruncate(4, 12853) = 0

      strace from 'good' cp:
      read(3, "#!/bin/bash -u\n\n#localisation\nex"..., 2097152) = 12853
      write(4, "#!/bin/bash -u\n\n#localisation\nex"..., 12853) = 12853
      read(3, "", 2097152) = 0

      The strace didn't print the stat block information, but I'm assuming the st_blocks == 0 in the bad one. I will ask the customer to get a full strace -v to confirm, but it appears to be something similar to LU-417?

      Attachments

        Issue Links

          Activity

            [LU-2580] cp with FIEMAP support creates completely sparse file
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-3219 [ LU-3219 ]
            pjones Peter Jones made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            pjones Peter Jones made changes -
            Labels New: LB
            adilger Andreas Dilger made changes -
            Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
            adilger Andreas Dilger made changes -
            Affects Version/s New: Lustre 2.4.0 [ 10154 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-417 [ LU-417 ]
            kitwestneat Kit Westneat (Inactive) made changes -
            Attachment New: stats_and_md5sums.txt [ 12169 ]
            adilger Andreas Dilger made changes -
            Priority Original: Minor [ 4 ] New: Critical [ 2 ]
            pjones Peter Jones made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Peter Jones [ pjones ]
            kitwestneat Kit Westneat (Inactive) created issue -

            People

              pjones Peter Jones
              kitwestneat Kit Westneat (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: