2

I have an EC2 server on nitro system (c6g.2xl) where I have attached a 2nd volume. This is a web hosting environment and the disk is regularly increased in size.

For some reason I accidentally mounted the disk on - what I would call - the "partition table level", ie. my mount point is /dev/nvme1n1, not /dev/nvme1n1p1 - I can't recall how this happened, but it has the following effects:

Given that seemingly all of the Internet has a partition table on this volume - what are the downsides of this approach?

jdog
  • 131

2 Answers2

2

There is no need for a partition table on a data disk, it's only necessary if you want to boot from it. If you want to split a volume into smaller block devices, I'd suggest using LVM.

fuero
  • 9,879
0

try this:

XFS:

sudo xfs_growfs -d /data 

ext4:

sudo resize2fs /dev/nvme1n1
Ethan
  • 1