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 Antwort
1
Akzeptierte Antwort

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
EXPERTE
Matt-B
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor 8 Monaten
profile pictureAWS
EXPERTE
überprüft vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen