[LU-7304] ldiskfs bug when bigalloc feature enabled Created: 15/Oct/15  Updated: 30/Aug/16  Resolved: 11/Nov/15

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

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Yang Sheng
Resolution: Fixed Votes: 0
Labels: patch
Environment:

Centos7


Issue Links:
Duplicate
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When trying to run benchmarking with bigalloc feature, mkfs always failed
and dmesg gave following errors:

LDISKFS-fs error (device sdb): ldiskfs_mb_check_ondisk_bitmap:3611: comm mkdir: on-disk bitmap for group 8corrupted: 0 blocks free in bitmap, 32768 - in gd



 Comments   
Comment by Gerrit Updater [ 15/Oct/15 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: http://review.whamcloud.com/16832
Subject: LU-7304 ldiskfs: fix bug when bigalloc is enabled
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fedfa16aebe7c1a424f33adf3ef29b4944f1fcc1

Comment by Joseph Gmitter (Inactive) [ 15/Oct/15 ]

Hi Yang Sheng,
Could you please have a look at this patch?
Thanks.
Joe

Comment by Andreas Dilger [ 16/Oct/15 ]

Thank you for the patch. We have never tested Lustre with the bigalloc feature enabled, though in theory it could provide an improvement for OST performance for large file IO, and also to reduce directory block fragmentation.

This will cause small files to consume more space - a whole chunk will be allocated even for very small files. Fortunately, it will still only write 4KB blocks of data rather than the whole chunk.

There may be some assumptions in the osd-ldiskfs code about block sizes and chunks, so it is worthwhile to at least look through the block allocation routines to see if there are any problems. I don't think this will affect statfs() since the filesystem blocksize will still remain at 4KB.

Comment by Gerrit Updater [ 11/Nov/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16832/
Subject: LU-7304 ldiskfs: fix bug when bigalloc is enabled
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 26adc2e13a877507b483b2d3c3e873fbd13d2596

Comment by Joseph Gmitter (Inactive) [ 11/Nov/15 ]

Landed for 2.8

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