Mounting issue after FOG update
Please excuse me if my english is not perfect …
I have update my FOG Server (Ubuntu) 18.104.22.168 to 1.5.7, all seems to go well except when i try to download image on a host i have a mount error
I have test many things i seen on many topics of this forum like this one https://forums.fogproject.org/topic/9823/mounting-images-dev-on-images-failed-permissions-denied :
Wayne Workman Mar 30, 2017, 3:41 AM
Make sure NFS is running with:
systemctl status nfs-server
Set the ownership of the images directory to user fog and group root like this:
chown -R fog:root /images
Then try again.
Also, see what this says:
Also check the .mntcheck files
Before upgrade the user in fogsettings and GUI was Fog, upgrade changed it in Fogproject then i changed it again in Fog but got the same error again.
My server has a separated disk for images but seems ok because the mounting looks good in fstab, and Fog server recognize images and space on “Storage Node disk Usage” in dashboard.
The problem is i think localise in this part of the error message "storage=10.149.20.64:/media/type=down but can’t say why appear.
How i can pass this post on Solved ?
Done. Glad it worked
@Quazz Thanks a lot, this command actually save my day/week :).
So update changed my exports file configuration and change the fog user but all is good now.
How i can pass this post on Solved ?
Have a good day all, regards.
@LittleTux After changing /etc/exports you have to run
exportfs -raso that they actually get ‘exported’
Thanks a lot for your answsers, i will try your advices and come back soon.
Edit : Just tried to modify my /etc/exports file but got the same error again. But i go back to “before update state” why my snapshot and see that before update values in /etc/exports was /media/administrateur/images and /media/administrateur/images/dev like you say @Sebastian-Roth.
That means that update to 1.5.7 modify my configuration in some ways in this files but not only because if i change it after update it not works.
Have a good day.
@LittleTux There are a few ways to go about this. One method is like the tutorial you found about adding a second (logical) storage node to the FOG server. This method has its good and bad sides. On the good side its pretty easy to implement as long as you follow all of the steps. On the bad side now you have to decide when you create the image definition which disk you want to store the image on.
One alternative would be to mount /dev/sdb1 on /images. That would make your /images directory 1,2TiB in size. (there are a few steps that need to happen to make this configuration, but no changes are needed in FOG).
The second alternative is to mount /dev/sdb1 below the /images directory. Like
/images/administrateurWhen you create the image definition you again have to decide to put the images in /images or /images/administrateur directory one is on /dev/sda and the other is on /dev/sdb.
In my opinion alternative #1 is the best option because it has the least impact on FOG and its settings. If you need to expand the VM disk beyond 1,2TiB you can do that pretty easy as long as /dev/sdb1 is a normal partition.
@LittleTux You need to manually edit your
/etc/exportsfile to match the images location you use (
Well i follow a tutorial on the forum to add a another disk on my Vm for all the images because i have many to manage in the school network i handle. So all the images is on this disk.
That’s the results of commands
So /dev/sdb is the images disks and it is mount on /media/administrateur/images, that’s the way it’s configured in the storage node in the GUI and before the update to 1.5.7 it worked good.
In the .fogsettings the “storageLocation” was /images before the update so i let it. Update changes fogproject si i move it to fog in this file.
I have a snapshot before the update so ichecked many things on files and GUI before and after update and tried to configure same things on same place but i d’ont know i must forget a thing …
Well I see a few things that are wrong or just make me scratch my head.
I don’t understand this path:
The default FOG storage location is
So I need the output of the following commands
showmount -e 127.0.0.1
Lets see the output of those commands to decide what to do next.