LINUX
2018.10.15 / 09:44

RHEL/CentOS 6 À» 7 À¸·Î ¾÷±×·¹À̵å Çϱâ

Chitta
Ãßõ ¼ö 111

RHEL 7Àº In-place upgrade ¸¦ Áö¿øÇϴ ù ¹ø° ¸ÞÀÌÀú ¹èÆ÷ÆÇÀÌ´Ù. À©µµ¸¸Å­ ½±Áö´Â ¾ÊÁö¸¸ ±âÁ¸ 6 »ç¿ëÀÚµéÀº »õ·Î ¼³Ä¡¸¦ ÇÏÁö ¾Ê°íµµ ±âÁ¸ »ç¿ëÁßÀÎ ¸®´ª½º¸¦ 7 À¸·Î ¾÷±×·¹À̵åÇÒ ¼ö ÀÖ´Ù.

 

¾÷±×·¹À̵åÁß¿¡ µ¥¾ÆŸÀÇ ¼Õ½ÇÀÌ ¹ß»ýÇÒ ¼ö ÀÖÀ¸´Ï ÀÌ ºí·Î±×´Â Âü°í¸¸ ÇÏ°í ¹Ýµå½Ã ¹é¾÷ÈÄ¿¡ ¼öÇà ÇÊ¿ä.

 

CentOS

 

»çÀü Áغñ

  1. CentOS 6 °¡Àå ÃÖ±Ù ¹öÀüÀ¸·Î ¾÷±×·¹À̵尡 ÇÊ¿äÇÏ´Ù. 

    yum update -y
    shutdown -r now
  2. ¾÷±×·¹À̵å ÅøÀ» ´Ù¿î ¹Þ±â À§ÇØ  /etc/yum.repos.d/ ¿¡  upgradetool.repo ÆÄÀÏ »ý¼º

    /etc/yum.repos.d/upgradetool.repo
    [upg]
    name=CentOS-$releasever - Upgrade Tool
    gpgcheck=1
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  3. Upgrade Åø ´Ù¿î·Îµå

    yum install redhat-upgrade-tool preupgrade-assistant-contents

Preupgrade Assistant

pregupg ´Â CentOS 7 ·Î ¾÷±×·¹À̵åÇϱâ À§ÇØ ÇöÀç ½Ã½ºÅÛÀ» ºÐ¼®ÇØ ÁÖ´Â À¯Æ¿¸®Æ¼ÀÌ´Ù.

  1.  preupg ½ÇÇà
    preupg -s CentOS6_7
     
    Preupg tool doesn't do the actual upgrade.
    Please ensure you have backed up your system and/or data in the event of a failed upgrade
     that would require a full re-install of the system from installation media.
    Do you want to continue? y/n
    y
    Gathering logs used by preupgrade assistant:
    All installed packages : 01/11 ...finished (time 00:00s)
    All changed files      : 02/11 ...running
  2.  /root/preupgrade/result.html ¿¡ ºÐ¼® °á°ú º¸°í¼­°¡ »ý¼ºµÈ´Ù. fail Ç׸ñÀÌ ÀÖÀ¸¸é inplace upgrade °¡ ½ÇÆÐÇÒ ¼ö ÀÖ´Ù.
  3. CentOS 7  ÀÇ GPG key ¸¦ ÀÓÆ÷Æ® ÇÑ´Ù.

Upgrade ½ÇÇà

  1. ¾÷±×·¹ÀÌµå ½ÇÇà

    centos-upgrade-tool-cli --network 7 --instrepo=http://centos.mirror.cdnetworks.com/7/os/x86_64/
  2. ¾Æ·¡¿Í °°Àº °Ì³ª´Â ¸Þ½ÃÁö°¡ ³ª¿ÀÁö¸¸ 7À¸·Î °¡¾ß ÇÏ´Ï Y ÀÔ·Â

    INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name between CentOS 6 and CentOS 7. Although they should be compatible, monitoring after the update is recommended.
    INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd
    INPLACERISK: SLIGHT: Some binaries untracked by RPM were discovered on the system and may need rebuild after upgrade.
    Continue with the upgrade [Y/N]?
  3. ¾÷±×·¹À̵åÁß ´ÙÀ½°ú °°Àº ¿¡·¯  ¸Þ½ÃÁö°¡ ³ª¿À°í ¾÷±×·¹À̵尡 ½ÇÆÐÇÒ °æ¿ì /var/tmp/system-upgrade/ ¸¦ »èÁ¦ÇÏ°í ´Ù½Ã ½ÇÇàÇÑ´Ù.

    Downloading failed: database disk image is malformed

  4. ¾÷±×·¹À̵尡 ¿Ï·áµÇ¸é ÀçºÎÆÃÇÏ¸é ¾÷±×·¹À̵尡 ¿Ï·áµÈ´Ù.

  5. ÀçºÎÆÃÈÄ¿¡ ¼­ºñ½º³ª ½Ã½ºÅÛÀÇ ÀÌ»ó À¯¹«¸¦ È®ÀÎÇØ º»´Ù.

 

Ref

RHEL

Â÷ÈÄ Á¤¸®

 

 

 

Ref