Skip to content

Commit

Permalink
Merge pull request ceph#60427 from mkogan1/wip-vstart-dev-err
Browse files Browse the repository at this point in the history
vstart: log faulty physical disk device

Reviewed-by: Ilya Dryomov <[email protected]>
  • Loading branch information
idryomov authored Nov 28, 2024
2 parents 6187425 + cb3c475 commit 63e69b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,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
Expand All @@ -308,7 +308,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
Expand All @@ -323,7 +323,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
Expand All @@ -338,7 +338,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
Expand Down

0 comments on commit 63e69b8

Please sign in to comment.