When it’s time to upgrade your Red Hat Enterprise Linux (RHEL) server, an in-place upgrade is one of the easiest, not to mention recommended, methods. An in-place upgrade means you don’t have to rebuild your environment from scratch, and you get all of the latest RHEL features, patches and security updates. Here’s what you need to know about preparing for an in-place upgrade.
Plan the upgrade
The first step is to review the servers you need to upgrade to confirm that they meet the upgrade requirements. To use the LEAPP upgrade tool, a server must be 64-bit Intel or AMD, 64-bit ARM, 64-bit IBM Z, or IBM POWER (little endian).
Next, consider the applications running on each server you’re upgrading. Applications installed from a Red Hat repository are updated along with the operating system, but custom or third-party applications often require manual updates. For example, there’s an upgrade path specially designed for SAP HANA, so it’s vital to know each server’s mission critical software and to confirm the supported upgrade path with the vendor or provider.
Prepare for downtime. With an upgrade comes necessary downtime. At the very least, there’s the time it takes for the server to complete all the updates, but you should allow time for testing and verification, too.
Understand the new security landscape. During an upgrade, SELinux is put into permissive mode, and it’s important for you to understand security changes in the RHEL release you’re moving to. Starting with RHEL 8.8, on a system running in FIPS mode, the upgrade proceeds in FIPS mode, but you should verify all security policies (especially those specific to your organization) after an upgrade.
Finally, perform a full system back up before upgrading. There are many options for this, including LVM snapshots, virtual machine snapshots, Relax-and-Recover, RAID splitting, or whatever back-up solution your organization already uses.
Ideally, you’ll spend the bulk of your time upgrading in theory before you spend any time on actually upgrading. The more you plan, the easier the upgrade process should be. For a full guide on planning for your upgrade, Red Hat releases upgrade guides specific to the source and target version. Review the appropriate upgrade guide for your systems, and make sure your systems are ready.
Prepare for the upgrade
The next step is to prepare your server for the actual upgrade. This step often involves actual changes to your server, so even though these are steps you’re doing to prepare for an upgrade it’s still part of the upgrade process.
If you’re using Red Hat Satellite, then you must verify that your server is registered with your Satellite server. On a server with Simple Content Access (SCA) enabled, use subscription-manager status
to verify that the Content Access Mode is set to Simple Content Access.
During an in-place upgrade, the software packages on your server are replaced with the updated versions of those packages from the repository for the target version of RHEL. To access those packages, you must add the new repositories to your server using subscription-manager
, or in the Content section of your Satellite admin panel.
Once repositories have been added, you must also install or update leapp
, the tool you use for in-place upgrades.
To help avoid any surprises, review the preparation steps in your upgrade guide, confirming each step relevant to your system. It’s important to remember that many systems are unique, and may require different adjustments for the upgrade process. This is why you planned your upgrade, though. You’ve accounted for unique requirements, and during the preparation step you put that plan into action.
Get a pre-upgrade report
One of the best features of the leapp
command is its ability to generate a pre-upgrade report. Using leapp preupgrade
, you get a complete view of everything that will change on your system in order to complete the upgrade. Every planned change is ranked by leapp
according to how much of an impact the change is likely to have on your system, with High being very likely to result in a deteriorated system state and Low being a simple change for the OS but a possible impact on applications. The Info ranking has no foreseen impact on the system or applications.
Before you upgrade, run leapp preupgrade
. It provides you with valuable insight into what your system will look like after the upgrade, and could alert you to something you’ve overlooked, or else confirm what you need to verify afterwards.
Upgrade
Ideally, by this point the upgrade itself is the easy part of the process. You’ve planned, you’ve prepared your server, and you’ve run and reviewed the pre-upgrade report. You’ve reviewed the upgrade guide and application documentation, and you’ve made a list of what you need to verify post-upgrade.
All that’s left to do now is to upgrade. That’s the leapp command again:
leapp upgrade
Verify
After the upgrade is complete, it’s time to review the system state. This is essentially the planning process in reverse. As you verify the post-upgrade state of your server, you review all the potential problem areas and all the mission critical functions of the system. Whether you have custom scripts, Ansible playbooks, a QA team, or just a text file full of notes, this is your chance to second guess everything. Make sure your security policies are in place, that your services are running, and that you can put the server back into production with confidence.
In-place upgrades
In-place upgrades are convenient and fully supported. RHEL has some great commands like subscription-manager
and leapp
to help you perform the upgrade with ease, and services like Red Hat Satellite to help you scale the process. Approach the process methodically, and you’ll upgrade with confidence every time.
저자 소개
Seth Kenlon is a Linux geek, open source enthusiast, free culture advocate, and tabletop gamer. Between gigs in the film industry and the tech industry (not necessarily exclusive of one another), he likes to design games and hack on code (also not necessarily exclusive of one another).
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.