[PVE-User] /dev/disk/by-path/ paths not working in 1.4

Dietmar Maurer dietmar at proxmox.com
Tue Oct 27 10:44:19 CET 2009


I guess the correct fix is:

Index: Storage.pm
===================================================================
--- Storage.pm  (revision 4389)
+++ Storage.pm  (working copy)
@@ -1257,7 +1257,7 @@
 sub parse_volume_id {
     my ($volid, $noerr) = @_;

-    if ($volid =~ m/^([^:]+):(.+)$/) {
+    if ($volid =~ m/^([a-z][a-z0-9\-\_\.]+[a-z0-9]):(.+)$/) {
        return wantarray ? ($1, $2) : $1;
     }
     return undef if $noerr;

Will upload a fix today.

> -----Original Message-----
> From: Tomasz Chmielewski [mailto:mangoo at wpkg.org]
> Sent: Dienstag, 27. Oktober 2009 10:16
> To: Dietmar Maurer
> Cc: pve-user at pve.proxmox.com
> Subject: Re: [PVE-User] /dev/disk/by-path/ paths not working in 1.4
> 
> Dietmar Maurer wrote:
> > Strange, it works here. Please can you send me the config file so
> that I can reproduce the problem?
> 
> For example:
> 
> ostype: l26
> memory: 2048
> onboot: 1
> vlan5: e1000=82:2C:CF:38:1E:77
> name: vw-web03
> ide2: systemrescuecd-x86-1.2.0.iso,media=cdrom
> sockets: 2
> bootdisk: scsi0
> scsi0: /dev/disk/by-path/ip-192.168.112.68:3260-iscsi-iqn.2009-
> 04.net.syneticon:san3.vw-web03-lun-1
> tablet: 0
> 
> 
> in Storage.pm, this would match here:
> 
> -    if ($volid =~ m/^([^:]+):(.+)$/) {
> +    if ($volid =~ m/^(?!\/dev)([^:]+):(.+)$/) {
> 
> 
> --
> Tomasz Chmielewski
> http://wpkg.org





More information about the pve-user mailing list