Re: [ovirt-users] Best way to shutdown and restart hypervisor?
On Fri, Feb 10, 2017 at 2:56 PM, Gianluca Cecchi wrote: > On Fri, Feb 10, 2017 at 2:27 PM, Martin Perina wrote: > >> Hi Gianluca, >> >> so generally speaking when host is in Maintenance status, engine doesn't >> communicate with this host, so you can do pretty much anything about it. >> > > Thanks for the detailed answer, Martin. > It seemed to me that in the past I did a reboot at the host OS level while > in maintenance and this generated a series of fencing/reboots of the host > itself, so I wanted to be sure. > It is possible that at that time I also used "Confirm host has been > rebooted" button, as initially I misunderstood its target and it was > that action to generate fencing loops (2 or 3 I don't remember). > Then in Admin manual for 4.0 I saw that instead it is only to be used in > case of unresponsive host, correct? > > " > If a host unpredictably goes into a non-responsive state, for example, due > to a hardware failure; > it can significantly affect the performance of the environment. If you do > not have a power > management device, or it is incorrectly configured, you can reboot the > host manually. > > Do not use the Confirm host has been rebooted option unless you have > manually > rebooted the host. Using this option while the host is still running can > lead to a virtual > machine image corruption. > > Procedure 7.20. Manually fencing or isolating a non-responsive host > 1. On the Hosts tab, select the host. The status must display as > non-responsive. > 2. Manually reboot the host. This could mean physically entering the lab > and rebooting the > host. > 3. On the Administration Portal, right-click the host entry and select the > Confirm Host has > been rebooted button. > 4. A message displays prompting you to ensure that the host has been shut > down or > rebooted. Select the Approve Operation check box and click OK. > " > > Initially I misread and kept focus only to the "Manually fencing" and > "Manually reboot" but point 1. seems quite clear: > The status must display as non-responsive. > So no other use for "Confirm Host has been rebooted" > I will verify again the workflow > Right, by executing "Confirm Host has been rebooted" you take the responsibility and tell engine, that everything running on the host is really turned off. After that engine can change VM statuses do Down and restart HA VMs. But this option has to be used really carefully, otherwise you could cause data loss or even split brain. IMO this option should be used only if your hosts does not support Power Management (in this case you cannot have HA VMs) or you have some hardware failure which prevents power management to turn off the host. > > > > >> >> About the upgrade flow (host 4.0 -> 4.1), here's proper way(s) how to >> achieve that: >> > > Yes, my question was in general, eg when I'm going to pass from 4.1.0.4 to > 4.1.1 > > >> >> 1. Put host to Maintenance >> 2. Add 4.1 repositories to the host >> 3. Upgrade the host - you have 2 options here: >> a. UI >> - Go to Hosts tab in webadmin >> - Select host and click on Reinstall inside Installation menu >> b. Command line >> - Connect to the host using SSH and upgrade using yum >> > > Sometimes at this point I could have a new kernel to boot, due to the > update just completed, so the point 4. is not what I would like to do right > now. > Yes, but this is OS upgrade, which should be done only manually via SSH and only when host is in Maintenance. By "host upgrade" in oVirt terms we usually mean only upgrade of VDSM and dependent packages like libvirt or qemu-kvm ... > >> 4. Activate the host >> > >> The main difference between UI and command line options is, that with UI >> option only necessary packages like VDSM and it's dependencies are upgraded. >> >> Now regarding restart: >> 1. If host is in Maintenance, restart using SSH and shutdown/reboot >> execution is no problem. But if host is Up, then executing shutdown/reboot >> using SSH will make host NonResponsive and fencing will be executed >> >> 2. If you select Restart using SSH from Maintenance menu, it just >> connect using SSH and execute shutdown same way as it's done manually >> >> 3. If you select Restart using Power Management from Maintenance >> menu, it will execute restart using PM device and further actions are >> hardware dependent. On some servers it will send shutdown signal to OS >> similarly as if you execute reboot and afterwards it turns off power of the >> server (so the result may be the same as using shutdown from command line). >> But on different hardware it can just turn off power of the server. >> >> So for planned restart using SSH restart either from UI or from command >> line is preferred way. >> > > > Ok, so a normal reboot is ok as point 4.. > And then after reboot > 5. Activate (and not "Confirm Host Has Rebooted"... ;-) > Right > > > Regarding Power Mgmt ---> Restart > I thought that in general I should
Re: [ovirt-users] Best way to shutdown and restart hypervisor?
On Fri, Feb 10, 2017 at 2:27 PM, Martin Perina wrote: > Hi Gianluca, > > so generally speaking when host is in Maintenance status, engine doesn't > communicate with this host, so you can do pretty much anything about it. > Thanks for the detailed answer, Martin. It seemed to me that in the past I did a reboot at the host OS level while in maintenance and this generated a series of fencing/reboots of the host itself, so I wanted to be sure. It is possible that at that time I also used "Confirm host has been rebooted" button, as initially I misunderstood its target and it was that action to generate fencing loops (2 or 3 I don't remember). Then in Admin manual for 4.0 I saw that instead it is only to be used in case of unresponsive host, correct? " If a host unpredictably goes into a non-responsive state, for example, due to a hardware failure; it can significantly affect the performance of the environment. If you do not have a power management device, or it is incorrectly configured, you can reboot the host manually. Do not use the Confirm host has been rebooted option unless you have manually rebooted the host. Using this option while the host is still running can lead to a virtual machine image corruption. Procedure 7.20. Manually fencing or isolating a non-responsive host 1. On the Hosts tab, select the host. The status must display as non-responsive. 2. Manually reboot the host. This could mean physically entering the lab and rebooting the host. 3. On the Administration Portal, right-click the host entry and select the Confirm Host has been rebooted button. 4. A message displays prompting you to ensure that the host has been shut down or rebooted. Select the Approve Operation check box and click OK. " Initially I misread and kept focus only to the "Manually fencing" and "Manually reboot" but point 1. seems quite clear: The status must display as non-responsive. So no other use for "Confirm Host has been rebooted" I will verify again the workflow > > About the upgrade flow (host 4.0 -> 4.1), here's proper way(s) how to > achieve that: > Yes, my question was in general, eg when I'm going to pass from 4.1.0.4 to 4.1.1 > > 1. Put host to Maintenance > 2. Add 4.1 repositories to the host > 3. Upgrade the host - you have 2 options here: > a. UI > - Go to Hosts tab in webadmin > - Select host and click on Reinstall inside Installation menu > b. Command line > - Connect to the host using SSH and upgrade using yum > Sometimes at this point I could have a new kernel to boot, due to the update just completed, so the point 4. is not what I would like to do right now. > 4. Activate the host > > The main difference between UI and command line options is, that with UI > option only necessary packages like VDSM and it's dependencies are upgraded. > > Now regarding restart: > 1. If host is in Maintenance, restart using SSH and shutdown/reboot > execution is no problem. But if host is Up, then executing shutdown/reboot > using SSH will make host NonResponsive and fencing will be executed > > 2. If you select Restart using SSH from Maintenance menu, it just > connect using SSH and execute shutdown same way as it's done manually > > 3. If you select Restart using Power Management from Maintenance menu, > it will execute restart using PM device and further actions are hardware > dependent. On some servers it will send shutdown signal to OS similarly as > if you execute reboot and afterwards it turns off power of the server (so > the result may be the same as using shutdown from command line). But on > different hardware it can just turn off power of the server. > > So for planned restart using SSH restart either from UI or from command > line is preferred way. > Ok, so a normal reboot is ok as point 4.. And then after reboot 5. Activate (and not "Confirm Host Has Rebooted"... ;-) Regarding Power Mgmt ---> Restart I thought that in general I should completely disable on the host the feature to initiate shutdown in case of power button pressed, like in RHCS or similar targeted environments: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/s2-acpi-disable-boot-CA.html Is it not the case in oVirt? I think in case of fencing, it is necessary to have the host down as soon as possible My initial question was the confirmation about Power Mgmt --> Restart : if it implied power Off / Power On by design or any other workflow Thanks in advance, Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Best way to shutdown and restart hypervisor?
Hi Gianluca, so generally speaking when host is in Maintenance status, engine doesn't communicate with this host, so you can do pretty much anything about it. About the upgrade flow (host 4.0 -> 4.1), here's proper way(s) how to achieve that: 1. Put host to Maintenance 2. Add 4.1 repositories to the host 3. Upgrade the host - you have 2 options here: a. UI - Go to Hosts tab in webadmin - Select host and click on Reinstall inside Installation menu b. Command line - Connect to the host using SSH and upgrade using yum 4. Activate the host The main difference between UI and command line options is, that with UI option only necessary packages like VDSM and it's dependencies are upgraded. Now regarding restart: 1. If host is in Maintenance, restart using SSH and shutdown/reboot execution is no problem. But if host is Up, then executing shutdown/reboot using SSH will make host NonResponsive and fencing will be executed 2. If you select Restart using SSH from Maintenance menu, it just connect using SSH and execute shutdown same way as it's done manually 3. If you select Restart using Power Management from Maintenance menu, it will execute restart using PM device and further actions are hardware dependent. On some servers it will send shutdown signal to OS similarly as if you execute reboot and afterwards it turns off power of the server (so the result may be the same as using shutdown from command line). But on different hardware it can just turn off power of the server. So for planned restart using SSH restart either from UI or from command line is preferred way. Martin On Fri, Feb 10, 2017 at 1:57 PM, Sandro Bonazzola wrote: > Adding some people > > On Thu, Feb 9, 2017 at 2:08 PM, Gianluca Cecchi > wrote: > >> On Wed, Feb 8, 2017 at 10:59 AM, Gianluca Cecchi < >> gianluca.cec...@gmail.com> wrote: >> >>> Hello, >>> what is considered the best way to shutdown and restart an hypervisor, >>> supposing plain CentOS 7 host? >>> >>> For example to cover these scenarios: >>> 1) update host from 4.0 to 4.1 >>> 2) planned maintenance to the cabinet where the server is located and >>> take the opportunity to update also OS packages >>> >>> My supposed workflow: >>> >>> - put host into maintenance >>> - yum update on host >>> - shutdown os from inside host (because from power mgmt it is brutal >>> power off / power on) >>> --> should I get any warning from web admin gui in this case, even if >>> the host was in maintenance mode? >>> - power mgmt -> start from webadmin gui >>> (or power on button/virtual button at host side?) >>> >>> Would be advisable to put inside power mgmt functionality some logic >>> about os mgmt, so for example, if action is restart, first try to shutdown >>> OS and only in case of failure power off/power on? >>> >>> Thanks in advance, >>> Gianluca >>> >> >> I see that one of the new features of 4.1 is Host restart through SSH >> Power Mgmt --> SSH Mgmt --> Restart >> >> How does it fit in question above? >> Can I choose this way after having run "yum update" on host? >> Thanks >> Gianluca >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> >> > > > -- > Sandro Bonazzola > Better technology. Faster innovation. Powered by community collaboration. > See how it works at redhat.com > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Best way to shutdown and restart hypervisor?
On 9 February 2017 at 10:08, Gianluca Cecchi wrote: > On Wed, Feb 8, 2017 at 10:59 AM, Gianluca Cecchi < > gianluca.cec...@gmail.com> wrote: > >> Hello, >> what is considered the best way to shutdown and restart an hypervisor, >> supposing plain CentOS 7 host? >> >> For example to cover these scenarios: >> 1) update host from 4.0 to 4.1 >> 2) planned maintenance to the cabinet where the server is located and >> take the opportunity to update also OS packages >> >> My supposed workflow: >> >> - put host into maintenance >> - yum update on host >> - shutdown os from inside host (because from power mgmt it is brutal >> power off / power on) >> --> should I get any warning from web admin gui in this case, even if the >> host was in maintenance mode? >> - power mgmt -> start from webadmin gui >> (or power on button/virtual button at host side?) >> > I'd add one more step at the beginning, update the cluster's scheduling policy to InClusterUpgrade. That will automatically migrate your VMs to the most up-to-date host, freeing your other hosts for a rolling upgrade of the cluster. > > >> Would be advisable to put inside power mgmt functionality some logic >> about os mgmt, so for example, if action is restart, first try to shutdown >> OS and only in case of failure power off/power on? >> >> Thanks in advance, >> Gianluca >> > > I see that one of the new features of 4.1 is Host restart through SSH > Power Mgmt --> SSH Mgmt --> Restart > > How does it fit in question above? > Can I choose this way after having run "yum update" on host? > Features are made available only after you update all of the hosts in the cluster & the (Hosted-)Engine to the same version. Then you can update the Compatibility Version of the cluster. http://www.ovirt.org/documentation/self-hosted/chap-Maintenance_and_Upgrading_Resources/ -- Doug ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Best way to shutdown and restart hypervisor?
Adding some people On Thu, Feb 9, 2017 at 2:08 PM, Gianluca Cecchi wrote: > On Wed, Feb 8, 2017 at 10:59 AM, Gianluca Cecchi < > gianluca.cec...@gmail.com> wrote: > >> Hello, >> what is considered the best way to shutdown and restart an hypervisor, >> supposing plain CentOS 7 host? >> >> For example to cover these scenarios: >> 1) update host from 4.0 to 4.1 >> 2) planned maintenance to the cabinet where the server is located and >> take the opportunity to update also OS packages >> >> My supposed workflow: >> >> - put host into maintenance >> - yum update on host >> - shutdown os from inside host (because from power mgmt it is brutal >> power off / power on) >> --> should I get any warning from web admin gui in this case, even if the >> host was in maintenance mode? >> - power mgmt -> start from webadmin gui >> (or power on button/virtual button at host side?) >> >> Would be advisable to put inside power mgmt functionality some logic >> about os mgmt, so for example, if action is restart, first try to shutdown >> OS and only in case of failure power off/power on? >> >> Thanks in advance, >> Gianluca >> > > I see that one of the new features of 4.1 is Host restart through SSH > Power Mgmt --> SSH Mgmt --> Restart > > How does it fit in question above? > Can I choose this way after having run "yum update" on host? > Thanks > Gianluca > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Best way to shutdown and restart hypervisor?
On Wed, Feb 8, 2017 at 10:59 AM, Gianluca Cecchi wrote: > Hello, > what is considered the best way to shutdown and restart an hypervisor, > supposing plain CentOS 7 host? > > For example to cover these scenarios: > 1) update host from 4.0 to 4.1 > 2) planned maintenance to the cabinet where the server is located and take > the opportunity to update also OS packages > > My supposed workflow: > > - put host into maintenance > - yum update on host > - shutdown os from inside host (because from power mgmt it is brutal power > off / power on) > --> should I get any warning from web admin gui in this case, even if the > host was in maintenance mode? > - power mgmt -> start from webadmin gui > (or power on button/virtual button at host side?) > > Would be advisable to put inside power mgmt functionality some logic about > os mgmt, so for example, if action is restart, first try to shutdown OS and > only in case of failure power off/power on? > > Thanks in advance, > Gianluca > I see that one of the new features of 4.1 is Host restart through SSH Power Mgmt --> SSH Mgmt --> Restart How does it fit in question above? Can I choose this way after having run "yum update" on host? Thanks Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Best way to shutdown and restart hypervisor?
Hello, what is considered the best way to shutdown and restart an hypervisor, supposing plain CentOS 7 host? For example to cover these scenarios: 1) update host from 4.0 to 4.1 2) planned maintenance to the cabinet where the server is located and take the opportunity to update also OS packages My supposed workflow: - put host into maintenance - yum update on host - shutdown os from inside host (because from power mgmt it is brutal power off / power on) --> should I get any warning from web admin gui in this case, even if the host was in maintenance mode? - power mgmt -> start from webadmin gui (or power on button/virtual button at host side?) Would be advisable to put inside power mgmt functionality some logic about os mgmt, so for example, if action is restart, first try to shutdown OS and only in case of failure power off/power on? Thanks in advance, Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users