I have a m3.medium instance, with a volume of 20GiB, type standard.
When I run sudo fdisk -l
, it shows:
Disk /dev/xvda1: 21.5 GB, 21474836480 bytes
But when I run df -h
, it shows:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 7.7G 172M 98% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
I'm confused. Where are the remaining 10GiB?
刚刚做了sudo resize2fs /dev/xvda1
,现在我的分区有20GiB
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.