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
    Bildschirmfoto 2014-07-04 um 15.28.22.pngBildschirmfoto 2014-07-04 um 15.30.18.pngBildschirmfoto 2014-07-04 um 15.29.03.png



  • 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!



  • @Gilberto Ferraz, post: 32554, member: 2615 said:

    exportfs –a

    hello gilberto,

    when i ran the command exportfs -a i get the following error:

    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.x
     
    exportfs: /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.x
     
    exportfs: /images/windows/dev does not support NFS export
    exportfs: /images/windows does not support NFS export
    

    my share is on a NTFS formated HDD maybe this is the problem?



  • exportfs –a



  • 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)



  • 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:
    2014-07-09 08.48.43.jpg



  • 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 successfully

    changed my references in /var/www/fog/lib/fog/config.class.php to /images/windows and /images/windows/dev

    restarted my nfs server.

    Unfortunately i get the same error when i try to upload an image as in the picture above…

    “Failed to mount NFS Volume”


  • Senior Developer

    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:

    mkdir -pv /images/windows/dev
    touch /images/windows/{.mntcheck,dev/.mntcheck}
    chown -R fog:root /images/windows
    chmod -R 777 /images/windows
    

    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:```
    service nfs restart
    service nfs-kernel-server restart

     
    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.


  • 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…
    2014-07-07 08.32.55.jpg



  • 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.


  • Senior Developer

    Also, have you uploaded an image that can be pushed to the client machine?


  • Senior Developer

    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.



  • so i uploaded the files on my post above



  • 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…

    logfiles.txt


  • Senior Developer

    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?



  • @Tom Elliott, post: 32232, member: 7271 said:

    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.

    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.


  • Senior Developer

    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.


Log in to reply
 

405
Online

38731
Users

10556
Topics

99953
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.