[LU-6910] Configurable values for OST reserved size Created: 27/Jul/15  Updated: 29/Sep/16  Resolved: 29/Sep/16

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

Type: Improvement Priority: Major
Reporter: Alexander Boyko Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Blocker
is blocked by LUDOC-317 document OST reserved space tunables Resolved
Duplicate
Related
is related to LU-7550 sanity test_27C: FAIL: Can not find 5... Resolved
is related to LU-7552 sanity test_253: Error: 'File creatio... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

osp_pre_status=-ENOSPC is used to skip OST from object allocation. The error was set when OST available space is less than 0.1% of total OST size. This value is not configurable. For many cases 0.1% is too low, because append works for existing files. So, procfs files was added for configuration.



 Comments   
Comment by Alexander Boyko [ 27/Jul/15 ]

Patch http://review.whamcloud.com/#/c/15731/

Comment by Gerrit Updater [ 14/Sep/15 ]

[ removed unrelated patch comment ]

Comment by Gerrit Updater [ 11/Dec/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15731/
Subject: LU-6910 osp: add procfs values for OST reserved size
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0585b0fb5895a24f07ca32e830d1fa72b75f4f2b

Comment by Andreas Dilger [ 11/Dec/15 ]

This also fixed a couple of bugs in the handling of nearly full OSTs.

Comment by Peter Jones [ 11/Dec/15 ]

Landed for 2.8

Comment by Gerrit Updater [ 15/Dec/15 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: http://review.whamcloud.com/17617
Subject: Revert "LU-6910 osp: add procfs values for OST reserved size"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 266fd420fb049d23f3c85b99ff56b9f920148c0a

Comment by Peter Jones [ 15/Dec/15 ]

Patch reverted. See LU-7550 for details

Comment by Gerrit Updater [ 15/Dec/15 ]

Andreas Dilger (andreas.dilger@intel.com) merged in patch http://review.whamcloud.com/17617/
Subject: Revert "LU-6910 osp: add procfs values for OST reserved size"
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: acc918d76856ff14306c543c74e6ceef3865bcbc

Comment by Andreas Dilger [ 15/Dec/15 ]

Alexander, could you please resubmit your patch once you have fixed the two test failures (LU-7550 and LU-7552. To run those tests multiple times to get a good confidence about the fix, you should use:

Test-Parameters: testlist=sanity,sanity,sanity,sanity,sanity,sanity
Test-Parameters: testlist=sanity,sanity,sanity,sanity,sanity,sanity

To run a bunch of tests and two sets in parallel so it doesn't take so long.

There was also a code late review comment internally that returning -ENOSPC from ->statfs() is probably not the right thing, because this may cause unexpected errors if the caller just wants to know the space usage. Instead, it should set OS_STATE_ENOSPC or OS_STATE_ENOINO in the os_state field and the caller should check that. Having two separate flags also avoids the need to guess what the -ENOSPC error is for.

Comment by Andreas Dilger [ 15/Dec/15 ]

It looks like the last few comments posted in LU-7550 after the patch was reverted should resolve the failure seen there when the patch is resubmitted:

diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index 7a25e4b..19e8521 100755
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -1885,6 +1885,7 @@ check_seq_oid()
                                $(facet_mntpt ost$ost)/$obj_file)
                        unmount_fstype ost$ost
                        start ost$ost $dev $OST_MOUNT_OPTS
+                       clients_up
                fi

As yet the LU-7552 problem has not been fixed.

Comment by Gerrit Updater [ 17/Dec/15 ]

Alexander Boyko (alexander.boyko@seagate.com) uploaded a new patch: http://review.whamcloud.com/17656
Subject: LU-6910 osp: add procfs values for OST reserved size
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5106f1ff901e24734970d8ce0294f5ed0c20c1f3

Comment by Gerrit Updater [ 29/Sep/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17656/
Subject: LU-6910 osp: add procfs values for OST reserved size
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 091739b8daf2b8e0da8603e15141f7548a90e316

Comment by Peter Jones [ 29/Sep/16 ]

Landed for 2.9

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