Change default /images directory
-
You could run the installer with:
storageLocation=/newpath/to/location storageLocationCapture=/newpath/to/location/dev ./installfog.sh -y
-
Danke! Will give it a go. Not too big a deal as I can change the settings but would be nice to just specify during install.
-
@finvader How are you running the installer?
The only time, otherwise, that it asks this is fresh install.
If you’re upgrading, you would need to edit the /opt/fog/.fogsettings file looking for storageLocation.
Or, of course, you can run as I just suggested.
-
@finvader I would have to ask, what is your goal here (yes I know to change the path, but why?) What is your end game because there may be another way to go about it to keep your fog build sane and still get the results you need.
-
I was running a fresh install today and I did not see where it asked for storage location.
-
@finvader Ah, OK it was more of a general question…
-
Long story short. We maintain 1 centos 7.3 image. Our home directory is around 1.5 TB of storage. We create the /home/images directory to store images. In the past, after the install I had to go into the settings and simply change the location of the storage location and dev, now maybe, if we need to rebuild, I can just specify the location during the install. Trying to simplify things as much as possible for those that come behind me to attempt.
-
@finvader While this doesn’t speak directly to your current situation, if you ever rebuild your fog server I’ve recommended that you move your images (and if you are a heavy snapin user) off the root partition all together. This way you can prevent a full root partition from taking down your fog server. If you fill up the images partition or disk just that disk has issues and not the OS.
https://forums.fogproject.org/topic/6642/moving-fog-s-images-files-off-the-root-partition -
@george1421 The images are not on root partition. Here is our partition setup. This is in a fully STIG compliant secured centos 7.3
/root
/
/home
/boot
swap
/var/log
/var/log/audit
/tmpImages are stored in /home
-
@finvader Right, and all I’m suggesting is that you create a new partition or if this is a virtual machine a new vmdk to hold your images. Your existing validated structure would stay in place.
Most users just use the default partitioning structure for the OS and then run into issues when they capture something too big for the available space on the disk. Then the root partition fills up and the OS dies and its hard to recover.
-
@george1421 yes definitely, thanks
-
Hi,
in order to @george1421 's post, because of the may incoming space issue i have the main fog server on a vm with only 50gb of storage and an additional physical storage node with 4tb raid storage that will also went on a backup tape each week. our vm’s on esx also have a backup each week.
Regards X23