Problem configuring new storage node / creating images
-
hello community,
i discovered fog yesterday and planned immediately to do a rollout at our company…
So i downloaded fog 1.1.2 and installed it on ubuntu 12.04 as a VM on our ESXi Server.
the HDD has only a size of 16GB so there is no way to save all images on the local fog storage under /images.We are using a Storage Server (Windows Storage Server 2008) where a 3TB Seagate external USB drive is connected. Drive E:/ (Seagate drive) was a Samba share where we stored our clonezilla images until now…
i have read a lot of ressources yesterday but still stuck on a problem bei configuring this drive as storage node…I added the NFS and FTP Role to our Windows Storage server 2008 and have mapped the users through our active directory.
my actual configuration looks like this
[ATTACH=full]1102[/ATTACH][ATTACH=full]1103[/ATTACH][ATTACH=full]1104[/ATTACH]so as you can see 10.10.1.13 is the ip of our storage server. The NFS Share on the server is /fogimages.
it’s mounted to my fogserver (via fstab) on /images/windows.
i created a mntcheck aswell.My configuration in the webinterface of my fogserver is as above the ip 10.10.1.13 and the path /images/windows, it’s configured as master node.
The user i use above is the domain user i created and mapped to the root user of my fogserver.On our DHCP server option 66 is: 10.10.1.128 (IP of my fogserver)
and option 67 is: udionly.kpxethe problem where i stuck is now the following:
when i’m booting a notebook with pxe boot i get on my foginterface . i can now register the host this works fine.
but when i select quik image and enter the credentials it just throw me back to the selection screen of the fog interface.after reading hours about hours every resource i found here and on google and don’t get a solution i’m now very helpless…
someone might help me, or had some similiar problem like me?
thanks in advance for every post!
btw: sorry for my bad english, i’m not very well at express myself in englisch…
Regards.
[url=“/_imported_xf_attachments/1/1102_Bildschirmfoto 2014-07-04 um 15.28.22.png?:”]Bildschirmfoto 2014-07-04 um 15.28.22.png[/url][url=“/_imported_xf_attachments/1/1103_Bildschirmfoto 2014-07-04 um 15.30.18.png?:”]Bildschirmfoto 2014-07-04 um 15.30.18.png[/url][url=“/_imported_xf_attachments/1/1104_Bildschirmfoto 2014-07-04 um 15.29.03.png?:”]Bildschirmfoto 2014-07-04 um 15.29.03.png[/url]
-
The Login credentials it’s requesting are the credentials you use to login to the FOG GUI, this is different from the user the server is using for ftp and such.
You have no problems logging into the Web Interface correct? Use those same credentials at the quick image screen and all should work.
-
[quote=“Tom Elliott, post: 32232, member: 7271”]The Login credentials it’s requesting are the credentials you use to login to the FOG GUI, this is different from the user the server is using for ftp and such.
You have no problems logging into the Web Interface correct? Use those same credentials at the quick image screen and all should work.[/quote]
first thanks for your answer, i forgot to write that the login credentials that i’m using on the quik image screen are the ones from the fog gui. i just got thrown back to the selection menu…
when i’m using the login credentials of my AD i get an login incorrect error.
-
Here’s a test you could perform to see if it helps you out.
Create a generic GUI user. Something as simple as user and password
and test that.If you still have issues, can you get me a copy of your error and access logs?
-
i tried with a new GUI user and still get the same error.
i would post y error log but the database marked it as spam so i send you a priv massage.
EDIT: i uploaded a txt file with the error logs…
[url=“/_imported_xf_attachments/1/1105_logfiles.txt?:”]logfiles.txt[/url]
-
so i uploaded the files on my post above
-
Your host does not have an image assigned to it. This is why it’s not working for you. Please assign an image and try again.
-
Also, have you uploaded an image that can be pushed to the client machine?
-
okay so now i have weekend, i will try this on monday…
i thought the quik image is to create a image of the local device where you boot from…
seems that i misunderstood that.
thank you in advance for your help, i will post on monday again if it works.
-
Hey Tom,
okay, so i am at work now and have tried smth.
i created an image. i selected the host and assigned it to the image which i ceated.
then i created a basic upload task for my host.i get the following error, i think the configuration of my nfs storage is not configured correctly…
[ATTACH=full]1106[/ATTACH]i think theres some trouble becouse my /images/windows folder has no dev folder…
i tried to copy/move the dev folder from /images/ to /images/windows but i have no permissions to do this.
do you have any ideas?
[url=“/_imported_xf_attachments/1/1106_2014-07-07 08.32.55.jpg?:”]2014-07-07 08.32.55.jpg[/url]
-
The only thing is you need the dev folder within.
FOG Works as such:
/images/<imagename(s)> is the actual uploaded images. These are mounted Read-only so as to be used. Inside of the /images/ folder (or in your case, /images/windows/) there should be three things. First, there should be: /images/windows/.mntcheck and /images/windows/dev and /images/windows/dev/.mntcheck
Command line ability to do this within linux as root user is:
[code]mkdir -pv /images/windows/dev
touch /images/windows/{.mntcheck,dev/.mntcheck}
chown -R fog:root /images/windows
chmod -R 777 /images/windows[/code]Next you need to make sure the exports file is properly setup.
Change the references from /images AND /images/dev to /images/windows AND /images/windows/dev respectively. Restart the NFS server with:[code]service nfs restart
service nfs-kernel-server restart[/code]This should help.
If you don’t have permissions to do this, then find a person who does as these are the required elements to operate with FOG.
-
thanks for this explaination,
i set up my fog server as you wrote above.
after a day of searching i found out why i can’t execute the chown command, it was a fault in my user mapping.now i did the following things:
created the dev folder in my /images/windows path
created mntcheck in /images/windows and /images/windows/dev
chown my /images/windows folder successfullychanged my references in /var/www/fog/lib/fog/config.class.php to /images/windows and /images/windows/dev
restarted my nfs server.
[SIZE=14px][FONT=Arial][COLOR=#000000]Unfortunately i get the same error when i try to upload an image as in the picture above…[/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Arial][COLOR=#000000]“Failed to mount NFS Volume”[/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Arial][COLOR=#000000][/COLOR][/FONT][/SIZE]
-
ok so after i read moe and more resources i get a step further.
my exports file is correctly configured, the storage nod eis correctly configured now too.
the error on uploading the image looks now like this:
[ATTACH=full]1120[/ATTACH]seems that there is a error with my nfs share… i’m going to take a deeper look at this.
[url=“/_imported_xf_attachments/1/1120_2014-07-09 08.48.43.jpg?:”]2014-07-09 08.48.43.jpg[/url]
-
Hello pdpk
to solve your problem you need chanhe the file
#sudo nano /etc/exports
/images/windows *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsi$
/images/windows/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2) -
exportfs –a
-
[quote=“Gilberto Ferraz, post: 32554, member: 2615”]exportfs –a[/quote]
hello gilberto,
when i ran the command exportfs -a i get the following error:
[CODE]root@OptimusFOG:/images# exportfs -a
exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/images/windows”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.xexportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/images/windows/dev”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.xexportfs: /images/windows/dev does not support NFS export
exportfs: /images/windows does not support NFS export[/CODE]my share is on a NTFS formated HDD maybe this is the problem?
-
ok it works. i changed the exports back to it’s defaults and now it works!
thanks tom for your help and thanks gilberto!
now this post can be closed!