I'm using latest Ubuntu Server 20.04 LTS on a HPE MicroServer, I have a HPE P420 RAID card with battery, with 4 HDDs attached in 2 logical arrays, one is a mirror of 2pcs of 1 TB HDDs (root
), and one mirror of 2pcs of 4 TB HDDs (storage
). I have Zoneminder running on it and I was trying to do a bit of a cleanup, and surprised how slow the rm -rf dir/*
was taking. After a bit of research I realised it's a problem of XFS, so I was trying to tune it a bit, that's when I found this article (or other similar ones, I kept seeing the same things in multiple articles).
So I tried to add these mount options, but unfortunately mount
refuses to mount the partition (storage
for a start) with those new options. The problem is that doesn't tell me which option is incorrect, this is the only output of $ sudo mount -av
:
part A : ignored
swap : ignored
/path/to/mount : wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
(also tried debug options: export LIBMOUNT_DEBUG=all
, but it doesn't seem to show anything extra, if there is no mount happening, if it actually mounts something, there are extra lines displayed.)
This is how is the /etc/fstab
looks like for that partition:
# DOESN'T WORK:
/dev/disk/by-uuid/b...7 /path/to/mount xfs rw,relatime,attr2,logbufs=8,logbsize=256k,sunit=2048,swidth=2048,largeio,inode64,swalloc,allocsize=131072k,nobarrier,noquota 0 0
# the defauls work:
/dev/disk/by-uuid/b...7 /path/to/mount xfs defaults 0 0
Is there a way of quickly finding which mount option is incorrect? Other than going through all the options one by one then mount after eact, to see which is the incorrect one, which takes long...
Thank you!