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

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 2 12:32:31 CEST 2018


On 7/2/18 12:05 PM, Wolfgang Link wrote:
> 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";
> 

applied, thanks




More information about the pve-devel mailing list