Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Using DigitalOcean Spaces to store moodledata directory as volumes

Scheduled Pinned Locked Moved Moodle
6 Posts 3 Posters 50 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andirahmat
    wrote on last edited by andirahmat
    #1

    Halo. I have this moodle that i need to migrate to cloudron, but the problem is the moodledata directory is too large 90 GB in size.
    I've already store this moodledata on digitalocean space and mount it on cloudron host, and it worked with this steps below :

    nano /etc/fstab
    
    add this to the last line :
    s3fs#moodlestikesnh /mnt/volumes/moodlestikesnh fuse _netdev,passwd_file=/root/.passwd-s3fs,url=https://sgp1.digitaloceanspaces.com,use_path_request_style,allow_other,nonempty 0 0
    
    sudo mount -a
    

    Next. I add the mountpoint as a volume on cloudron. Enable read and write permission. Done.
    The volume then mounted to my lamp moodle container in /media/moodlestikesnh
    Now I can see the mounted directory from app terminal.

    The problem is that, when i change the moodle config.php
    From : $CFG->dataroot = '/app/data/moodledata';
    To : $CFG->dataroot = '/media/moodlestikesnh/moodledata';

    The access to the app viaa browser is becoming super slow : https://lms.stikesnh.bgsmd.cloud/
    It takes 10 minutes to load the page, and still not complete. The browser still spinning.

    Any idea on how to solve this?

    1 Reply Last reply
    1
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #2

    @andirahmat I don't think s3fs is going to work. Ultimately, S3 (and DO Spaces) is an object store, it is not meant for filesystem. For example, things like symlinks, file permissions won't work out of the box. There is also probably limitations around filenames which we will discover only and as we hit them.

    1 Reply Last reply
    1
  • A Offline
    A Offline
    andirahmat
    wrote on last edited by
    #3

    @girish Thank you for the explanation. Just to clarify so block storage is the best option for this kind of use case?

    girishG 1 Reply Last reply
    0
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #4

    While this may not work directly, it may work better via an rclone mount that serves as the translation layer between the two.

    Life of sky tech

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #5

    I think rclone uses fuse as well. It's not going to be easy to simulate symlinks and permissions and other features over an object storage. But who knows, if anyone has time to experiment, please let us know.

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to andirahmat on last edited by
    #6

    @andirahmat yes, block storage is the correct thing to use for app data directory. But even in block storage, some filesystems like CIFS are not suited (since they don't have permissions and symlink support either). Of course, other filesystems like FAT, NTFS etc are totally out of question.

    1 Reply Last reply
    1

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks