Adding local LVM group on node throws an error

timc3

New Member
Apr 15, 2011
2
0
1
Stockholm
www.cantemo.com
Trying to debug the follow.

I have two proxmox 1.8 machines, master and slave, both with some local storage that I wish to use. On the slave, I have created some LVM groups, and so in the web interface on that server under storage, I select "Add LVM Group" and then add the following:

Storagename: vm2vg01
Base Storage: Existing volume groups
Volume Group Name: vdisk01
Enabled: ticked
Shared: unticked
Content: Virtual Disks

Upon clicking save I get the following error:

Error you do not have write access

And thats it. I am logged into each through the web interface.

vmhost02:/etc# pveversion -v
pve-manager: 1.8-15 (pve-manager/1.8/5754)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-32
pve-kernel-2.6.32-4-pve: 2.6.32-32
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-11
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-2
ksm-control-daemon: 1.0-5
 
all storages needs to be accessible from all hosts. therefore you can only configure this on the master and all nodes replicate this definition.
(maybe you workaround this by creating fake LVM groups on all nodes)

and yes, the upcoming 2.x version will address this limitation and you will be able to configure storages for each host.
 
So to confirm if I have the following configuration:

Master with single 1TB drive

Node with 3, 146GB drives.

I cannot use the other two 146GB drives because the master won't recognize them since it doesn't have that local storage. I have version 1.8.

Is this correct? Any work around?
 
I figured out that if I do Add Directory for the storage instead and do so on the master it shows up on all other local nodes.

Any down side to using Add Directory (I had to mount of LVM group myself in /etc/fstab) versus Add LVM Group?