My Amazon EC2 Instance only have 8GB of EBS Volume sda1
, this volume is near to full capacity.
Then I attach new 21GB EBS Volume sdf
to this EC2 Instance.
When I use df -h
to check this usage, this is what I get:
Filesystem Size Used Avail Use% Mounted on
/dev/xvdf 7.9G 5.3G 2.6G 67% /
tmpfs 298M 0 298M 0% /dev/shm
Then I use resize2fs /dev/xvdf
to resize, this is the df -h
:
Filesystem Size Used Avail Use% Mounted on
/dev/xvdf 21G 5.3G 16G 26% /
tmpfs 298M 0 298M 0% /dev/shm
Should I detach the first EBS Volume sda1
?
Why is sda1
not showing in df -h
?
Updated Results:
$ ls /dev/xvd*
/dev/xvda1 /dev/xvdf
Required option '-O, --aws-access-key KEY' missing (-h for usage)
while number 3 has no result. – did1k