
------5YHBUFYRT5GVBTR0JVW5A916EMFQ77 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Hi, My POC environment have 2 hosts - host A and host B, both are CentOS7. Installed oVirt 3.6 self-hosted engine. I manually created a 2-brick GlusterFS volume using both hosts and added it to my datacenter. I tried shutting down host A. The hosted-engine restarted in host B within 3 minutes, which is very cool. However, the GlusterFS data domain, which I set both 'Use Host' and 'Path' to the host A, is down along with it. Here comes my questions: 1. How can I enable failover GlusterFS data domain? 2. How can I reverse back to the state before adding the data domain? The data domain is super persistent - I can't edit or delete it. I put it to maintenance mode but still unable to detach or destroy it because it requires me to remove the datacenter first. I tried but can't remove the datacenter either. 3. Why can't I add another GlusterFS data domain? When I choose 'GlusterFS' as my 'Storage Type' every text field become grayed-out. 4. When host A restarted again, I notice that 'Use Host' was changed from host A to host B instead. Is this an expected behavior? Regards, Wee Sritippho P.S: Please excuse my poor English. ------5YHBUFYRT5GVBTR0JVW5A916EMFQ77 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi,<br> <br> My POC environment have 2 hosts - host A and host B, both are CentOS7. <br> Installed oVirt 3.6 self-hosted engine. I manually created a 2-brick <br> GlusterFS volume using both hosts and added it to my datacenter.<br> <br> I tried shutting down host A. The hosted-engine restarted in host B <br> within 3 minutes, which is very cool. However, the GlusterFS data <br> domain, which I set both 'Use Host' and 'Path' to the host A, is down <br> along with it.<br> <br> Here comes my questions:<br> 1. How can I enable failover GlusterFS data domain?<br> 2. How can I reverse back to the state before adding the data domain? <br> The data domain is super persistent - I can't edit or delete it. I put <br> it to maintenance mode but still unable to detach or destroy it because <br> it requires me to remove the datacenter first. I tried but can't remove <br> the datacenter either.<br> 3. Why can't I add another GlusterFS data domain? When I choose <br> 'GlusterFS' as my 'Storage Type' every text field become grayed-out.<br> 4. When host A restarted again, I notice that 'Use Host' was changed <br> from host A to host B instead. Is this an expected behavior?<br> <br> Regards,<br> Wee Sritippho<br> <br> P.S: Please excuse my poor English. ------5YHBUFYRT5GVBTR0JVW5A916EMFQ77--

On Fri, Nov 20, 2015 at 1:09 PM, Wee Sritippho <wee.s@forest.go.th> wrote:
Hi,
My POC environment have 2 hosts - host A and host B, both are CentOS7. Installed oVirt 3.6 self-hosted engine. I manually created a 2-brick GlusterFS volume using both hosts and added it to my datacenter.
You are using replica 2 volume - this is not supported.
I tried shutting down host A. The hosted-engine restarted in host B within 3 minutes, which is very cool. However, the GlusterFS data domain, which I set both 'Use Host' and 'Path' to the host A, is down along with it.
With replica 2, the file system becomes readonly as soon as one brick is down.
Here comes my questions: 1. How can I enable failover GlusterFS data domain?
Use replica 3 volume.
2. How can I reverse back to the state before adding the data domain?
Get both bricks up, remove the storage domain. If this is the only storage domain, maybe adding another brick, converting ti to replica 3 will be enough.
The data domain is super persistent - I can't edit or delete it. I put it to maintenance mode but still unable to detach or destroy it because it requires me to remove the datacenter first. I tried but can't remove the datacenter either.
Is this the only datacenter? You cannot remove it if the hosted engine doamin is using it. I recommend separating the data center used by the hosted engine domain and data center used for your vms.
3. Why can't I add another GlusterFS data domain? When I choose 'GlusterFS' as my 'Storage Type' every text field become grayed-out.
Maybe the selected host is down? Can you createa any other storage domain?
4. When host A restarted again, I notice that 'Use Host' was changed from host A to host B instead. Is this an expected behavior?
Use host probably select the first host in the list of available hosts. Nir

Hi Nir, Thank you for spending your time answering all of the questions. I really appreciate it. Today morning, I'm, somehow, able to edit the existing GlusterFS data domain / add a new GlusterFS data domain. Therefore, I created a replica-3 volume and added it as a new data domain, then removed the replica-2 volume as you suggested. I though the problem in the 3rd question was gone and I won't be able to reproduce it again. However, after some amount of time, I'm able to reproduce it once more time : On 20/11/2558 21:34, Nir Soffer wrote:
3. Why can't I add another GlusterFS data domain? When I choose 'GlusterFS' as my 'Storage Type' every text field become grayed-out. Maybe the selected host is down? Can you createa any other storage domain?
Nir This time, I can confirmed that both the host and GlusterFS was up in 'gluster-status.txt'. I'm able to create any other storage domain except GlusterFS as recorded in 'ovirt-cant-add-glusterfs-domain.mp4'.
Wee --- ซอฟต์แวร์ Avast แอนตี้ไวรัสตรวจสอบหาไวรัสจากอีเมลนี้แล้ว https://www.avast.com/antivirus
participants (2)
-
Nir Soffer
-
Wee Sritippho