Storage of courses

Storage of courses

by James Noxon -
Number of replies: 2
I have this palm sized computer for taking into class when I am teaching. It is called Odroid U3. It has a primary memory called eMMC of 64Gb, and another 64 Gb on a SD card. I will install all the apt-get on eMMC. How do I configure Moodle to store all the course related files on the SD card? I am guessing all the database related files should be on the eMMC because it is much faster. Does the course related storage all go into the database or will it be possible to put text, graphics, and videos etc. on the SD card somehow?


thanks much - professor James

Average of ratings: -
In reply to James Noxon

Re: Storage of courses

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You can configure (in Moodle's config.php) the $CFG->dataroot to be where uploaded files go. Everything else is in the database. You also need to make sure you you set another config parameter, $CFG->cachedir, to point to fast storage or your site will be very slow. 

You may want to Google 'Moodle on a USB stick'. I've never done it, but it strikes me that a lot of your issues will be similar. 

In reply to James Noxon

Re: Storage of courses

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

If you run Disk Usage Analyzer, you will probably see that everything is taking a lot less space than you think, unless you have a bunch of videos included. If you are not using a lot of videos, then  I would recommend putting everything on the eMMC because it is so much faster than the SD card. I have an Odroid XU4 and that's the way I have it set up.