[LU-12642] bad sequence output on OST Created: 08/Aug/19  Updated: 17/Mar/20  Resolved: 17/Mar/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Sergey Cheremencev Assignee: Sergey Cheremencev
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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


 Comments   
Comment by Gerrit Updater [ 08/Aug/19 ]

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

Comment by Gerrit Updater [ 17/Mar/20 ]

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

Comment by Peter Jones [ 17/Mar/20 ]

Landed for 2.14

Generated at Sat Feb 10 02:54:23 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.