Hot answers tagged

7

First off, an overlay/union filesystem isn't the correct answer here. Those are for cases where you have a read-only filesystem that contains most of your data, and need to have some limited customization on top of that that is writable (for example, LiveCD's use overlay filesystems to allow the impression of a writable filesystem even though the media is ...


3

Your best option is to add at least two large-ish drives (e.g. 4TB or more) and use some form of RAID-1 or RAID-10 - if you don't have any storage redundancy in your "mission critical" service, you're doing it wrong. If you add only two drives, use RAID-1. for four or more use RAID-10. I would advise against using RAID-5 or RAID-6 for mail because mail ...


2

Use the standard Ubuntu package "overlayroot". In Ubuntu 16.04, this package is automatically installed. You simply need to enable it by editing /etc/overlayroot.conf and adding the following setting: overlayroot="tmpfs" Reboot the Ubuntu 16.04 system, and you're done. You may want to add a kernel boot entry to your grub configuration to make it easy ...


2

The explanation lies in the mount.fuse man page: Filesystems are mounted with nodev,nosuid by default, which can only be overridden by a privileged user With the nodev option, the kernel bans all access to devices in the mounted filesystem. With the nosuid option, the kernel ignores setuid and setgid attributes. Both options are necessary for security ...


2

[Using RUN in udev rules] is only suitable for short-lived scripts, as they will be killed if they are stil running after a timeout period. I.e. the FUSE background process that implements your filesystem gets killed. One alternative that comes to mind: if you have the systemd-mount command, you could try using that in place of your mount command. It will ...


2

I see two possibilities: dedicated volume You can create a volume (e.g. with LVM) and mount it there. Then the folder is a separate filesystem and cannot grow beyond the filesystem size. quota A less forceful approach (i.e. the users could circumvent it): You could create a group which is used for this folder only (which cannot be easily enforced). You ...


2

Here are some thoughts - I am still learning this and will update this as I go. How to choose the union filesystem There are two ways to look at this: How do the features of each one compare? For some common use cases, which one should I choose? I'll compare unionfs / unionfs-fuse / overlayfs / aufs / mergerfs, the latter being a replacement for mhddfs. ...


1

You could use MergerFS for this. With this you need to mount your disks as you would do normally and use MergerFS to mount one on top of another. Excellent podcast episode with the developer of MergerFS


1

The command to mount an aufs filesystem is mount. The filesystem type (shown in /proc/mounts or in the output of mount with no arguments) is aufs, not fuse. This shows that aufs is a filesystem of its own, it doesn't use FUSE. It's implemented with its own kernel driver, not through the FUSE kernel driver. If you want to use aufs as a non-root user, root ...


1

In researching this the answer appears to be: no. In looking at the man page for aufs I don't see any options that would allow it to mount as anything but the root user. In looking at the filesystems that libfuse supports I don't see aufs listed there either. Lastly if you look at the userspace filesystems it's not listed their either: Filesystem in ...


1

unionfs on FreeBSD really is that bad. If there are files with the same name in both the lower and the upper layer, the kernel will return both, and the duplicates will have to be filtered out in userland. Quoting from the source of opendir(3) in FreeBSD: /* * The strategy here is to read all the directory * entries into a buffer, sort the buffer, and *...


1

Transform the input into the required syntax and splice it into the command line with a command substitution. dirs_with_photos="$(<~/dirs_with_photos.txt tr '\n' :)" if [ -n "$dirs_with_photos" ]; then unionfs-fuse "${dirs_with_photos%:}" /photos fi With mount_unionfs you need to issue one mount command per directory. You can use a loop around the ...


Only top voted, non community-wiki answers of a minimum length are eligible