Unable to mount hosted_storage domain on newly added Host

Latest response

Hi community,
I have RHEV self-hosted engine installed on a single server. The virtual disk for the engine is located at NFS storage domain "hosted_storage". NFS server supports only NFSv4.
During initial installation of the hosted-engine I was asked about NFS version I would like to use (and I chose v4), thus single server host I ran the installation on also mount this NFS storage domain using v4.
Now, when I tried to add one more host (second hw server), process fails on the stage of mounting hosted_storage domain, since its nfs version option is set to v3 (please see the image at the end of this post)

I tried to use ovirt-shell to update nfs client options to use version 4, however it did not reflect any effect of this command:

[oVirt shell (connected)]# update storagedomain hosted_storage --storage-nfs_version v4

id                           : 5d45cef8-b2e6-4208-84d1-a21e1c9dd499
name                         : hosted_storage
available                    : 919123001344
committed                    : 53687091200
critical_space_action_blocker: 5
data_centers-data_center-id  : 581a4bc2-00af-004e-034b-000000000206
external_status-state        : ok
master                       : False
storage-address              : nfsstorage.XXXXXXX.XXX
storage-path                 : /NFS
storage-type                 : nfs
storage_format               : v3
type                         : data
used                         : 80530636800
warning_low_space_indicator  : 10
wipe_after_delete            : False

[oVirt shell (connected)]# show storagedomain hosted_storage 

id                           : 5d45cef8-b2e6-4208-84d1-a21e1c9dd499
name                         : hosted_storage
available                    : 919123001344
committed                    : 53687091200
critical_space_action_blocker: 5
data_centers-data_center-id  : 581a4bc2-00af-004e-034b-000000000206
external_status-state        : ok
master                       : False
storage-address              : nfsstorage.XXXXXXX.XXX
storage-path                 : /NFS
storage-type                 : nfs
storage_format               : v3
type                         : data
used                         : 80530636800
warning_low_space_indicator  : 10
wipe_after_delete            : False

How would I change NFS version to v4 for hosted_storage domain without setting it to Maintenance mode?

Responses

Answering my question: using database update. So, I took credentials for PostgreSQL database from /etc/ovirt-engine/engine.conf.d/10-setup-database.conf, connected to it and issued the following queries:

engine=> SELECT * FROM storage_server_connections ;
 41bf42f2-79f2-475c-b26f-5ba86280a9dc | nfsstorage.acutenet.gfl:/NFS/OMV_Storage_Domain |           |          |     |      | 1      |            1 |         
      |          | 4           |           |            
 77873d2d-bc17-409f-8869-dbbd3af923d6 | nfsstorage.acutenet.gfl:/NFS                    |           |          |     |      | 1      |            1 |         
      |          |             |           |            
 358b8c62-34eb-484b-b300-c17d31315b30 | nfsstorage.acutenet.gfl:/NFS/ovirt-export       |           |          |     |      | 1      |            1 |         
      |          | 4           |           |            

engine=> \d storage_server_connections;
 id            | character varying(50)  | not null
 connection    | character varying(250) | not null
 user_name     | text                   | 
 password      | text                   | 
 iqn           | character varying(128) | 
 port          | character varying(50)  | 
 portal        | character varying(50)  | 
 storage_type  | integer                | not null
 mount_options | character varying(500) | 
 vfs_type      | character varying(128) | 
 nfs_version   | character varying(4)   | 
 nfs_timeo     | smallint               | 
 nfs_retrans   | smallint               | 

                                                               ^
engine=> update storage_server_connections set nfs_version=4 where id='77873d2d-bc17-409f-8869-dbbd3af923d6';
UPDATE 1
engine=> SELECT * FROM storage_server_connections ;
 41bf42f2-79f2-475c-b26f-5ba86280a9dc | nfsstorage.acutenet.gfl:/NFS/OMV_Storage_Domain |           |          |     |      | 1      |            1 |         
      |          | 4           |           |            
 358b8c62-34eb-484b-b300-c17d31315b30 | nfsstorage.acutenet.gfl:/NFS/ovirt-export       |           |          |     |      | 1      |            1 |         
      |          | 4           |           |            
 77873d2d-bc17-409f-8869-dbbd3af923d6 | nfsstorage.acutenet.gfl:/NFS                    |           |          |     |      | 1      |            1 |         
      |          | 4           |           |  

~~~

And now I have the option V4 for hosted_storage domain. New host is added successfully!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.