PVE 1.4 beta2: on new clust - storage not avaible

valshare

Renowned Member
Jun 2, 2009
257
2
83
Germany
Hello,

i have added a new cluster to the pve master. If i create a new kvm on the new cluster, the storage is not avaible. The /etc/iscsi/nodes directory is missing.

Code:
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.1.4 /usr/sbin/qm create 116 --cdrom cdrom --name test --vlan0 'rtl8139=B6:1E:E1:B8:BD:0C' --bootdisk ide0 --ostype other --ide0 'KVM-DATA-01:32,format=raw' --memory 512 --onboot no --sockets 1
Volume group "pve-kvm" not found 
create failed - command '/sbin/vgchange -aly pve-kvm' failed with exit code 5 
Connection to 192.168.1.4 closed. 
unable to apply VM settings -

Regards, Valle
 
Hello,

i have added a new cluster to the pve master. If i create a new kvm on the new cluster, the storage is not avaible. The /etc/iscsi/nodes directory is missing.

Code:
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.1.4 /usr/sbin/qm create 116 --cdrom cdrom --name test --vlan0 'rtl8139=B6:1E:E1:B8:BD:0C' --bootdisk ide0 --ostype other --ide0 'KVM-DATA-01:32,format=raw' --memory 512 --onboot no --sockets 1
Volume group "pve-kvm" not found 
create failed - command '/sbin/vgchange -aly pve-kvm' failed with exit code 5 
Connection to 192.168.1.4 closed. 
unable to apply VM settings -
Regards, Valle

is this an iscsi storage? try running 'apt-get install open-iscsi' to make sure this package is installed.
 
dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir

iscsi: i4500.eth1
portal 192.168.1.95
target iqn.2004-10.com.thecus:iseries-000a40e50:default-target
content none

lvm: KVM-DATA-01
vgname pve-kvm
shared
content images

proxmox01:~#
 
Your lvm storage 'KVM-DATA-01' has no reference to the iscsi storage. You created the volume group by hand?

Anyways, just add a reference to the iscsi volume, something like:

Code:
lvm: KVM-DATA-01
vgname pve-kvm
shared
content images
base i4500.eth1:0.0.0.scsi-14f504e46494c45007258485239752d316e52422d45626a50

see "man pvesm"

Does that help?
 
Hi Dietmar,

no i don´t have create it per "hand". I have add it over the web interface.

pvesm list --all gives me:

i4500.eth1:0.0.0.scsi-3202b001378a40e50 0 raw 1048608768


Must i add

base i4500.eth1:0.0.0.scsi-3202b001378a40e50

to the /etc/pve/storage?

Regards, Valle
 
Last edited:
no i don´t have create it per "hand". I have add it over the web interface.

If you create an LVM storage and selected an ISCSI volume as base is should be in the storage.conf file too. Is that error reproducabel at your side?
 
now i have created a second lvm storage on the same iscsi target. The base entry is now stored in the storage.cfg

iscsi: i4500.eth1
portal 192.168.1.95
target iqn.2004-10.com.thecus:iseries-000a40e50:default-target
content none

lvm: KVM-DATA-01
vgname pve-kvm
base i4500.eth1:0.0.0.scsi-3202b001378a40e50
shared
content images

lvm: KVM-DATA-02
vgname test
base i4500.eth1:0.0.1.scsi-3202d001378a40e50
content images
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!