Bug 1839663

Summary: [Docs] Update RHV mount options when replacing a host with different FQDN
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Juan Orti Alcaine <jortialc>
Component: doc-Maintaining_RHHIAssignee: Disha Walvekar <dwalveka>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhhiv-1.7CC: asriram, dwalveka, mmuench, rhs-bugs, sasundar
Target Milestone: ---Keywords: Documentation
Target Release: RHHI-V 1.8.z Async Update   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-29 11:00:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1898439    
Attachments:
Description Flags
Jumbled output none

Description Juan Orti Alcaine 2020-05-25 08:28:53 UTC
Description of problem:
In the procedure to replace a secondary host with a different FQDN [1], I'm missing to update the "backup-volfile-servers" mount option with the new host.

To modify the storage domains mount options in RHV, they need to be in maintenance mode first, so that will imply a downtime. For the hosted engine storage domain there's no direct way to modify it, so I suppose a SQL update will be needed. I'm not sure if we just simply should update the database for all storage domains and reboot one host at a time after that. That way, we can avoid the down time.

If opting for the SQL update, I'd first check the storage server connections IDs to be updated:

# /usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "SELECT id, connection, mount_options FROM storage_server_connections WHERE storage_type = 7;"

Then, for each one of the UUIDs that need an update:

# /usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "UPDATE storage_server_connections SET mount_options = 'backup-volfile-servers=<host2_IP>:<host3_IP>' WHERE id = '<UUID>' AND storage_type = 7;"


The hosted engine HA configuration needs to be updated too:

- Update hosted engine storage mount options in the shared storage by running this in one host:

# hosted-engine --set-shared-config mnt_options "backup-volfile-servers=<host2_IP>:<host3_IP>" --type=he_shared

- Update hosted engine storage mount options in each one of the host by running:

# hosted-engine --set-shared-config mnt_options "backup-volfile-servers=<host2_IP>:<host3_IP>" --type=he_local



[1] https://access.redhat.com/documentation/en-us/red_hat_hyperconverged_infrastructure_for_virtualization/1.7/html/maintaining_red_hat_hyperconverged_infrastructure_for_virtualization/replacing-hosts#replacing_hc_host_diff_fqdn

Version-Release number of selected component (if applicable):
Latest RHHI-V 1.7 documentation

How reproducible:
Always

Steps to Reproduce:
1.  Follow procedure "12.2.1. Replacing a hyperconverged host to use a different FQDN"

Actual results:
The "backup-volfile-servers" mount option of the storage domains is not updated, and still referring to the old server.

Expected results:
Database and hosted engine config updated.

Additional info:

Comment 4 Disha Walvekar 2020-12-02 07:35:36 UTC
Created attachment 1735501 [details]
Jumbled output

Comment 6 SATHEESARAN 2020-12-08 01:44:25 UTC
The changes in the doc link looks good.

Comment 8 SATHEESARAN 2021-04-29 11:00:20 UTC
The document is published and it has the required content as expected in comment0