Questions tagged [overlayfs]

OverlayFS is a union mount filesystem that presents an overlay a read/write partition (typically tmpfs) over a read-only partition. An implementation has been available in the Linux kernel since 2014.

14 questions
3
votes
0 answers

Alpine Linux - root mounted as ro iso9660 filesystem how can I remount as rw overlay?

The root filesystem is an iso9660 mount. / # mount |grep iso /dev/sr0 on / type iso9660 (ro,relatime) Is there a way to remount root, using aufs in order that I can install packages, compile code, etc?
Bryan Hunt
  • 47
  • 2
2
votes
1 answer

NFS export an overlay of ext4 and btrfs

I have 2 data sources. One is btrfs (raid) and one is a simple ext4 partition. Those should be transparently displayed as one. This is a simple read only example, but the lower/upper/workdir version produces the same problem, with btrfs as upper and…
wuppi
  • 123
  • 1
  • 6
2
votes
0 answers

How to properly backup / restore an overlayfs

I am currently working with a small Ubuntu-Server running on a raspberry pi to provide some services in my network. To extend the lifetime of my SD-card, I am trying to use an overlay-fs (see here for example). I found a nice ready-to-use package…
Martin
  • 1,869
  • 6
  • 16
1
vote
0 answers

Docker overlay2 file system corruption

I have a small home server where I host a few services I like. Recently the server enters a read only state on the main LVM volume, this is the volume where Ubuntu is installed. I have very little experience investigating these types of…
LizardMaster
  • 11
  • 1
  • 3
1
vote
1 answer

Netboot from common nfs share. How to incorporate small differences (e.g. in /etc)?

I have a set of (Ubuntu 16.04) servers, which are diskless and boot from a common nfs share. The share is read only and I use a tmpfs overlay. To achieve that I set the /etc/overlayroot.local.conf…
mbeyss
  • 111
  • 5
1
vote
2 answers

Docker service not able to start anymore because of modprobe error

I just ran in some issues with my server running docker that I cannot fix myself. Im using Docker version 18.09.0, build 4d60db4 with Ubuntu 16.04.5 LTS. During the day I noticed, that my docker applications are not available, so I checked the…
1
vote
0 answers

Is it possible to disable the overlayfs directory cache

I have a process that's continuously writing files into a directory structure that looks like: 152527 ├── 1525270000000 │   ├── 01be6dc0b6e3e087.json │   ├── 067e2490bb7ee05c.json │   ├── 15ec3513bf7deef6.json ├── 1525270010000 │   ├──…
squidpickles
  • 751
  • 1
  • 8
  • 12
1
vote
0 answers

Mount is unable to allocate memory

Invoking the following crashes immediately with mount claiming its unable to allocate memory: sudo mount -t overlay overlay -o lowerdir=/home/foo,upperdir=/mnt/home /home/foo For context, /mnt/home is /dev/sda3, the 3rd partition of a flash drive…
1
vote
0 answers

OverlayFS failing with "Stale NFS file handle" error

I have a RootFS that's a read-only SquashFS overlayed with writable storage (ext4, if it matters). This is generally working but, after a while, one file became unaccessible: # cat /etc/init.d/update [ 378.714771] overlayfs: failed to get inode…
ZioByte
  • 246
  • 3
  • 15
0
votes
1 answer

How to remove whiteouts from overlayfs uppper layer?

I have an OpenWrt-based system on an embedded device. Rootfs is mounted as overlayfs # mount mtd:ubi_rootfs on /rom type squashfs (ro,relatime) overlayfs:/overlay on / type overlay…
kyb
  • 115
  • 6
0
votes
2 answers

debian : mount /var as overlayfs at boot

I'm trying to mount /var with an overlayfs (with a tmpfs) at boot but don't manage to make it works. Here is what I've done : # creating tmpfs mkdir /var.tmpfs mount -t tmpfs -o rw,nosuid,nodev,noexec,noatime,size=512m,mode=0775 tmpfs…
BDR
  • 101
  • 3
0
votes
3 answers

Union multiple mounts to a single point, but keep them all read write

I've got over 1,000 directories, spread out over 6 servers. Technically they are home folders. It's guaranteed that there will never be any duplicate folder names. What I'd like to do is to mount them (NFS or SSHFS) to a 7th server and merge them…
Nick
  • 287
  • 1
  • 10
0
votes
1 answer

Filesystem to protect the storage medium

I'm working on an embedded system which will act as a server, the problem is the environment where it will run is so aggressive and it will suffer abrupt power interruptions. So I'm planning to mount the root filesystem as fake-writable using…
jfernandz
  • 3
  • 5
0
votes
1 answer

Which docker storage driver for new server with NVMe drives?

I am building new server for GitLab CI jobs. Currently we already have one home-made. It's using classic HDDs + SSDs for caching so I chose ZFS storage driver which is not performing optimally. New server will consist only of two NVMe SSDs so I…