Can the FlashMemory plugin add custom folders?

  • Hello everyone,


    Although the FlashMemory plugin indicates that no configuration is required, is it possible to manually add a folder so that it can also be read from and written to the memory?


    The main reason is that I have placed the Docker data directory on the SSD, and Jellyfin stores the transcoding directory at /data/jellyfin/cache/transcodes. Whenever a video needs to be transcoded, it places the transcoding chunks in this directory, and the directory is cleared after stopping playback. I'm concerned that this may cause unnecessary wear and tear on the SSD.


    Thank you for any help.

    OMV 7.x | 6.8 Proxmox Kernel

    GIGABYTE Z370M DS3H Motherboard

    Intel G4560 CPU | 16G×1 Non-ECC RAM

    128G SSD + 1T SSD + 4T×2 HDD

    • New
    • Official Post

    is it possible to manually add a folder so that it can also be read from and written to the memory?

    Yep. Just set the OMV_FM_EXTRA_DIRS environment variable. directories should be comma separated.

    openmediavault-flashmemory/srv/salt/omv/deploy/flashmemory/default.sls at master · OpenMediaVault-Plugin-Developers/openmediavault-flashmemory
    OpenMediaVault plugin for folder2ram. Contribute to OpenMediaVault-Plugin-Developers/openmediavault-flashmemory development by creating an account on GitHub.
    github.com


    This is how you set an omv environment variable:


    sudo omv-env set OMV_FM_EXTRA_DIRS "/path/to/dir1,/path/to/dir1"


    Then follow the rest of the directions in the omv environment variable wiki - https://docs.openmediavault.or…table/various/advset.html

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!


  • Thank you for your help. ^^

    Code
    root@nas:~# sudo omv-env set OMV_FM_EXTRA_DIRS "/docker/data/jellyfin/cache/transcodes"
    
    root@nas:~# sudo omv-env get OMV_FM_EXTRA_DIRS
    OMV_FM_EXTRA_DIRS=/docker/data/jellyfin/cache/transcodes
    
    root@nas:~# sudo monit restart omv-engined
    root@nas:~# sudo omv-salt stage run prepare
    root@nas:~# sudo omv-salt stage run deploy

    I ran the above command in ssh and restarted the system. I can indeed see that the memory usage keeps increasing during Jellyfin transcoding, and it decreases when I stop the video. :)


    A stupid question: there are still transcoding fragments in the transcodes directory. Are they mapped from memory to this folder?

    OMV 7.x | 6.8 Proxmox Kernel

    GIGABYTE Z370M DS3H Motherboard

    Intel G4560 CPU | 16G×1 Non-ECC RAM

    128G SSD + 1T SSD + 4T×2 HDD

    Edited once, last by Zafkiel ().

    • New
    • Official Post

    : there are still transcoding fragments in the transcodes directory. Are they mapped from memory to this folder?

    No. The folders created by folder2ram are using tmpfs. The program doesn't even know they are in ram. It is just a regular file.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • No. The folders created by folder2ram are using tmpfs. The program doesn't even know they are in ram. It is just a regular file.

    If that's the case, then I can rest assured. Thank you again for your help. :)

    OMV 7.x | 6.8 Proxmox Kernel

    GIGABYTE Z370M DS3H Motherboard

    Intel G4560 CPU | 16G×1 Non-ECC RAM

    128G SSD + 1T SSD + 4T×2 HDD

  • Zafkiel

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!