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

Multiple hard link file cannot be accessed after migration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.8.0
    • lustre-master build # 3142 RHEL6.6
      mdtcount=4 ostcount=4 client=1
    • 3
    • 9223372036854775807

    Description

      Here is what I did
      1. create 2 dirs: test1 and other-dir2 on MDT0
      2. create some file under test1;
      3. in other-dir2, create hard link and soft link to the files in test1
      4. migrate test1, no errors

      [root@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/test1
      [root@onyx-27 lustre]# ls -al test1
      total 8
      drwxr-xr-x  2 root root 4096 Aug 28 15:28 .
      drwxr-xr-x 12 root root 4096 Aug 28 15:23 ..
      -rw-r--r--  2 root root    0 Aug 28 15:23 t1
      -rw-r--r--  1 root root    0 Aug 28 15:24 t2
      -rw-r--r--  1 root root    0 Aug 28 15:24 t3
      [root@onyx-27 lustre]# ls -al other-dir2/
      total 8
      drwxr-xr-x  2 root root 4096 Aug 28 15:27 .
      drwxr-xr-x 12 root root 4096 Aug 28 15:23 ..
      -rw-r--r--  2 root root    0 Aug 28 15:23 t1-t1
      lrwxrwxrwx  1 root root   11 Aug 28 15:27 t2-t1 -> ../test2/t1
      [root@onyx-27 lustre]# lfs getstripe -M test1
      1
      [root@onyx-27 lustre]# lfs getstripe -M test1/t1
      0
      [root@onyx-27 lustre]# lfs getstripe -M test1/t2
      1
      [root@onyx-27 lustre]# lfs getstripe -M test1/t3
      1
      

      5. migrate other-dir2, the multiple hard link file cannot be accessed:

      [root@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/other-dir2
      [root@onyx-27 lustre]# ls -al test1
      ls: cannot access test1/t1: No such file or directory
      total 8
      drwxr-xr-x  2 root root 4096 Aug 28 15:28 .
      drwxr-xr-x 12 root root 4096 Aug 28 15:28 ..
      -?????????  ? ?    ?       ?            ? t1
      -rw-r--r--  1 root root    0 Aug 28 15:24 t2
      -rw-r--r--  1 root root    0 Aug 28 15:24 t3
      [root@onyx-27 lustre]# cat test1/t1
      cat: test1/t1: No such file or directory
      [root@onyx-27 lustre]# cat test1/t2
      [root@onyx-27 lustre]# ls -al other-dir2
      ls: cannot access other-dir2/t1-t1: No such file or directory
      total 8
      drwxr-xr-x  2 root root 4096 Aug 28 15:32 .
      drwxr-xr-x 12 root root 4096 Aug 28 15:28 ..
      -?????????  ? ?    ?       ?            ? t1-t1
      lrwxrwxrwx  1 root root   11 Aug 28 15:27 t2-t1 -> ../test2/t1
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: