If you're using an XFS file system, the correct command to extend the file system is
sudo xfs_growfs -d /
This will grow the XFS file system to use the maximum available space on the partition.