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

Entry '..' not shown in lustre directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Some customer reported that some directory has problem that the entry '..' is not present:

      pwd; stat .; ls -la 
      /lustre/home/i200/mjf-i200/work/HYDRA_nodotdot 
      File: '.' 
      Size: 4096 Blocks: 8 IO Block: 4096 directory 
      Device: b40e0b0h/188801200d Inode: 216173336164617001 Links: 2 
      Access: (0750/drwxr-x---) Uid: (29114/mjf-i200) Gid: (20002/ i200) 
      Access: 2017-04-17 10:50:59.000000000 +0100 
      Modify: 2017-04-17 10:49:07.000000000 +0100 
      Change: 2017-04-17 10:50:48.000000000 +0100 
      Birth: - 
      total 4 
      drwxr-x--- 2 mjf-i200 i200 4096 Apr 17 10:49 . 
      

      Checking in the MDT, it seems to be there:

      [root@cirrus-mds1 ~]# debugfs -cR 'ls -l ROOT/home/i200/mjf-i200/work/HYDRA_nodotdot/' /dev/mapper/vg_mdt0000_indy2lfs-mdt0000
      debugfs 1.42.13.wc5.ddn1 (15-Apr-2016)
      /dev/mapper/vg_mdt0000_indy2lfs-mdt0000: catastrophic mode - not reading inode or group bitmaps
       244739512   40750 (2)  29114  20002    4096 17-Apr-2017 23:38 .
       244739468   40750 (2)  29114  20002    4096 19-Apr-2017 10:10 ..
      
      [root@cirrus-mds1 ~]# debugfs -cR 'stat ROOT/home/i200/mjf-i200/work/HYDRA_nodotdot/' /dev/mapper/vg_mdt0000_indy2lfs-mdt0000
      debugfs 1.42.13.wc5.ddn1 (15-Apr-2016)
      /dev/mapper/vg_mdt0000_indy2lfs-mdt0000: catastrophic mode - not reading inode or group bitmaps
      Inode: 244739512   Type: directory    Mode:  0750   Flags: 0x0
      Generation: 1458826816    Version: 0x00000027:1d3fe408
      User: 29114   Group: 20002   Project:     0   Size: 4096
      File ACL: 0    Directory ACL: 0
      Links: 2   Blockcount: 8
      Fragment:  Address: 0    Number: 0    Size: 0
       ctime: 0x58f54401:00000000 -- Mon Apr 17 23:38:57 2017
       atime: 0x58f9d240:00000000 -- Fri Apr 21 10:34:56 2017
       mtime: 0x58f54401:00000000 -- Mon Apr 17 23:38:57 2017
      crtime: 0x58d10bbd:6e447984 -- Tue Mar 21 11:17:17 2017
      Size of extra inode fields: 32
      Extended attributes stored in inode body:
        lma = "00 00 00 00 00 00 00 00 00 81 00 00 03 00 00 00 29 cb 00 00 00 00 00 00 " (24)
        lma: fid=[0x300008100:0xcb29:0x0] compat=0 incompat=0
        link = "df f1 ea 11 01 00 00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 03 00 00 81 00 00 01 8d 14 00 00 00 00 48 59 44 52 41 5f 6e 6f 64 6f 74 64 6f 74 " (56)
      BLOCKS:
      (0):122441712
      TOTAL: 1
      

      Looking at the parent directory with debugfs:

       [root@cirrus-mds1 ~]# debugfs -cR 'ls -l ROOT/home/i200/mjf-i200/work/' /dev/mapper/vg_mdt0000_indy2lfs-mdt0000
      debugfs 1.42.13.wc5.ddn1 (15-Apr-2016)
      /dev/mapper/vg_mdt0000_indy2lfs-mdt0000: catastrophic mode - not reading inode or group bitmaps
       244739468   40750 (2)  29114  20002    4096 19-Apr-2017 10:10 .
       236208657   40750 (18)  29114  20002    4096 20-Apr-2017 18:15 ..
       244739512   40750 (18)  29114  20002    4096 17-Apr-2017 23:38 HYDRA_nodotdot
       254185195   40750 (18)  29114  20002    4096 17-Apr-2017 23:37 HYDRA_dotdot
      

      Attachments

        Activity

          People

            yong.fan nasf (Inactive)
            yong.fan nasf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: