centos7-ami icon indicating copy to clipboard operation
centos7-ami copied to clipboard

Using docker/rkt with this ami

Open pporada-gl opened this issue 8 years ago • 3 comments

When using container technology, the backing filesystem, in this case XFS, needs to have support for working around d_type. This support can be enabled by changing the mkfs.xfs line to

mkfs.xfs -m crc=0 -n ftype=1 -L root ${DEVICE}2

After the script runs, you can check the fytpe on the newly partition volume.

xfs_info /rootfs | grep ftype

https://github.com/coreos/rkt/issues/3040 for more info

pporada-gl avatar Oct 20 '16 02:10 pporada-gl

Thanks. We've been using direct-lvm but I can see adding this would allow people to use Docker more easily.

I need to check the implications of enabling ftype=1. OverlayFS is still in 'technology preview' even in the forthcoming EL7.3 release: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html/7.3_Release_Notes/technology_previews_file_systems.html

crc checks should still be enabled, as they provide protection against metadata corruption in the case of host failure.

bashtoni avatar Oct 20 '16 05:10 bashtoni

Good point about the crc checks. I read the XFS man page entry for it, but all the examples I saw showed people disabling it. I guess that means do my own research instead of trusting.

As for ftype=1, we're not ready to switch over to Project Atomic yet, but PA has been discussing enabling it. https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2016-August/msg00011.html

pporada-gl avatar Oct 20 '16 13:10 pporada-gl

Ahhh, this is why CRC was set to 0.

+ mkfs.xfs -m crc=1 -n ftype=1 -L root /dev/xvdb2
cannot specify both crc and ftype
Usage: mkfs.xfs

pporada-gl avatar Oct 20 '16 15:10 pporada-gl