]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart: log faulty physical disk device
authorMark Kogan <mkogan@redhat.com>
Tue, 22 Oct 2024 16:16:22 +0000 (16:16 +0000)
committerMark Kogan <mkogan@redhat.com>
Tue, 22 Oct 2024 16:16:22 +0000 (16:16 +0000)
Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/vstart.sh

index 4b62db677d106a3e4e79ea295c427812b5b4ed8e..cf43be3c0cc1f0d3c2e238a67bf043e1bf49fcf9 100755 (executable)
@@ -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