[Users] custom nfs mount options

Itamar Heim iheim at redhat.com
Thu Jan 24 12:25:50 UTC 2013


On 24/01/2013 04:24, Alexandru Vladulescu wrote:
>
> Hi guys,
>
> I remember asking the same thing a couple of weeks ago. Itamar answered
> to be the same, should check the vdsm.conf file for nfs mount options.
> Because I did not had the time to do test this until now, I return with
> the test results.
>
> Well Alex it seems to be right, on the 3.1 version, if you go and edit
> the /etc/vdsm/vdsm.conf file, on line 146, I uncommented the
> nfs_mount_options parameter and changed it to :
>
> nfs_mount_options = soft,nosharecache,noatime,rsize=8192,wsize=8192
>
> Went in Ovirt interface, put the node from Hosts tab into Maintenance,
> so that the ISO domain and Master Domain will get unmounted
> automatically; restarted the vdsm service on the hypervisior server and
> activate the node back from GUI. Upon mount command, there is no change
> or difference between what I have added and what was configured
> automatically before.

I remember something about you must not pass any nfs option from ovirt, 
or it will override the vdsm.conf.
are you trying to set nfs options from both engine and vdsm.conf?

>
>   type nfs
> (rw,soft,nosharecache,timeo=10,retrans=6,vers=4,addr=x.x.x.x,clientaddr=x.x.x.x)
>
> Might this be a bug on vdsm to be fixed ?
>
> Alex.
>
>
> On 01/24/2013 01:45 PM, Alex Leonhardt wrote:
>> So I've tried some bits Itamar asked me to - however, still get the
>> same mount options shown.
>>
>> I tried "service vdsmd reconfigure; service vdsmd restart" - the mount
>> for HV03:/vmfs/data should now have the new mount options, but no luck.
>>
>> Anyone time to help ?
>>
>> Alex
>>
>>
>>
>> On 24 January 2013 10:54, Alex Leonhardt <alex.tuxx at gmail.com
>> <mailto:alex.tuxx at gmail.com>> wrote:
>>
>>     I've got now :
>>
>>     nfs_mount_options = soft,nosharecache,rsize=32768,wsize=32768,noatime
>>
>>
>>     However, when I check the mounts on the host, it does not show
>>     these addtitional options used ? (only soft,nosharecache), here
>>     the mount output:
>>
>>     HV02:/vmfs/data.old2 on /rhev/data-center/mnt/HV02:_vmfs_data.old2
>>     type nfs
>>     (rw,soft,nosharecache,timeo=600,retrans=6,nfsvers=3,addr=x.x.x8)
>>     HV02:/vmfs/data on /rhev/data-center/mnt/HV02:_vmfs_data type nfs
>>     (rw,soft,nosharecache,timeo=600,retrans=6,vers=3,addr=x.x.x8)
>>     HV03:/vmfs/data on /rhev/data-center/mnt/HV03:_vmfs_data type nfs
>>     (rw,soft,nosharecache,timeo=600,retrans=6,nfsvers=3,addr=127.0.0.1)
>>
>>     Above is after I restarted HV03 so it really should have mounted
>>     HV03:/vmfs/data with the new options
>>
>>     another question would be if "nolock" would be a good idea as it
>>     seems that nfs ops are sometimes being blocked by a lock ? at
>>     least, it behaves as if .. i havent further investigated yet.
>>
>>     Alex
>>
>>
>>
>>
>>
>>     On 23 January 2013 13:27, Itamar Heim <iheim at redhat.com
>>     <mailto:iheim at redhat.com>> wrote:
>>
>>         On 22/01/2013 11:43, Haim Ateya wrote:
>>
>>             you can set it manually on each hypervisor by using vdsm.conf.
>>
>>             add the following into /etc/vdsm/vdsm.conf
>>
>>             [irs]
>>             nfs_mount_options = soft,nosharecache
>>
>>             restart vdsmd service on the end.
>>
>>
>>         you can also set them via a posixfs storage domain, but for
>>         nfs, an nfs storage domain is recommended over a posixfs one.
>>         question is what is the use case for them, and should they be
>>         added for nfs domains as well.
>>
>>
>>
>>             ----- Original Message -----
>>
>>                 From: "Alex Leonhardt" <alex.tuxx at gmail.com
>>                 <mailto:alex.tuxx at gmail.com>>
>>                 To: "oVirt Mailing List" <users at ovirt.org
>>                 <mailto:users at ovirt.org>>
>>                 Sent: Tuesday, January 22, 2013 1:46:56 AM
>>                 Subject: [Users] custom nfs mount options
>>
>>
>>
>>
>>
>>                 Hi,
>>
>>                 Is it possible set custom nfs mount options,
>>                 specifically : noatime,
>>                 wsize and rsize ? I couldnt see anything when "adding
>>                 a NFS domain"
>>                 - only timeout & retry.
>>
>>
>>                 Thanks!
>>                 Alex
>>
>>
>>
>>
>>
>>                 --
>>
>>
>>
>>                 | RHCE | Senior Systems Engineer | www.vcore.co
>>                 <http://www.vcore.co> |
>>                 | www.vsearchcloud.com <http://www.vsearchcloud.com> |
>>
>>                 _______________________________________________
>>                 Users mailing list
>>                 Users at ovirt.org <mailto:Users at ovirt.org>
>>                 http://lists.ovirt.org/mailman/listinfo/users
>>
>>             _______________________________________________
>>             Users mailing list
>>             Users at ovirt.org <mailto:Users at ovirt.org>
>>             http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>>
>>
>>     --
>>
>>     | RHCE | Senior Systems Engineer | www.vcore.co
>>     <http://www.vcore.co> | www.vsearchcloud.com
>>     <http://www.vsearchcloud.com> |
>>
>>
>>
>>
>> --
>>
>> | RHCE | Senior Systems Engineer | www.vcore.co <http://www.vcore.co>
>> | www.vsearchcloud.com <http://www.vsearchcloud.com> |
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
>
> --
> Alexandru Vladulescu
> System Engineer
> ---------------------------------------------------------------------------------
> Bright Future Project Romania
> Skype :   avladulescu
> Mobile :  +4(0)726.373.098
> ---------------------------------------------------------------------------------
>




More information about the Users mailing list