-1

We have old RHEL machine version 7.2

And we prepare to install docker service on this server

The problem is that server's filesystem was created with ftype=0 parametre and docker requires ftype=1

One option of course is to format the disk with mkfs and create new file system with ftype=1

But we want to stay with the original OS and not format the disk

Second option is to perform the step as defined in the post - https://superuser.com/questions/1321926/recreating-an-xfs-file-system-with-ftype-1/1321963#1321963

But this steps are risky and required server to be down

We are searching for third alternative in order to implement the docker installation on rhel version 7.2 in spite ftype=0

Interesting direction could be for example by adding a new disk to the server and create XFS file system, with ftype=1 , but we are not sure how to defined the docker installation on the additional disk (because this disk is actually without OS).

We will happy to get any other ideas out of the box.

Krackout
  • 1,559
  • 6
  • 17
King David
  • 433
  • 4
  • 17
  • It's even more risky to run your server with software that is missing years of security fixes. Do not run RHEL without a subscription (use CentOS instead). You might not even be able to install Docker if you haven't got a RHEL subscription. – Michael Hampton Aug 12 '20 at 19:11
  • you are right , but because some sensitive issues ( that are not technical issues ) we cant upgrade the rhel version to higher version , – King David Aug 12 '20 at 20:36

2 Answers2

2

It should be possible to add an additional disk formatted with the correct -n ftype=1 flag.

Mount the disk somewhere and point Docker to that location by setting:

{ 
   "graph": "/path/to/your/docker" 
}

in /etc/docker/daemon.json

The fstype flag should be relevant only for the overlay filesystem so it shouldn't matter that the docker binary is stored on a filesystem formatted without that flag.

Henrik Pingel
  • 8,676
  • 2
  • 24
  • 38
1

You can just create a new XFS filesystem on your new disk and mount it at /var/lib/docker. Then you do not need to make any changes to the Docker configuration, as that is the default directory for Docker volumes, images, containers, etc.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940