Score:0

AWS EC2 Centos8 - NVME Disk not mounted entirely to the Operating System

jp flag

Our system admin said, they had mounted a 100GB disk to EC2 instance. But when I put a df -Ph, only 2.8GB is available to / root

root@myhost: df -Ph /
Filesystem      Size  used Avail Use% Mounted On
/dev/nvme0n1p2  2.8G  2.5G 366M 88%  /

If I put fdisk -l or lsblk, the disk is present of 100G

root@myhost: lsblk
NAME  MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1  259:0  0 100G 0 disk
|
|- nvme0n1p1 259:1 0 1G 0 part /boot
|- nvme0n1p2 259:2 0 2.8G 0 part /

So the rest of the 95GB+ is not visible to the system

I tried to do the basic steps of

  • pvdisplay => no output
  • vgdisplay => no output
  • file -s /dev/nvme0n1 output is /dev/nvme0n1: DOS/MBR boot sector
  • file -s /dev/nvme0n1p1 output is /dev/nvme0n1p1: Linux rev 1.0 ext4 filesystem data, UUID=xxxxxx (needs journal recovery) (extents) (64bit) (large files) (huge files)
  • file -s /dev/nvme0n1p2 output is/dev/nvme0n1p2: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)

The final outcome I expected was (by extending the / FS) something below:

root@myhost: df -Ph /
Filesystem      Size  used Avail Use% Mounted On
/dev/nvme0n1p2  95G  xx xx xxx  /

Have anyone encountered this issue before?

cn flag
Check the EBS volume is definitely attached to the instance. Then, `lsblk` should show the new disk and you'll have to format it etc. If it's attached and not showing, rebooting the instance is probably the easiest way to get it to show.
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.