fdisk influence on EBS gp2 type

0

Hello AWS Community,

I need your assistance. Today I met with the statement that creating partitions on EBS drives with fdisk utility is bad practice. I tried to find information about it on the Internet but couldn't find anything...

Short story about a situation. I added a new EBS drive (230 Gb) to the server. Then I used fdisk to create only one partition on it. After that, I created ext4 file system on it. As a result, I was told I shouldn't use fdsik because it's bad practice to create such big partitions and it has no sense.

Please, could you explain to me why it is bad practice? What did I have to do? Maybe the problem is with fdisk utility?

Thank you so much! Really appreciate your help!

1 個回答
1
已接受的答案

Hi There

This is probably in reference to the fact that fdisk traditionally only supports MBR partitions (which have a limit of 2TB) although some fdisk utilities do support GPT. Take a look at this post in the RedHat forums: https://learn.redhat.com/t5/Platform-Linux/Partitioning-using-fdisk-vs-gdisk/td-p/1826

Here are the AWS instructions for making an EBS volume available for Linux instances. You can create the filesistem directly on the block device using mkfs

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

If you want to create partitions, you can use gdisk (basically newer version of fdisk)

See https://repost.aws/knowledge-center/create-lv-on-ebs-partition

profile pictureAWS
專家
Matt-B
已回答 10 個月前
profile picture
專家
已審閱 10 個月前
profile pictureAWS
專家
已審閱 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南