Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Bug was found in sanity_53:

      PTLDEBUG=-1 SUBSYSTEM=-1 DEBUG_SIZE=1000 SANITY_EXCEPT="43" MDSCOUNT=4 OSTCOUNT=4 SLOW=yes ONLY=53 sh sanity.sh -v
      ...
      == sanity test 53: verify that MDS and OSTs agree on pre-creation ==================================== 05:27:47 (1536139667)
      lustre-OST0000.last_id=0x300000400:65; MDS.last_id=65
      lustre-OST0000.last_id=0x300000401:65; MDS.last_id=65
      lustre-OST0000.last_id=0x300000402:65; MDS.last_id=65
      lustre-OST0000.last_id=0x100000000:65; MDS.last_id=65
      lustre-OST0001.last_id=0x340000400:65; MDS.last_id=65
      lustre-OST0001.last_id=0x340000401:65; MDS.last_id=65
      lustre-OST0001.last_id=0x100010000:65; MDS.last_id=65
      lustre-OST0002.last_id=0x380000400:65; MDS.last_id=65
      lustre-OST0002.last_id=0x380000401:65; MDS.last_id=65
      lustre-OST0002.last_id=0x380000402:65; MDS.last_id=65
      lustre-OST0002.last_id=0x100020000:65; MDS.last_id=65
      lustre-OST0003.last_id=0x3c0000400:65; MDS.last_id=4294967330
      lustre-OST0003.last_id=0x3c0000401:65; MDS.last_id=4294967330
      lustre-OST0003.last_id=0x3c0000402:65; MDS.last_id=4294967330
      lustre-OST0003.last_id=0x100030001:4294967330; MDS.last_id=4294967330
      

      to reproduce

      1. umount /mnt/lustre-ost3
      2. mount -t ldiskfs -o loop /tmp/lustre-ost3 /mnt/ost
      3. cd /mnt/ost/O/0
      4. hexedit LAST_ID (change it to ff ff ff ff 00 00 00 00)
      5. umount /mnt/ost
      6. mount -t lustre -o loop /tmp/lustre-ost3/ /mnt/lustre-ost3
      [root@localhost ost3]# cat /proc/fs/lustre/obdfilter/lustre-OST0002/last_id 0x100020001:4295098401...
      [root@localhost ost3]# cat /proc/fs/lustre/osp/lustre-OST0002-osc-MDT0000/prealloc_last_seq 0x100020000
      [root@localhost ost3]# cat /proc/fs/lustre/osp/lustre-OST0002-osc-MDT0000/prealloc_last_id 4295098401
      

      Attachments

        Activity

          [LU-12642] bad sequence output on OST
          pjones Peter Jones added a comment -

          Landed for 2.14

          pjones Peter Jones added a comment - Landed for 2.14

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35730/
          Subject: LU-12642 ofd: change last_id output in proc
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 4f94bcbfbc400e5f3e70133b126016f57f4dbc64

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35730/ Subject: LU-12642 ofd: change last_id output in proc Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4f94bcbfbc400e5f3e70133b126016f57f4dbc64

          Sergey Cheremencev (c17829@cray.com) uploaded a new patch: https://review.whamcloud.com/35730
          Subject: LU-12642 ofd: change last_id output in proc
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 0c87e28b37c4561e1747e3e349ac55d9db08fad4

          gerrit Gerrit Updater added a comment - Sergey Cheremencev (c17829@cray.com) uploaded a new patch: https://review.whamcloud.com/35730 Subject: LU-12642 ofd: change last_id output in proc Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0c87e28b37c4561e1747e3e349ac55d9db08fad4

          People

            scherementsev Sergey Cheremencev
            scherementsev Sergey Cheremencev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: