Bug 1839663 - [Docs] Update RHV mount options when replacing a host with different FQDN
Summary: [Docs] Update RHV mount options when replacing a host with different FQDN
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: doc-Maintaining_RHHI
Version: rhhiv-1.7
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: RHHI-V 1.8.z Async Update
Assignee: Disha Walvekar
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1898439
TreeView+ depends on / blocked
 
Reported: 2020-05-25 08:28 UTC by Juan Orti Alcaine
Modified: 2023-09-07 23:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 11:00:20 UTC
Embargoed:


Attachments (Terms of Use)
Jumbled output (59.30 KB, image/png)
2020-12-02 07:35 UTC, Disha Walvekar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5101481 0 None None None 2020-05-25 08:48:15 UTC

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


Note You need to log in before you can comment on or make changes to this bug.