[PVE-User] /dev/disk/by-path/ paths not working in 1.4
Tomasz Chmielewski
mangoo at wpkg.org
Sat Oct 24 01:22:53 CEST 2009
Tomasz Chmielewski wrote:
> I just migrated one server from 1.3 to 1.4, and suddenly, KVM guests are failing to start.
>
> In the config file, I was using paths like:
>
> scsi0: /dev/disk/by-path/ip-192.168.112.68:3260-iscsi-iqn.2009-04.net.syneticon:san3.vw-web04-lun-1
>
> which was working with Proxmox VE 1.3.
>
>
> With 1.4, it doesn't work anymore and fails with:
>
> # qm start 115
> storage '/dev/disk/by-path/ip-192.168.112.68' does not exists
>
>
> Looks like it breaks somewhere on parsing when it finds ":".
>
>
> I'm aware that iSCSI is supposed to be used in a different was, but still, everything what's in /dev/disk/by-path
> or /dev/disk/by-id is a valid path which can be used without problems by other system tools.
As I see, this part of code:
sub parse_volume_id {
my ($volid, $noerr) = @_;
if ($volid =~ m/^([^:]+):(.+)$/) {
return wantarray ? ($1, $2) : $1;
}
return undef if $noerr;
die "unable to parse volume ID '$volid'\n";
}
Would expect something like this:
scsi0: san3.vw-web04:0.0.1.scsi-1IET_00140001
But it will break on such paths:
virtio0: /dev/disk/by-path/ip-192.168.112.68:3260-iscsi-iqn.2009-04.net.syneticon:san3.contact-pdc-lun-1
--
Tomasz Chmielewski
http://wpkg.org
More information about the pve-user
mailing list