[pve-devel] [installer] Allow more than 26 SCSI disk devices.

Wolfgang Link w.link at proxmox.com
Mon Jul 2 12:05:46 CEST 2018


Some customers have more than 26 devices,
for example, if they use multipath on a DAS box.

In the Linux Documentation admin-guide/devices.txt
is written 256 SCSI disk devices are possible.

Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 proxinstall | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/proxinstall b/proxinstall
index db8e638..8a1476b 100755
--- a/proxinstall
+++ b/proxinstall
@@ -623,7 +623,9 @@ sub hd_size {
 sub get_partition_dev {
     my ($dev, $partnum) = @_;
 
-    if ($dev =~ m|^/dev/[hxsev]d[a-z]$|) {
+    if ($dev =~ m|^/dev/sd([a-h]?[a-z]\|i[a-v])$|) {
+	return "${dev}$partnum";
+    } elsif ($dev =~ m|^/dev/[hxev]d[a-z]$|) {
 	return "${dev}$partnum";
     } elsif ($dev =~ m|^/dev/[^/]+/c\d+d\d+$|) {
 	return "${dev}p$partnum";
-- 
2.11.0





More information about the pve-devel mailing list