Support more than 16 disks per fileserver
This commit is contained in:
Родитель
f9765c98a2
Коммит
a731ecc5f5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче