pregupg 는 CentOS 7 로 업그레이드하기 위해 현재 시스템을 분석해 주는 유틸리티이다.
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
CODE
/root/preupgrade/result.html 에 분석 결과 보고서가 생성된다. fail 항목이 있으면 inplace upgrade 가 실패할 수 있다.
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]?
CODE
업그레이드중 다음과 같은 에러 메시지가 나오고 업그레이드가 실패할 경우 /var/tmp/system-upgrade/ 를 삭제하고 다시 실행한다.
Downloading failed: database disk image is malformed