Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 3.72 KB

notes.md

File metadata and controls

98 lines (66 loc) · 3.72 KB

flocker-coreos

An experiment in getting Flocker to work on CoreOS.

research

GiantSwarm research

This was sent by Dennis from GiantSwarm:

I did some research on the mount namespace sharing topic for the shared mount problem. even in systemd-nspawn container root filesystems are locked down with the MS_SLAVE flag. That's effectively the same thing libcontainer does. So we cannot use systemd-nspawn to hack around the problem. these are the most relevant resources i found about this:

Rob research

This is the work Rob from ClusterHQ has done on trying to get this to work with NSEnter:

Luke research

This is the work Luke from ClusterHQ has done to install ZFS on CoreOS:

Kai research

Manually create filesystem

$ # create a new block device
$ dd if=/dev/zero of=/tmp/my_fs bs=1024 count=30720
$ # check that this loopback device is not already used
$ losetup /dev/loop0
$ # create the loopback device in /dev
$ losetup /dev/loop0 /tmp/my_fs
$ # create a filesystem on the device
$ mkfs -t ext4 -m 1 -v /dev/loop0
$ # mount the device
$ mkdir /testmount
$ mount -t ext4 /dev/loop0 /testmount
$ # unmount the device
$ umount /testmount
$ losetup -d /dev/loop0

Installing nsenter in an Ubuntu container

CentOS already has nsenter

$ ## in the docker
$ apt-get update
$ apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool
$ git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux
$ cd util-linux/
$ ./autogen.sh
$ ./configure --without-python --disable-all-programs --enable-nsenter
$ make

FUSE

http://www.tldp.org/LDP/khg/HyperNews/get/fs/vfstour.html

https://en.wikipedia.org/wiki/Virtual_file_system

kernel has vfs which is mapping between syscalls -> devices maps filesystems -> inodes vfs has branch that hooks into fuse fuse already comes with kernel

other folks trying the same

Madhuri research

Kubernetes

kubernetes/kubernetes#6848

ZFS refactoring