Error when uploading to secondary storage

calle

New Member
Jan 5, 2012
2
0
1
So i've created a small test enviroment running Proxmox(2) from a USB drive. I'ts been running really well considering it has both the VMS and the OS on a USB stick. But today i felt bad for the poor usb hdd and added a secondary (600 gb raid) to the machine. First i tryed to create a file system on the drive.
Code:
 lvcreate -n raid0 -L 550g raid0 mkfs.ext3 /dev/raid0/raid0
The problem was that all the data was "used" in proxmox (altho fine in df -h when mounted) i recreated the drive
Code:
   238  vgcreate raid0 /dev/sdb   239  lvcreate -n raid0 -L 550g raid0   240  vgremove raid0   241  vgcreate raid0 /dev/sdb
And added it from the WebGui. It looks good and shows the space as available. But when trying to upload a small iso (~20 mb) i get the following error: "Error 500: cant upload to storage type 'lvm' at /usr/share/perl5/PVE/API2/Storage/Status.pm line 271." Uploading the same file to the USB storage works. Well could there be a raid controller/HDD error? From the webinterface i crate a new KVM machine with 32 gb hdd status: vm 101 create: ok I started a windows XP install on the VM, its fast like hell. must be on the raid. Looking at the storage its now using 5% and i see the 32 GB vm101 hdd. Install is completed and working well. A df shows the storage cant be on the USB drive
Code:
 Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/pve-root  3.5G 1010M  2.3G  31% / tmpfs                 1.5G     0  1.5G   0% /lib/init/rw udev                  1.5G  256K  1.5G   1% /dev tmpfs                 1.5G   47M  1.5G   4% /dev/shm /dev/mapper/pve-data  7.3G  620M  6.7G   9% /var/lib/vz /dev/sda1             495M   33M  438M   7% /boot /dev/fuse              30M   12K   30M   1% /etc/pve
To conclude: can't upload files to the secondary raid storage, uploading to the main (usb works). Creating VMS on the Secondary storage worksm not a raid/hdd problem(?). Any hints how i can resolve this? Lots of love to Proxmox! Calle Edit: for some reason he forum is ignoring the newlines, don't know why. if you want me to clear something up just tell me =)
 
Last edited:
It is not possible to upload files to a block storage device (lvm). You need a filesystem instead.
So if i make a ext3 filesystem on the LVM volume and mount it i would be able to add it as storage for both vms and files? I don't have access to the system right now so i can't try it. Thanks alot for the answer, it was driving me crazy :) Calle