• 13
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

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.

    • 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.
      • 1
    • you are right , but because some sensitive issues ( that are not technical issues ) we cant upgrade the rhel version to higher version ,

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.

  • 2
Reply Report

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.

  • 1
Reply Report

Trending Tags