From cb3c475359cb098c59031d219619db1512dc65bb Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Tue, 22 Oct 2024 16:16:22 +0000 Subject: [PATCH] vstart: log faulty physical disk device Signed-off-by: Mark Kogan --- src/vstart.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index 4b62db677d1..cf43be3c0cc 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -295,7 +295,7 @@ parse_block_devs() { IFS=',' read -r -a block_devs <<< "$devs" for dev in "${block_devs[@]}"; do if [ ! -b $dev ] || [ ! -w $dev ]; then - echo "All $opt_name must refer to writable block devices" + echo "All $opt_name must refer to writable block devices, check device: $dev" exit 1 fi done @@ -310,7 +310,7 @@ parse_bluestore_db_devs() { IFS=',' read -r -a bluestore_db_devs <<< "$devs" for dev in "${bluestore_db_devs[@]}"; do if [ ! -b $dev ] || [ ! -w $dev ]; then - echo "All $opt_name must refer to writable block devices" + echo "All $opt_name must refer to writable block devices, check device: $dev" exit 1 fi done @@ -325,7 +325,7 @@ parse_bluestore_wal_devs() { IFS=',' read -r -a bluestore_wal_devs <<< "$devs" for dev in "${bluestore_wal_devs[@]}"; do if [ ! -b $dev ] || [ ! -w $dev ]; then - echo "All $opt_name must refer to writable block devices" + echo "All $opt_name must refer to writable block devices, check device: $dev" exit 1 fi done @@ -340,7 +340,7 @@ parse_secondary_devs() { IFS=',' read -r -a secondary_block_devs <<< "$devs" for dev in "${secondary_block_devs[@]}"; do if [ ! -b $dev ] || [ ! -w $dev ]; then - echo "All $opt_name must refer to writable block devices" + echo "All $opt_name must refer to writable block devices, check device: $dev" exit 1 fi done -- 2.39.5