resize2fs: Bad magic number in super-block while trying to open
use xfs_growfs
xfs file system support only extends not reduce. So if you want to resize the filesystem use xfs_growfs rather than resize2fs.
lsblk
blkid
xfs_growfs /dev/xvda2