D
D
dmeshkov2014-07-22 16:43:02
linux
dmeshkov, 2014-07-22 16:43:02

How to fix mounted disk size error on CentOs?

I mounted the disk (sudo mount -t ext3 /dev/xvdg /tempdata) with a size of 500GB, and df shows that there are only 1 GB in nm. Other discs don't have this problem... What did I do wrong?
lsblk output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvdg 202:96 0 500G 0 disk /tempdata
df -h output:
Filesystem Size Used Avail Use% Mounted on
/dev/xvdg 1008M 718M 239M 76% /tempdata

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2014-07-22
@dmeshkov

You most likely have a 500GB disk with a 1GB file system.
Unmount it and do a resize2fs /dev/xvdg

D
dmeshkov, 2014-07-22
@dmeshkov

Thank you!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question