Adding storage to existing FOG server.
Sorry if this has been asked before, I did a search and didn’t find my answer.
I have FOG 1.2.0 setup on Debian 7. I have two internal drives (empty ext4 partitions) I would like to use for extra storage space for my images. I tried adding them when I fist did the install and linked them to the /images location. This allowed me to upload fine but the deploy would fail out every time (problems finding the right image location).
My question: what is the best way to add storage space to an existing FOG for images?
There’s a section in there just for you.
Let us know if you need more help.
stevefsusd last edited by
I’ve been having trouble getting a new storage node (located on a USB Drive that’s plugged into my Fog server) to work properly. I am able to get the drive to mount and have the permissions set the way you mentioned, but when I try to upload an image it isn’t working.
It looks like it is going to work, I even see the screen flash briefly that would be showing me the progress. But once that flashes the screen changes to a blue background, with a repetitive message about how it is unable to move the temp image that it is supposed to have in the /dev directory to the /ext_images directory. When I check the /dev directory, I see that there’s no image at all even being started to upload.
Sure seems like that would be a permissions type of issue but I know those are good.
You mention something about adding FTP info to the Fog Settings – Storage Node area. I am not seeing that. I do see TFTP Server info but nothing that specifies a storage node (either default or new).
The USB drive is mounting just fine, I can see the path to the images directory on it and the /dev directory as well. Permissions look the way you mention. Where else could I look for the spot I may need to plug the FTP username/pswd info into for the new storage node?
@sacha_marin tftp… what? What does the error say?
sacha_marin last edited by sacha_marin
@Wayne-Workman i just get a tftp…… then an open timeout. i only touched the /etc/fstab that i just restored and the /images is now called /images.old but there is an exact copy of it called /images
@sacha_marin What’s the error?
sacha_marin last edited by sacha_marin
and now my client cant connect to the fog server anymore. i just get a tftp…
@sacha_marin You’d use /etc/fstab (or the ubuntu equivalent) to permanently mount the drive to a directory. You should mount it to it’s own /images directory, not the existing one… maybe something like /images2
Then, you’d create a brand new storage group, then add a storage node to that group and specify the correct path. Since it’s the only member inside the new storage group, you’d set it as the master storage node. You should also set your original “default” node as the master because it should also be the only node inside its group. Because it’s local to the FOG server, the credentials used in the default node should work on the added node. There’s also a spot inside FOG Configuration -> FOG Settings -> Storage node that you need to set the FTP username and pass, again, it’d be the same since it’s local.
Then, when you create an image, you’d just specify the storage group you’d want it to go to.
You would also have to modify your /etc/exports file to export the new directory. It’d be the same as the existing two lines in there, but with the new path.
You’d also need to create the hidden .mntcheck files both in the new /images and /images/dev directories.
Then a server reboot should seal the deal.
Here are some related articles:
sacha_marin last edited by Wayne Workman
i know its not the right place to ask but i just got a new 2 tb hdd to store my image.
and im not sure how to set it for that everytime i image something upload/download it use that other hdd. im on ubuntu.
thanks again for any help
– mod moved question to relevant thread.
[quote=“TheGorgotron, post: 42852, member: 28622”]I will check that tomorrow and copy an image over to see if it works. I’m pretty sure I had both set as 775 last time I tried this, but I’ll make sure this time. Thanks for the suggestion.[/quote]
Still getting permission denied. I’ll have to check on this some more later. Right now the main drive has a little bit of room left.
[quote=“Wayne Workman, post: 42846, member: 28155”]Maybe double check the permissions on the linked (new) hard drive or directory?
I would suspect that those permissions need to be the same as the ones applied to the original /images directory.[/quote]
I will check that tomorrow and copy an image over to see if it works. I’m pretty sure I had both set as 775 last time I tried this, but I’ll make sure this time. Thanks for the suggestion.
Did that work?
Maybe double check the permissions on the linked (new) hard drive or directory?
I would suspect that those permissions need to be the same as the ones applied to the original /images directory.
[quote=“Wayne Workman, post: 42818, member: 28155”]This might help:
That looks to be for expanding a partition on the same drive that Debian is already installed on. I’m looking to add internal HDDs to add more room for my FOG images.
This might help: