Difference between revisions of "Update CoreOS manually"
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Line 1: | Line 1: | ||
− | + | <br /> | |
− | This article has been created by an automatic translation software. You can view the article source [[:fr:Mettre a jour CoreOS manuellement|here]].<br /> | + | This article has been created by an automatic translation software. You can view the article source [[:fr:Mettre a jour CoreOS manuellement|here]].<br /><span data-translate="fr"></span> |
Line 7: | Line 7: | ||
<!--T:1--> | <!--T:1--> | ||
− | + | <span class="notranslate">(update_engine)</span> | |
<!--T:2--> | <!--T:2--> | ||
− | + | ||
<!--T:3--> | <!--T:3--> | ||
− | + | <span class="notranslate">"core"</span>. | |
<!--T:4--> | <!--T:4--> | ||
− | + | : | |
Line 33: | Line 33: | ||
<!--T:6--> | <!--T:6--> | ||
− | + | () : | |
Line 84: | Line 84: | ||
<!--T:10--> | <!--T:10--> | ||
− | + | ("") 5 | |
<!--T:11--> | <!--T:11--> | ||
− | + | : | |
Line 102: | Line 102: | ||
<!--T:13--> | <!--T:13--> | ||
− | + | (681.2.0 ). | |
− | == | + | ==/== <!--T:14--> |
<!--T:15--> | <!--T:15--> | ||
− | + | 4 stratégies de (), ces stratégies contrôlent la façon dont le se produit. Ces 4 : | |
<!--T:16--> | <!--T:16--> | ||
− | ; | + | ; |
− | : | + | :"""""" |
<!--T:17--> | <!--T:17--> | ||
− | ; | + | ; |
− | :Avec cette stratégie, chaque machine verrouille le | + | :Avec cette stratégie, chaque machine verrouille le avant d'autoriser celui-ci. Cela permet à une mise à jour d'être appliquée rapidement à un cluster sans perdre le quorum dans Etcd. En effet, le nombre de machines autorisées à redémarrer simultanément est configurable via la commande suivante () : |
Line 130: | Line 130: | ||
<!--T:19--> | <!--T:19--> | ||
− | ; | + | ; |
− | : | + | : |
<!--T:20--> | <!--T:20--> | ||
− | ; | + | ; |
− | :Avec cette stratégie, la machine attend une commande demandant explicitement le | + | :Avec cette stratégie, la machine attend une commande demandant explicitement le après installation des mises à jour. |
<!--T:21--> | <!--T:21--> | ||
− | + | /etc/coreos/update.conf : | |
Line 145: | Line 145: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
core@CoreOSnode ~ $ cat /etc/coreos/update.conf | core@CoreOSnode ~ $ cat /etc/coreos/update.conf | ||
− | REBOOT_STRATEGY= | + | REBOOT_STRATEGY= |
</syntaxhighlight> | </syntaxhighlight> | ||
<!--T:23--> | <!--T:23--> | ||
− | + | : | |
Line 166: | Line 166: | ||
[[Category:CoreOS]] | [[Category:CoreOS]] | ||
[[Category:Linux]] | [[Category:Linux]] | ||
− | [[ | + | [[Category:cloudstack]] |
− | [[ | + | [[Category:public_cloud]] |
− | [[ | + | [[Category:private_cloud]] |
− | + | <comments /> |
Revision as of 09:03, 24 September 2015
This article has been created by an automatic translation software. You can view the article source here.
(update_engine)
"core".
core@CoreOSnode ~ $ cat /etc/lsb-release
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=633.1.0
DISTRIB_CODENAME="Red Dog"
DISTRIB_DESCRIPTION="CoreOS 633.1.0"
() :
core@CoreOSnode ~ $ sudo update_engine_client -update
[0622/105739:INFO:update_engine_client.cc(245)] Initiating update check and install.
[0622/105739:INFO:update_engine_client.cc(250)] Waiting for update to complete.
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE
...
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.993617
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
<!--T:8-->
Broadcast message from locksmithd at 2015-06-22 10:59:57.244742724 +0200 CEST:
System reboot in 5 minutes!
<!--T:9-->
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATED_NEED_REBOOT
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
[0622/105959:INFO:update_engine_client.cc(193)] Update succeeded -- reboot needed.
core@CoreOSnode ~ $
("") 5
core@CoreOSnode ~ $ cat /etc/lsb-release
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=681.2.0
DISTRIB_CODENAME="Red Dog"
DISTRIB_DESCRIPTION="CoreOS 681.2.0"
(681.2.0 ).
/
4 stratégies de (), ces stratégies contrôlent la façon dont le se produit. Ces 4 :
- """"""
- Avec cette stratégie, chaque machine verrouille le avant d'autoriser celui-ci. Cela permet à une mise à jour d'être appliquée rapidement à un cluster sans perdre le quorum dans Etcd. En effet, le nombre de machines autorisées à redémarrer simultanément est configurable via la commande suivante () :
core@CoreOSnode ~ $ locksmithctl set-max 2
Old-Max: 1
Max: 2
- Avec cette stratégie, la machine attend une commande demandant explicitement le après installation des mises à jour.
/etc/coreos/update.conf :
core@CoreOSnode ~ $ cat /etc/coreos/update.conf
REBOOT_STRATEGY=
#cloud-config coreos: update: reboot-strategy: best-effort
Enable comment auto-refresher