Secondary Drive
-
Is it possible to make fog store its images on a secondary drive?
I am seeking this option as I have run out of hard drive space on my main drive
I am looking for configuration options if it is possible.
-
@dureal99d Sure it is possible. There is a description in the wiki on how to extend space for images if you are running FOG in a vmware environment. But you can follow this pretty much to the point except that you need to buy and pop in a secondary physical disk instead of adding a virtual one… https://wiki.fogproject.org/wiki/index.php?title=Add_%26_Extend_a_2nd_Virtual_HDD
-
Yes it’s easily possible. Is it an internal drive or external one? And what OS is your FOG server running?
You may glance through these instructions - I wrote them about a year or so ago but they work, in fact I used them to partition, format, and mount an external sata drive on my new raspberry pi recently… so that tells me the instructions are pretty universal. You’ll want to read through the text and not just throw commands at your server. Because you asked, I just spruced up the instructions a little.
-
@Wayne-Workman I run Ubuntu 16.04 fog 1.3.0 rc8
-
@dureal99d Thank you. Just give the instructions a shot. Post here if you have difficulties or if you succeed too.
-
@Wayne-Workman Will do!!!
-
@Sebastian-Roth and @Wayne-Workman I like you tutorial and all but I prefer to have the images in a certain folder than on the open hard drive (secondary) how would I achieve this?
for example at the end once I clean up the mnt test folder should I run "mount -t ext4 /dev/sdb1/whateverfolderIcreate /images
this would insure that the fog images folder is mounted in side this whateverfoldericreate folder yes?
also looking @Wayne-Workman guide, do I need to concern myself with permission issues and exporting the nfs again? or is this like linking it to the main folder?
I assume it is but assuming right.
-
@dureal99d said in Secondary Drive:
for example at the end once I clean up the mnt test folder should I run "mount -t ext4 /dev/sdb1/whateverfolderIcreate /images
this would insure that the fog images folder is mounted in side this whateverfoldericreate folder yes?
Linux file system doesn’t work that way, the mount command mounts a partition to a mount point.
In your case you can either mount a new disk to the /images folder as in Sebastians post, or if your linux server uses LVM, you can just add that new disk to the root LVM group and then just extend your root lvm group. Let the LVM disk manager manage how that disk is used. There are many how-tos on how to work with LVM: https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-adding-a-new-disk/
-
@Wayne-Workman I was getting an error about the directory not existing when i would try an image upload but i then realized that i had not updated the server to point to /images2 in both the default and the secondary nodes setting. i now am performing an test image upload.
-
@Wayne-Workman Your instructions worked like a glove. Easy peasy. Thank You!!!
-
One detail that I left out was that the fog images files were saved on the open partition of the 5tb drive I assigned them too as pointed out by @george1421.
I admit i was a bit confused at first by what he was saying as i wanted to mount the images to a specific folder on the drive (secondary) and then i realized that i needed to partition the drive as the new fog destination needed its own space. I then create space on the drive by partitioning the drive and mounting the second partition as a files storage for whatever i like while the fog partition would stay hidden.
Thank you guys this thread is solved, success!!!