I ssh'd to my Synology NAS and created the user and group vdsm/kvm with id 36 and chown'd the share.
  The permissions on shared folders for oVirt are 0750, no where near as open as 0777...

Not had any problems with it over the years, just need to change the ownership of the new shares before using them.

On Wed, 3 Jul 2019 at 08:20, Andy Michielsen <andy.michielsen@gmail.com> wrote:
Hello,

I got it working after changing the permissions from the shared folder from 777 to 755 ? Wasn't expecting that.

So to get a DS1219+ providing a NFS share for my oVirt environment and this is how I did it.

First create the volume and the NFS share in the synology. Create a user vdsm and a group kvm. And then the magic happens on the commandprompt from the synology.

SSH into the synology and change the uid and gid to 36 in the /etc/passwd file for the user vdsm. Also change the gid in the /etc/group file to 36 for the group kvm. Then change the permissions for the created share, in my case volume1, to 755 instead off the 777+ synology gives.

Restart the nfs server in the ssh session with synoservice --restart nfsd.

And thank you all very much for the assistance. It put me on the right track.

Kind regards.

Op wo 3 jul. 2019 om 05:44 schreef Oliver Riesener <Oliver.Riesener@hs-bremen.de>:
Hi,

everything look good.

I would prefer to hostnames (not asterisk) in /etc/exports

[root@ovirtnode005 ~]# showmount -e ovirtstorcl001.get.be
Export list for ovirtstorcl001.get.be:
/volume1/GETQUADATA001 *

my /etc/exports would look like this:

/volume1/GETQUADATA001 ovirtnode001.get.be(rw,async,no_root_squash,no_subtree_check) ovirtnode002.get.be(rw,async,no_root_squash,no_subtree_check) ovirtnode003.get.be(rw,async,no_root_squash,no_subtree_check) ovirtnode004.get.de(rw,async,no_root_squash,no_subtree_check) ovirtnode005.get.be(rw,async,no_root_squash,no_subtree_check)

Don’t forget to reexport:

# exportfs -ra

Am 02.07.2019 um 16:43 schrieb Joseph Jackson <jjackson@aninetworks.net>:

If I mount the nfs share

[root@ovirtnode005 ~]# mkdir /mnt/nfs

[root@ovirtnode005 ~]# mount -t nfs ovirtstorcl001.get.be:/volume1/GETQUADATA001 /mnt/nfs

[root@ovirtnode005 ~]# ls -l /mnt/nfs
total 0
drwxrwxrwx 1 vdsm kvm 22 Jun 27 15:26 #recycle

The jumping point here is, could you create directories with (SPM Host) on that location with vdsm user?

[root@ovirtnode005 ~]# sudo -u vdsm mkdir /mnt/nfs/xx
[root@ovn-elem tmp]# ls -lad /mnt/nfs/xx
drwxr-xr-x. 2 vdsm kvm 6  3. Jul 05:19 /mnt/nfs/xx


[root@ovirtnode005 ~]# umount /mnt/nfs
[root@ovirtnode005 ~]# ls -l /mnt/nfs
total 0
[root@ovirtnode005 ~]#


Best Regards, Oliver
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZRDRX3CUQ4IP5QFCSZMCT5ASKXTTHQOF/
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/FS7ZULXV3GB4ATXOHPNXIUXN5UI5WA4I/