I have a CentOS 7 system where the root file system is XFS (created with ftype=0, the default CentOS setting at the time the system was installed). Unfortunately, the Docker overlay2 storage driver requires that file system to have been created with ftype=1:
https://docs.docker.com/storage/storagedriver/overlayfs-driver/#prerequisites
So now I'd like to recreate the root FS with ftype=1. I was thinking of doing that as follows:
- Boot into a rescue image of some sort.
xfsdumpthe root FS to a remote location.- Recreate the root FS with
ftype=1. xfsrestorethe root FS from the remote dump.
One thing I'm not sure about, though, is whether the xfsdump output carries anything related to the ftype setting. That is, would there be any issues doing the xfsrestore onto an XFS file system with a different ftype setting?
Or is there a better approach to solving this specific problem (that doesn't involve reinstalling the whole system, repartitioning, etc.)?