@SteveB689
This editting the exports file
- Edit /var/www/fog/commons/config.php. (on centos 6 see /var/www/html/fog/commons/config.php)
Change the values of STORAGE_DATADIR and STORAGE_DATADIR_UPLOAD to
“/home/fog/images/”
and
“/home/fog/images/dev/”
for example.
If you already have created images with FOG, don’t forget to move the complete directory /images to the new place. Be sure that the correct access rights are granted.
- Edit your exports file (in /etc/exports) to export the new location via NFS:
/home/fog/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
/home/fog/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
After that tell the running NFS-server to read the new config:
exportfs -a
- Edit your storage-node definition:
Go to Storage -> All storage nodes and edit the entry of the “Image Location:” to your new target for your Storage Node “DefaultMember”.
After that your “Disk Information” (Free / Used / Total) at the dashboard may not be correct anymore. Edit the file freespace.php in your web-root (/var/www/fog/status/) (on centos 6 see /var/www/html/fog/status):
define( “SPACE_DEFAULT_STORAGE”, “/home/fog/images/” );
You may also need to modify the permissions for the /home/fog directory. It is suggested that you use:
chmod 701 /home/fog
- Create .mntcheck file in your new “images” and “dev” folders :
touch .mntcheck
Nothing here mentions /dev/sdb* where my images now reside… it’s all about a share name … so this where I am getting confused… how does FOG know about a second hdd?