Hi,
Anybody know if it's okay to remount the generated mergerfs file system? I'm looking for a way to semi-automate switching between direct_io on|off, depending on whether I plan to do mostly writes or mostly reads in a session. Want to avoid rebooting if I can.
mergerfs fstab entry:
/media/9631a1ae-6197-4bce-8359-db150bb7fe85:/media/538c1184-17bd-455f-8455-09c0a7901c70:/media/44e5d790-13ef-4433-a08f-df03683682a3:/media/f0e62054-1871-4bda-85cd-4a108e1667ba:/media/14d8e6d6-81c6-41df-820a-b58d825b5e1e:/media/bca59104-556f-4380-8180-494e9feed56d /media/9b55d2c2-1cc9-40eb-99dd-f9a8032a0f4c fuse.mergerfs defaults,allow_other,direct_io,category.create=epmfs,minfreespace=20G 0 0
remount:
mount /media/9b55d2c2-1cc9-40eb-99dd-f9a8032a0f4c -o remount
I'm thinking of a simple shell script I'd kick off to toggle direct_io in fstab by altering OMV_FSTAB_MNTOPS_MERGERFS in /etc/defaults/openmediavault, then run omv-mkconf fstab, then remount.
Thanks,
Mark M