RHEL EC2 Creating New Partition

0

I have a EC2 instance running on RHEL 7.9 with one volume /dev/xvda. I am not a linux admin. I just know some basic stuff. How do I move /var & /home directory into separate partition? I have to do this due to some requirement. What would be the impacts by doing so?

  • Do you want a separate partition on the same /dev/xvda disk or partitions for /var and /home on separate disks (/dev/xvdb and /dev/xvdc)?

  • on the same /dev/xvda disk

  • Know that the only benefit is this will prevent one partition filling up from effecting the others. So if the /var partition is at 100% full, the root partition and /home are not effected. This was an old way of managing space when disks were expensive or difficult to expand. Having separate disks will cost a little bit more but will improve performance in addition to the resilience that you are looking for. Do you have enough space on /dev/xvda to create the partitions of a size that you want? If your disk is at less than 50% full, you can proceed. Otherwise you will need to expand /dev/xvda first.

  • Thanks for your response. It's more than 60% free space. Please let me know how to move /var directory into separate partition?

1回答
0
承認された回答

I figured it out. Modify the EBS volume to increase the size. Create partition, format, mount /var in the new partition and reboot. You must use partprobe command if any issue occurs (in the new partition doesn't show up) with partitioning.

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ