Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3d744d

Browse files
committed
change mke2fs options so it create more inodes per G , to prevent from a inode shortage especially with small FS and unified partition mode
1 parent dbedc11 commit a3d744d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/splunkconf-cloud-recovery.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ exec >> /var/log/splunkconf-cloud-recovery-debug.log 2>&1
271271
# 20250609 disable splunksecrets by default for all cases to avoid version conflict with python library
272272
# 20250609 automatically adapt values for splunkenableunifiedpartition
273273
# 20250609 adding compat layer for splunkenableunifiedpartition
274+
# 20250610 change mke2fs options so it create more inodes per G , to prevent from a inode shortage especially with small FS and unified partition mode
274275

275-
VERSION="20250509d"
276+
VERSION="20250510a"
276277

277278
# dont break script on error as we rely on tests for this
278279
set +e
@@ -465,7 +466,9 @@ setup_disk () {
465466
DEVNUM=1
466467
MKOPTIONS=" -m 0 -T largefile4 -E lazy_itable_init"
467468
# for ephemeral , we can add sparse_super with no drawback"
468-
MKOPTIONSEPHEMERAL="-O sparse_super -m 0 -T largefile4 -E lazy_itable_init"
469+
#MKOPTIONSEPHEMERAL="-O sparse_super -m 0 -T largefile4 -E lazy_itable_init"
470+
# largefile4 may create too few inodes , check with df -i ,switching to huge which create nore inodes
471+
MKOPTIONSEPHEMERAL="-O sparse_super -m 0 -T huge -E lazy_itable_init"
469472
if [[ "$splunkenableunifiedpartition" == "true" ]]; then
470473
echo "Using unified partition mode"
471474
MOUNTPOINT="$SPLUNK_HOME"

0 commit comments

Comments
 (0)