How to fix repquota “No such file or directory””

Sometimes we see following error for corruption in one or more of the virtfs mounts.

repquota: Cannot resolve mountpoint path (deleted)/home/virtfs/myuser/home/myuser: No such file or directory

We can fix this issue by following method.

grep -i username /proc/mounts

you should get something like:

/dev/sdb1 \040(deleted)/home/virtfs/username/home/username ext4 rw,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0

The path in the result is used to unmount:

umount /home/virtfs/username/home/username

and finally:

/scripts/clear_orphaned_virtfs_mounts --user=username

Leave a Comment