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.

20 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
3
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
  • 2,194
  • 7
  • 16
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
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
  • 791
  • 1
  • 8
  • 12
1
vote
0 answers

Does OverlayFS support Quotas?

I tried mounting an overlayfs upper directory with quotas enabled (Linux system). The quota tools, however, keep telling me that quotas are not enabled on that filesystem. This makes me wonder if quotas are supported by overlayfs at all?
Holger
  • 19
  • 2
1
vote
2 answers

Install software on Ubuntu using apt without root?

I’ve got accounts on many HPC clusters. The machines have a minimal install, and the admins won’t add much else. I need to install lots of typical software. Normally I’d do this with apt, but of course I don’t have root on these machines. Some…
projectshave
  • 154
  • 5
1
vote
1 answer

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
  • 296
  • 4
  • 17
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
  • 7
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
  • 4
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
0 answers

Protecting a Linux against root users

I'm searching for a way to "protect" a Linux operating system against (root) users that can potentially misbehave. My threat model is the one of university students, having access to root password of desktops (to deal with network configuration,…
1
2