Score:0

Increased AWS EBS to more than 2TB and found out MBR is limited to 2TB

cn flag
Pat

we just ran almost out of space on our main EC2 instance. I wanted to increase the EBS volume size to 2.5TB from 2TB.

However, I noticed that I could not increase the partition anymore due to the MBR limit of 2TB.

I should've known that before...Is there any way to use the 500GB without much downtime, e.g., by creating a new partition? But since it is the root volume I'm not sure if this is even possible. Any ideas?

Thanks a lot!

Edit @Nikita Kipriyanov

sudo fdisk -l /dev/nvme0n1p1
Disk /dev/nvme0n1p1: 1.102 TiB, 2199022206976 bytes, 
    4294965248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

and

sudo cat /etc/fstab
LABEL=cloudimg-rootfs   /    ext4   defaults,discard    0 0

/dev/nvme1n1p2 none swap sw 0 0

and

df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4      2.0T  1.8T  149G  93% /

/dev/root is on /dev/nvme0n1p1

Thanks

Nikita Kipriyanov avatar
za flag
In principle, it may be possible to change partition table "on the fly" (keeping root partition physical location), but there are many caveats and this is quite an expert topic. Please, attach to the question your current partition table (`fdisk -l /dev/sdX` or something like this), and also your `/etc/fstab`, if it's possbile I could come up with concrete instructions. OR, as suggested in the answer below, you can always just add another EBS volume, that's easier and less error-prone.
Score:0
in flag

In this case, I recommend creating a new EBS volume and attaching it to your instance. EBS volumes can be as large as 64 TiB, so you can store quite a lot in there.

You can then format the EBS volume directly, and move the data that is consuming space on your root volume to this new volume.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.