Using a NAS for storage



  • Hello I am having a slight issue with setting up fog and using a separate Nas as a storage.
    Currently my setup is as follows:
    Fog is installed on ubuntu 10.4LTS
    My NAS is run from Windows Server 2012R2.
    I have NFS running and working and fog is able to upload an image to the images/dev folder without an issue.
    I then get the error saying that fog is unable to move the image from the dev folder to the images folder.
    I have created a FTP server on my server and at the moment I have it set to allow Anonymous Users with read write permissions. I am able to successful use filezilla to connect to the FTP server from my ubuntu machine and make changes with the user ftp and I have created a seperate storage node that has the ftp user for “Management UserName” with the correct username as well.

    If anyone could help that would be wonderful. If you need more information please let me know and I will be happy to provide you with it.
    Also if you have a better way to use the Nas for a storage space please let me know.

    Thank you



  • So i was able to use the rename command to rename the image and move it up a directory.
    so at this point what could be my issue?



  • I can ftp in however the mv gives me a invalid command.
    Also I have checked that thread however I am still unable to get this to work


  • Moderator


  • Moderator

    from you FOG server command line, see if you can ftp into your NAS using the username “fog” and the password from the setting. Then see if you can issue a mv command on a file, create a file, and delete a file.



  • OK so I added a fog user name and gave that user access with ftp. I was able to verify that the user has has permissions with fileZilla however I am still getting the unable to move from the dev folder to the images folder.
    Do I have to change anything to get this to work?
    I have also verified that if i change the name manually and move it then I can image a machine.
    So after I get this part working everything should be good.



  • OK thank you I will give this a try and let you know if this works.


  • Moderator

    [SIZE=3][FONT=arial]you need to create a user account on the windows server named “fog” with the password from the fog user (Other Information -> FOG Settings -> TFTP Server -> [COLOR=#333333]FOG_TFTP_FTP_PASSWORD). Give this user FTP access to the directories you are storing your images. At the end of the image upload process, FOG uses ftp to move the image from the images/dev/[mac-address] folder to the /images/[imagename] folder or file, depending on image type.[/COLOR][/FONT][/SIZE]

    [SIZE=3][FONT=arial][COLOR=#333333]It does this using “fog” as the username, and the password value from the setting mentioned in the above paragraph. The password is not encrypted, just create it as-is. It’s complex because it’s only ever used by the FOG system or an admin testing/debugging. [/COLOR][/FONT][/SIZE]


Log in to reply
 

774
Online

38981
Users

10712
Topics

101676
Posts

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