container-storage-setup icon indicating copy to clipboard operation
container-storage-setup copied to clipboard

fstype is checked at wrong folder lever

Open NickJH opened this issue 7 years ago • 2 comments

When container-storage-setup is run it fails with: ERROR: XFS filesystem at /var has ftype=0, cannot use overlay backend; consider different driver or separate volume or OS reprovision

The message is correct insomuch that /var is on a partition with ftype=0, but I have mounted /var/lib/docker from a partition which has ftype=1 which allows docker to start without the ftype warnings. Shouldn't container-storage-setup also be using /var/lib/docker and not /var when testing for ftype?

NickJH avatar Nov 14 '18 10:11 NickJH

I guess we could. /var/lib/docker is not present when run for the first time. We could improve it to first check for /var/lib/docker otherwise fall back to check on /var.

rhvgoyal avatar Nov 16 '18 14:11 rhvgoyal

That sounds like a plan.

Would it be better to test /var/lib before testing /var as it is conceivable that it could be being mounted from a different filesystem than /var. Is there any risk of /var/lib not existing on a system?

NickJH avatar Nov 16 '18 14:11 NickJH