RHEL Atomic Hostã¨ã¯
RHEL Atomic Hostã¯ãDockerãå©ç¨ããããã«å°ç¨ã«è¨è¨ãããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ããRHEL7ããã¼ã¹ã¨ãã¦ãDockerã®å©ç¨ã«å¿ è¦ãªããã±ã¼ã¸ãããã³ãetcdãªã©ãKubernetesãã管çããããã®åæããã±ã¼ã¸ãå«ã¾ããæ§æã«ãªã£ã¦ãã¾ããç¾å¨ãRed Hatãããパブリックベータãå ¬éããã¦ãã¾ãã
RHEL/CentOSã«æ®éã«Dockerãã¤ã³ã¹ãã¼ã«ããå ´åãDocker Imageã®ä¿åé åï¼dm-thinã§ç®¡çãããã£ã¹ã¯é åï¼ãã¹ãã¼ã¹å½¢å¼ã®ãã£ã¹ã¯ã¤ã¡ã¼ã¸ãã¡ã¤ã«ã¨ãããã¡ãã£ã¨ã¤ã±ã¦ãªãæ§æã«ãªãã¾ãããRHEL Atomic Hostã§ã¯ãå°ç¨ã®è«çããªã¥ã¼ã ãã¤ã¡ã¼ã¸ã®ä¿åé åã¨ãã¦ç¨æããããªã©ãDockerã®å©ç¨ã«ç¹åããã«ã¹ã¿ãã¤ãºï¼ãã¥ã¼ãã³ã°ãè¡ããã¦ãã¾ãã
RHEL Atomic Hostã®ãã¼ã¸ã§ã³ç®¡çæ¹å¼
é©ããã¨ã«ãRHEL Atomic Hostã«ã¯ããyumã³ãã³ãããå ¥ã£ã¦ãã¾ãããDockerå°ç¨OSãªã®ã§ãåå¥ããã±ã¼ã¸ã®è¿½å ãªã©ã®ã«ã¹ã¿ãã¤ãºã¯ä¸è¦ã¨ããçºæ³ãªã®ã§ãããã ããRHEL Atomic Hostãã®ãã®ã®ãã¼ã¸ã§ã³ã¢ããã¯åå¨ãã¾ããåæãã¼ã¸ã§ã³ã¯ã7.0.0ãã§ãããç¾æç¹ã§ã¯ããã¤ãã¼ãã¼ã¸ã§ã³ã7.0.1ãããªãªã¼ã¹ããã¦ãã¾ãããã¼ã¸ã§ã³ã¢ããå¦çã¯ã次ã®ãatomicãã³ãã³ããå©ç¨ãã¾ãã
ã¾ããç¾å¨ã®ãã¼ã¸ã§ã³ã確èªãã¾ãã
# atomic status VERSION ID OSNAME REFSPEC * 7.0.0 dcf0c846ff rhel-atomic-host rhel-atomic-host:rhel-atomic-host/7/x86_64/standard
次ã®ã³ãã³ãã§ãææ°ãã¼ã¸ã§ã³ãRHNï¼Red Hat Networkï¼ããåå¾ãã¾ããï¼äºåã«RHNã¸ã®ãµãã¹ã¯ãªãã·ã§ã³ç»é²ãå¿ è¦ã§ããï¼
# atomic upgrade ...ï¼ä¸ç¥ï¼... Updates prepared for next boot; run "systemctl reboot" to start a reboot
æå¾ã®ã¡ãã»ã¼ã¸ã«ããããã«ã次åã®ãªãã¼ãæã¯ãæ°ãããã¼ã¸ã§ã³ã§èµ·åãã¦ãã¾ãããªãã¼ãåã«ã¹ãã¼ã¿ã¹ã確èªããã¨ã次ã®ããã«2ã¤ã®ãã¼ã¸ã§ã³ãåå¨ãããã¨ãåããã¾ãã
# atomic status VERSION ID OSNAME REFSPEC 7.0.1 18a9998c80 rhel-atomic-host rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard * 7.0.0 dcf0c846ff rhel-atomic-host rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
ãªãã¼ãå¾ã«ã¹ãã¼ã¿ã¹ã確èªããã¨ãã7.0.1ãã§èµ·åãã¦ãããã¨ãåããã¾ãã
# atomic status VERSION ID OSNAME REFSPEC * 7.0.1 18a9998c80 rhel-atomic-host rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard 7.0.0 dcf0c846ff rhel-atomic-host rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
ãã£ã±ãå ã®ãã¼ã¸ã§ã³ã«æ»ããããªã£ãæã¯ã次ã®ã³ãã³ãã§OKã§ãã
# atomic rollback 7.0.0
ä¸ã®ä»çµã¿
ã¤ãã«ãã¼ã¸ã§ã³ã¢ããå¾ã®ãã¼ã«ããã¯æ©è½ãå®è£ ãããã®ãã¨è¸ç±ã«ãªãã¾ãããå é¨çã«ã¯ãrpm-ostreeã¨ãããGitã¨é¡ä¼¼ã®ä»çµã¿ã使ã£ã¦ãã¾ããï¼ã¬ã¤ã¤ã¼åãã¡ã¤ã«ã·ã¹ãã ã®ãããªãã¨ã¯ãã¦ãã¾ãããï¼è¤æ°ãã¼ã¸ã§ã³ã®ãã£ã¬ã¯ããªã¼ããªã¼ããã¼ã¸ãããªãã¸ããªã¼ãå é¨ã«ç¨æãã¦ãããããããã®ãã¼ã¸ã§ã³ã®ãã¡ã¤ã«ç¾¤ãåå¥ã®ãã£ã¬ã¯ããªã¼ã«ããã§ãã¯ã¢ã¦ããï¼ostreeç¨èªã§ããããã¤ãï¼ãã¦ãã¾ããã·ã¹ãã èµ·åæã¯ãæå®ã®ãã¼ã¸ã§ã³ããã§ãã¯ã¢ã¦ãããããã£ã¬ã¯ããªã¼ã«chrootãã¦èµ·åãã¦ãã¾ãã
ãªããã/varãã¯ãrpm-ostreeã®ç®¡ç対象å¤ã¨ãªã£ã¦ããã®ã§ããã¼ã¸ã§ã³ã¢ããã§æ¶ããï¼å¤æ´ãããï¼ã¨å°ããã¡ã¤ã«ã¯ã/var以ä¸ã«ä¿åããå¿ è¦ãããã¾ããã«ã¼ããã£ã¬ã¯ããªã¼ãè¦ãã¨ã次ã®ããã«ãæ¸ãè¾¼ã¿ãçºçãããã£ã¬ã¯ããªã¼ã¯ã/varã®ä¸ã«ç§»åãããæ§æã«ãªã£ã¦ãããã¨ãåããã¾ãã
# ls -l / | grep var lrwxrwxrwx. 1 root root 8 Jan 9 19:38 home -> var/home lrwxrwxrwx. 1 root root 7 Jan 9 19:38 mnt -> var/mnt lrwxrwxrwx. 1 root root 7 Jan 9 19:38 opt -> var/opt lrwxrwxrwx. 1 root root 12 Jan 9 19:38 root -> var/roothome lrwxrwxrwx. 1 root root 7 Jan 9 19:38 srv -> var/srv drwxr-xr-x. 24 root root 4096 Jan 9 19:19 var
ã/etcãã«ã¤ãã¦ã¯ãã¾ãéãç¹å¥æ±ãã§ããã¼ã¸ã§ã³ã¢ããæã¯ãæ¢åã®ãã¡ã¤ã«ã¨ãã¼ã¸ã§ã³ã¢ããå¾ã®å 容ããã¼ã¸ãããããã«ãªã£ã¦ãã¾ãã
ããã¦ãé常ãæ¸ãè¾¼ã¿ãçºçããªãã/usrãã¯ãReadonlyã§ãã¦ã³ãããã¦ããããã®ä¸ã®ãã¡ã¤ã«ã¯å¤æ´ãã§ãã¾ããããã®ãããè¤æ°ãã¼ã¸ã§ã³ã§åãå 容ã®ãã¡ã¤ã«ã¯ãå é¨çã«åä¸ãã¡ã¤ã«ã¸ã®ãã¼ããªã³ã¯ãç¨ãã¦ãéè¤æé¤ããããã«ãªã£ã¦ãã¾ãã