• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Jimmyboy
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Jimmyboy

    @Jimmyboy

    0
    Reputation
    176
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Jimmyboy Unfollow Follow

    Latest posts made by Jimmyboy

    • Why do we have to use NFS?

      I don’t know if the devs ever thought about this, but why are we using NFS? Things would go a whole lot smoother if we could use CIFS instead.

      In our case, we have a ZFS volume that we use for storage. Well, ZFS doesn’t like NFS at all. We are lucky to get 40 MB/s, while CIFS can get over 100 MB/s.

      If there is a way to tell FOG to use CIFS, please enlighten me.

      posted in FOG Problems
      J
      Jimmyboy
    • RE: Fog 1.2.0, How to change images location?

      Well, I forgot about this and worked on some other things, and rather than try to get this right, I just took the easy way out…

      On the host machine running the first Fog server, symlink ‘/images’ pointing to ‘/mnt/nas/images-lab’, and on the LXC container, symlink ‘/images’ pointing to ‘/mnt/nas/images-tr’.

      But one day, I would like to get this right and change the images path in the Fog configuration.😕

      posted in FOG Problems
      J
      Jimmyboy
    • RE: Fog 1.2.0, How to change images location?

      Hi Wolfbane, yes you have the right idea. Actually, I am doing something that I have not seen anyone talk about on the internet… I have the first Fog server running on a CentOS host. On that same host I created a Docker container (that was fun) and I am running a Fog server in that container with it’s own static IP.

      With containers you can have native access to storage at near-native speed. That is exactly what we wanted, because we didn’t want use NFS, which would force us to deal with the performance hit of sending all disk transactions through the network stack. We get great performance (roughly 500 MB/s with a 2GB file) when the container pulls a file.

      So we just about have this worked out, but we don’t want the images from one subnet to be in the same directory as the other subnet. We are not really concerned with overwriting due to identical names, we are more concerned about not having any segregation inside the ‘/images’ directory. Ideally, we would rather have it something like this: /images-lab, /images-training.

      Thanks for the response.

      posted in FOG Problems
      J
      Jimmyboy
    • Fog 1.2.0, How to change images location?

      I have searched and found nothing helpful. I followed the directions that apparently worked for version 0.32, but they do not work now (at least not for me).

      We have two fog servers that are sharing the same storage and we want to keep them separated. We can’t very well do that if both Fog servers have to store their images in the ‘/images’ directory.

      What am I missing?

      Here is what I tried:

      These are the places that you need to alter for the new storage location:

      /var/www/html/fog/lib/fog/Config.class.php
      define( “STORAGE_DATADIR”, “/images/” );
      define( “STORAGE_DATADIR_UPLOAD”, “/images/dev/” );

      /etc/exports
      /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 editing the exports:
      exportfs -a

      Log in to fog via web and go to:
      Storage Management > All Storage Nodes > DefaultMember

      and edit the entry of the “Image Location:” to <whatever you changed this to>

      posted in FOG Problems
      J
      Jimmyboy