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

migrate failed: Device or resource busy (-16) after "ls" dir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • client and server: lustre-master build #3226 RHEL7
    • 3
    • 9223372036854775807

    Description

      according to the migrate dir test plan, here is what I do:

      1. Setup lustre with 4 MDTs, 4 OSTs and 1 client.
      2. Create 5 directories /mnt/lustre/migrate{1..5} and 100 files under each directory on MDT0
      3. Create another directory /mnt/lustre/other_dir also on MDT0, then create some symbol_link/link files, which should be linked to files under /mnt/lustre/migrate{1..5}
      4. ls /mnt/lustre/other_dir
      5. Migrate /mnt/lustre/migrate2 by
      lfs migrate -m 1 /mnt/lustre/migrate2

      Got following failure:

      [root@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/migrate2
      /mnt/lustre/migrate2/1 migrate failed: Device or resource busy (-16)
      error: migrate: migrate file '/mnt/lustre/migrate2' failed
      

      After talked with Di, he said there are two ways to bypass this problem:
      either: touch another file under other_dir

      [root@onyx-27 lustre]# touch other_dir/a
      [root@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/migrate2
      [root@onyx-27 lustre]#
      

      or umount and mount the client

      Attachments

        Issue Links

          Activity

            People

              di.wang Di Wang
              sarah Sarah Liu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: