From a731ecc5f5e4a77472688f25df7021d03411243c Mon Sep 17 00:00:00 2001 From: Fred Park Date: Fri, 17 Nov 2017 09:12:42 -0800 Subject: [PATCH] Support more than 16 disks per fileserver --- scripts/shipyard_remotefs_bootstrap.sh | 2 +- scripts/shipyard_remotefs_stat.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/shipyard_remotefs_bootstrap.sh b/scripts/shipyard_remotefs_bootstrap.sh index 75898739..f60f01cf 100755 --- a/scripts/shipyard_remotefs_bootstrap.sh +++ b/scripts/shipyard_remotefs_bootstrap.sh @@ -472,7 +472,7 @@ fi # get all data disks declare -a data_disks -all_disks=($(lsblk -l -d -n -p -I 8 -o NAME)) +all_disks=($(lsblk -l -d -n -p -I 8,65,66,67,68 -o NAME)) for disk in "${all_disks[@]}"; do # ignore os and ephemeral disks if [ $disk != "/dev/sda" ] && [ $disk != "/dev/sdb" ]; then diff --git a/scripts/shipyard_remotefs_stat.sh b/scripts/shipyard_remotefs_stat.sh index e52c6544..41a0e4f4 100755 --- a/scripts/shipyard_remotefs_stat.sh +++ b/scripts/shipyard_remotefs_stat.sh @@ -55,7 +55,7 @@ shift $((OPTIND-1)) # get all data disks declare -a data_disks -all_disks=($(lsblk -l -d -n -p -I 8 -o NAME)) +all_disks=($(lsblk -l -d -n -p -I 8,65,66,67,68 -o NAME)) for disk in "${all_disks[@]}"; do # ignore os and ephemeral disks if [ $disk != "/dev/sda" ] && [ $disk != "/dev/sdb" ]; then