adding NFS storge for Virtual Disk under 1.4??

yesmat

New Member
Jul 25, 2009
13
0
1
Hi all,

I have installed the new 1.4 release successfully.

I also managed to add NFS external storage for VZDump and ISOs. But when i try to add one for Virtual Disk I get the following error:

Error: mkdir /mnt/pve/test/images: Permission denied at /usr/share/perl5/PVE/Storage.pm line 2036

But when I SSH to the server i can see that all my attempts to create this Storage has been successfull, meaning that a directory was created under /mnt/pve/.

Even then I still can't see any of these directories either under "Storage List" neither can I use any of them when I create a new VM.

Are we supposed to be able to create storage for VDisks? what am I missing?

Thanks and great work.
 
Hi all,

I have installed the new 1.4 release successfully.

I also managed to add NFS external storage for VZDump and ISOs. But when i try to add one for Virtual Disk I get the following error:

Error: mkdir /mnt/pve/test/images: Permission denied at /usr/share/perl5/PVE/Storage.pm line 2036

But when I SSH to the server i can see that all my attempts to create this Storage has been successfull, meaning that a directory was created under /mnt/pve/.

Even then I still can't see any of these directories either under "Storage List" neither can I use any of them when I create a new VM.

Are we supposed to be able to create storage for VDisks? what am I missing?

Thanks and great work.

it works here, just tested again on a fresh installed (from iso). do you have more info/logs?
 
it works here, just tested again on a fresh installed (from iso). do you have more info/logs?

these are the directories that the proxmox server created when i was trying to create the Virtual Disk storage. You will notice that there are multiple directories that were created but are not available for usage and I can't delete them either as shown below.. (OpenfilerISO and OpenfilerVZDump are OK)

proxmox:/mnt/pve# pwd
/mnt/pve
proxmox:/mnt/pve# ls -al
total 16
drwxr-xr-x 10 root root 4096 Sep 13 10:07 .
drwxr-xr-x 3 root root 4096 Sep 12 17:39 ..
drwxr-xr-x 3 root root 4096 Sep 13 00:31 OpenfilerISO
drwxr-xr-x 3 root root 55 Sep 12 22:29 OpenfilerVDISKS
drwxr-xr-x 3 root root 55 Sep 12 22:29 OpenfilerVMS
drwxr-xr-x 3 root root 55 Sep 12 22:29 OpenfilerVMS1
drwxr-xr-x 3 root root 55 Sep 12 22:29 OpenfilreVMS
drwxr-xr-x 3 root root 55 Sep 12 22:30 OpenfilreVZDump
drwxr-xr-x 2 root root 4096 Sep 12 17:42 opfiler_VD
drwxr-xr-x 3 root root 55 Sep 12 22:29 tyui
proxmox:/mnt/pve#
proxmox:/mnt/pve# rm -fr OpenfilerVDISKS
rm: cannot remove `OpenfilerVDISKS/aquota.group': Permission denied
rm: cannot remove `OpenfilerVDISKS/aquota.user': Permission denied
rm: cannot remove directory `OpenfilerVDISKS/homes': Permission denied

I am doing all that as root so i thought i should be able to delete anything.

Below is my /etc/exports file contents on the NFS server. You will see that I have created 3 folders for (ISOS, VMS and VZDumps) and I can't see why the vms folder is any different from the other two.

/mnt/vg0/iso 192.168.1.251(ro)
/mnt/vg0/vms 192.168.1.251(rw)
/mnt/vg0/vzdump 192.168.1.251(rw)

hope that helps with diagnosis.

Thanks
 
Last edited:
I believe you need to disable root_squash for the nfs share to allow root to have access. The root access is usually disabled by default as a security measure.

- Garrett
 
I believe you need to disable root_squash for the nfs share to allow root to have access. The root access is usually disabled by default as a security measure.

- Garrett

I wouldn't have thought so, why is it working for OpenfilerISO and OpenfilreVZDump?
 
Why does OpenfileVDISKS contain file called 'OpenfilerVDISKS/aquota.group'? That does not lock like a virtual disk?
 
These folders are NFS folder and mounted on the proxmox server. The way they were created are as follows:

1- On the NFS server I have manually created the following volumes:
a- /mnt/vg0/ISOS
b- /mnt/vg0/VMS
c- /mnt/vg0/VZDUMP

2- To add NFS storage oN THE Proxmox server, I clicked on Storage then Add NFS share to add all three volumes

3- I then entered the IP address of the NFS server and clicked on Scan.

4- All of a sudden all three volumes that I manually created above appeared under exports.

5- I then chose each one individually to create the relevant type of storage.

So it is possible that the quota files are created by default when I created the volumes on the NFS server, or maybe they are default files that get created when configuring NFS. These files also exist under the two other working directories.

I think I will remove these volumes from the exports file on NFS server and start again fresh.