[ovirt-users] Solved: Re: Failed to connect Host to the Storage Domains hosted_storage.

Robert Story rstory at tislabs.com
Fri Jul 22 17:48:22 UTC 2016


On Fri, 22 Jul 2016 18:21:15 +0200 Simone wrote:
ST> On Fri, Jul 22, 2016 at 4:48 PM, Ralf Schenk <rs at databay.de> wrote:
ST> 
ST> > Hello,
ST> >
ST> > I also see from the logs that all your Storage-Domains that work are
ST> > mounted as nfsVersion='V4' but ovirt-nfs.netsec:/ovirt/hosted-engine is
ST> > mounted as nfsVersion='null'.
ST> >  
ST> 
ST> Hi Robert,
ST> unfortunately Ralf is right: I reproduced the issue.
ST> 
ST> The auto-import procedure for the hosted-engine storage domain ignores the
ST> nfsVersion parameter and so we don't have a value for that in the engine DB.
ST> On hosted-engine hosts, the agent mounts the hosted-engine storage domain
ST> before the engine and so everything is fine since the agent knows that it's
ST> nfsv4.
ST> 
ST> The issue comes with the hosts of that datacenter not involved in
ST> hosted-engine: in this case the engine simply tries to mount without
ST> the nfsVersion parameter and so, if the NFS server cannot be access over
ST> nfsv3, the mount could fail and the host will be declared as not operation.
ST> 
ST> I opened a ticket to track it:
ST> https://bugzilla.redhat.com/show_bug.cgi?id=1359265
ST> 
ST> If you need a quick fix you can:
ST> - fix the configuration of your storage server to allow it to be accessed
ST> also over nfsv3
ST> - edit the configuration of the storage connection in the engine DB on the
ST> engine VM to add the missing parameter. Something like:
ST>  # sudo -u postgresl psql
ST>  \c engine;
ST>  select * from storage_server_connections;
ST>  UPDATE storage_server_connections SET nfs_version = '4' WHERE connection =
ST> 'ovirt-nfs.netsec:/ovirt/hosted-engine';
ST>  commit;
ST>  select * from storage_server_connections;

Thanks for that workaround. I've added it to the bugzilla. The easy manual
workaround I tried was:

# mkdir /rhev/data-center/mnt/ovirt-nfs.localdomain:_ovirt_hosted-engine

# /usr/bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nfsvers=4 \
  ovirt-nfs.localdomain:/ovirt/hosted-engine \
  /rhev/data-center/mnt/ovirt-nfs.netsec:_ovirt_hosted-engine

which got the hosts operational again.

Thanks for all the help!


Robert

-- 
Senior Software Engineer @ Parsons
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160722/38b2ae5e/attachment-0001.sig>


More information about the Users mailing list