Red Hat Certified System Administrator RHCSA · Free Practice Question Hard

Question 8

In Red Hat Enterprise Linux 9, what are the steps required to resize a filesystem partition? Please outline the process, considering the tools and commands available in RHEL 9.

Show model answer

To resize a partition in RHEL 9, use the resize2fs command for ext4 partitions or xfs_growfs for XFS. First, ensure the partition is unmounted. Use fdisk or parted to delete and recreate the partition with a larger size, ensuring not to overwrite data. Then, resize the filesystem with the appropriate command. For LVM-managed partitions, use lvextend or lvreduce along with filesystem-specific resize commands. Always back up data before resizing partitions.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need