From 6b3a5a37574f5f1e031d574ce790e486e396a78e Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:55:59 +0100 Subject: [PATCH 1/8] Update storage-benchmark * provide another way to round-down $RAMGB * alternative way to install fio package --- storage-benchmark | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/storage-benchmark b/storage-benchmark index ab93bfb..de6baeb 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -76,7 +76,10 @@ fi RAMGB=`grep MemTotal /proc/meminfo | awk '{s+=$2} END {print s / 1000000}'` # Convert to integer -RAMGB=`printf "%.0f\n" "$RAMGB"` +# The current way gives an error: not a numbe +# RAMGB=`printf "%.0f\n" "$RAMGB"` +# alternative tested on RHEL 8: +RAMGB=`echo $RAMGB|awk -F . '{print $1}'` FILEGB="$(($RAMGB * 2))" TESTDIRECTORY=$TESTPATH/storage-benchmark @@ -111,7 +114,11 @@ then exit 1 else echo "** Installing fio **" - yum install -y fio + # this fails if foreman-maintain packages lock if applied + # yum install -y fio + # + # alternative: + foreman-maintain packages install fio fi fi From 173955f82ad15af03aa1b8bcf21aa3e60e32e7f9 Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:36:23 +0100 Subject: [PATCH 2/8] Update storage-benchmark add -y to foreman-maintain package install --- storage-benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-benchmark b/storage-benchmark index de6baeb..49571c2 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -118,7 +118,7 @@ then # yum install -y fio # # alternative: - foreman-maintain packages install fio + foreman-maintain packages install fio -y fi fi From 0b7aa9c3fbff862c13f72abd1d56a92f2e7d6a79 Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:45:04 +0100 Subject: [PATCH 3/8] Update storage-benchmark Drop patch for "yum issue" as it already suggested in PR #85 --- storage-benchmark | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/storage-benchmark b/storage-benchmark index 49571c2..75fa5a7 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -114,11 +114,7 @@ then exit 1 else echo "** Installing fio **" - # this fails if foreman-maintain packages lock if applied - # yum install -y fio - # - # alternative: - foreman-maintain packages install fio -y + yum install -y fio fi fi From 5e1fe8a70aaf06b480f39041ed4ef6fd08cdc0bb Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:46:33 +0100 Subject: [PATCH 4/8] Update storage-benchmark From f998ec42680fa468b02c8b72b380d25818b5a078 Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:47:38 +0100 Subject: [PATCH 5/8] Update storage-benchmark --- storage-benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-benchmark b/storage-benchmark index 75fa5a7..bf2947a 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -114,7 +114,7 @@ then exit 1 else echo "** Installing fio **" - yum install -y fio + yum install -y fio fi fi From e9f7ab5a6989254a2db94e13ef580bdeba2eb1fe Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:48:17 +0100 Subject: [PATCH 6/8] Update storage-benchmark --- storage-benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-benchmark b/storage-benchmark index bf2947a..2ad64b6 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -114,7 +114,7 @@ then exit 1 else echo "** Installing fio **" - yum install -y fio + yum install -y fio fi fi From c12895452175e6aaffcce5e75c96a7db7bb2aede Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:48:46 +0100 Subject: [PATCH 7/8] Update storage-benchmark --- storage-benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-benchmark b/storage-benchmark index 2ad64b6..6a53dc5 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -114,7 +114,7 @@ then exit 1 else echo "** Installing fio **" - yum install -y fio + yum install -y fio fi fi From b80da2673ab66b455076f558598ec564bd9ed97d Mon Sep 17 00:00:00 2001 From: jgkootstra <31281332+jgkootstra@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:49:16 +0100 Subject: [PATCH 8/8] Update storage-benchmark --- storage-benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-benchmark b/storage-benchmark index 6a53dc5..6fd39eb 100755 --- a/storage-benchmark +++ b/storage-benchmark @@ -114,7 +114,7 @@ then exit 1 else echo "** Installing fio **" - yum install -y fio + yum install -y fio fi fi