• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. george1421
    3. Posts
    • Profile
    • Following 1
    • Followers 64
    • Topics 113
    • Posts 15,310
    • Best 2,772
    • Controversial 0
    • Groups 2

    Posts made by george1421

    • RE: FOG storage node and data replication

      Here is the command I’m working with so far.

      rsync -arvPh --bwlimit=5000 /images fog@192.168.1.56:/images/

      Where:
      -a == archive
      -r == recursive
      -v == verbose (gives file names as it transfers, for my benefit)
      -P == show progress stats (for my interactive benefit)
      -h == display numbers in a human-readable format (for my interactive benefit)
      –bwlimit == bandwidth limitations in KB/s

      I’m going to let it run overnight to see where I end up.

      One interesting thing I found with rsync is that it runs in restartable mode. I stopped the transfer of a image mid stream. When I restarted the command it thought for a bit and then started the transfer where I broke the connection.

      It looks like from Tom’s post that I may need to include the --exclude switch to exclude files from being copied over.

      Some caveats so far:

      It appears that passing the password inline isn’t possible. Maybe able to get around with ssh keys.

      Rsync must be installed on both the master and storage nodes for it to work correctly.

      You can use a ssh tunnel to encrypt the data in motion between the master node and storage node if you need additional data protection. This may be of little value if you are transferring data inside your organization.

      ref: http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Understand I’m not knocking the way it is today. (Actually from another recent thread it gave me an idea how to change this multi site POC by doing full installs at each site then pointing them back to the master node for the database information). The 1.x version of FOG that Tom revived has been great. For my deployment I see two issues/concerns.

      1. The current fog replicator only copies the files under the image name directory. This is perfect for image replication. But in my case I have something slightly different in that I have a driver structure in the images directory that I need to replicate to all storage nodes. I need all storage nodes to have all copies of all files from the master node.

      2. On the surface I see some strange behavior with the fog replicator consuming 100% cpu. This may be related to having that faux devices image in the system or something else going on. I also noted in the fog replicator log that when I restarted the fog replicator service (when debugging the 100% cpu issue) that it started copying files that already existed on the storage node. i.e.

      [10-23-15 1:24:43 pm]  * ncystorage - SubProcess -> Mirroring directory `WIN7PROSP1X86B03'
      [10-23-15 1:24:43 pm]  * nycstorage - SubProcess -> Removing old file `WIN7PROSP1X86B03/d1p2.img'
      [10-23-15 1:24:43 pm]  * nycstorage - SubProcess -> Transferring file `WIN7PROSP1X86B03/d1p2.img'
      

      I will look into the rsync to see what commands it supports directly. It may be possible to stitch it into the current deployment by replacing the lftp calls (just a guess) with rsync calls. But you did give me a few ideals to check into and places to look for settings, thank you.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Yes it can. The image files appear to be packed pretty good as they are.

      I need to check a bit more into the fog replicator. I noticed that if I restarted the fog replicator it goes through and starts replicating all of the files again, with 100% cpu on the master node. Almost like the replicator service was in a tight do loop until the file finished copying over. This is not very kind behavior, which is making me think that I should just go the rsync route and just disable the fog replicator service all together. Understand at this point I don’t have documented evidence that the fog replicator is at fault, only what I saw just before calling it a week.

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4972 to SVN 5046 server load

      From the top output it does show you have a lot of apache stuff and they are all doing something since it also appears that msyql is running pretty hard too. So your system IS doing something.

      What is going on at the time this snapshot was run? Were you deploying? Do you have a large campus where you have a lot of devices talking back to the fog server?

      /var/log/httpd/access_log and /var/log/httpd/error_log might give insight on what is hitting your apache server.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Transfer Images from 0.32 to fresh 1.2.0 - 1.2.0 can't see images

      FWIW: On my centos system the permissions are 755 and owned by fog.fog for all files and folders in /images

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4972 to SVN 5046 server load

      What does top show you? That will tell you what is consuming your clock cycles.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      @Joseph-Hales said:

      As the images are already compressed I’m not sure if rsync with compression would be of any benefit or might actually make copy times worse.

      Testing shows that data compression “does work” but the actual amount of compression does not add any value in a WAN transfer. I took a 4.8GB captured image and gzip’d it. The resultant image was only 50MB smaller than the source image (not much to really matter). The but the other benefits of rsync would still be worth looking into for my project.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Following up on this in the AM, I now see all of the ‘files’ that were in /images/drivers on the master node now on the storage node. The FOG replicator only appears to copy just the files under the faux drivers image. What is missing now are the sub folders and files under /images/drivers (the actual driver files we push to the target just after imaging). So the idea to create a fake image kind of worked but not the way I needed it. As long as your files are located one level below the fake image folder then this is a workable solution.

      Being very self centered I would like to see FOG support something like rsync to sync/manage the images folder, especially if the storage node is located across a slow WAN connection because these image files tend to be very large and we could benefit from the transmittal data compression intelligent replication such a tool could provide.

      posted in FOG Problems
      george1421G
      george1421
    • RE: [Rev 4201] blank page when trying to install/update database schema

      Just a contributor here:

      We had a similar issue here after a trunk upgrade. The OP needs to check the Apache error log in (at least in the Redhat realm) /var/log/httpd/error_log

      The OP can run the <…>/fog/management/ url to generate the blank page then immediately run this command from the linux console.

      tail /var/log/httpd/error_log

      That should show the OP the error that generated the blank page.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      My preference would be to not do something out of band if possible. It does appear that creating a fake image with its path set to /image/drivers is choking the FOG replicator because of the sub folders, so I’m going to back out that change. Because no replication is happening because of that error.

      I haven’t dug into the fog replicator code yet, but I’m wondering if rsync wouldn’t be a better method to replicate the images from the master node to the other storage nodes. Rsync would give us a few more advanced options like data compression and only syncing files that were changed than just a normal file copy.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Its a trunk build 5040.

      Looking at the drivers folder. I have a combination of files and sub folders. Depending on how smart the replicator is it may not handle or traverse the sub folders.

      The structure of the drivers folder is such.
      /images/drivers/OptiPlex7010.zip
      /images/drivers/OptiPlex7010/audio
      /images/drivers/OptiPlex7010/audio/<many files and sub folders>
      /images/drivers/OptiPlex7010/video/<many files and sub folders>
      <…>

      I suspect that the replicator was only designed to copy the image folder and one level of files below.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Rebooting the storage node appears to have started the replication /images/drivers but so far only the first file has replicated.

      Looking at /opt/fog/logs/fogreplicator.log on the master node I see this error.

      [10-22-15 8:19:52 pm] * shvstorage - SubProcess -> mirror: Fatal error: 500 OOPS: priv_sock_get_cmd
      [10-22-15 8:21:08 pm] * shvstorage - SubProcess -> Mirroring directory drivers' [10-22-15 8:21:08 pm] * shvstorage - SubProcess -> Making directory drivers’
      [10-22-15 8:21:08 pm] * shvstorage - SubProcess -> Transferring file `drivers/DN2820FYK.zip’

      the zip file is the only thing in /images/drivers on the storage node.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Correction that error was on line 12 not line 1. I missed the last character when I copied the error.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      Well that was interesting. Trying to force the replication by stopping and restarting the FOGImageReplicator service on the master node restarted without issue. Stopping and starting the same service on the storage node caused an error to be thrown

      PHP Fatal error: Call to undefined method ImageReplicator::getBanner() in /opt/fog/service/FOGImageReplicator/FOGImageReplicator on line 1

      Both the master node and storage nodes are running build 5040.

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG storage node and data replication

      OK that sounds like a plan. I’ll set that up right away.

      Do you know what the replication cycle interval is or where to find the setting? Under “normal” production once a days is sufficient, but I can see during development that we might need to shorten it to just a few hours.

      posted in FOG Problems
      george1421G
      george1421
    • FOG storage node and data replication

      I’m working on a multisite proof of concept configuration. I setup a fog storage node and everything worked great. All of the images were copied over to the storage node. I currently have the target machine drivers in /images/drivers folder and this folder was not copied to the storage node, which was kind of expected since this folder is not standard to FOG. My question is how can I add this directly to the list of directories that gets replicated between the storage nodes? Or am I going about it the wrong way. I need the target machine’s drivers replicated to all storage nodes too.

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4876 kernel and init.xz missing

      The OS is Centos 6.7. But I think what was changed works across the linux distros. The wgetrc thing is specific to wget and I know I’ve made that change on FreeBSD as well as various flavors of linux. The environment settings should also be universal.

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4876 kernel and init.xz missing

      Here is an update on this issue for those that may find the same issue.

      I added the following lines to the /etc/bashrc profile script at the very bottom.

      export http_proxy=http://<proxy_ip>:<proxy_port>
      export https_proxy=http://<proxy_ip>:<proxy_port>

      saved the file then logged out and back in. After I did that the installer script downloaded the FOGService.msi file without error and the kernel and init.xz files existed when the installer was done.

      Just to restate the issue, if you have your FOG server behind a proxy server you must update the bashrc file with your proxy server settings AND wgetrc with the proxy server settings, because both commands are used to download files in FOG.

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4876 kernel and init.xz missing

      Ok looking a bit deeper into this, the link you referred to the diff file uses wget to get the kernel images and init.xz from sourceforge. Looking into the actual file commom/functions.sh it uses curl to get the files. In my install my fog server sits behind a proxy server. I’ve got the command in place in /etc/wgetrc to support proxy downloads. I’m going to have to look into what can be done for curl behind a proxy. But as a side note, I’m suspecting that’s also the reason for FOGService.msi failing to download every time during the install process.

      posted in FOG Problems
      george1421G
      george1421
    • RE: SVN 4876 kernel and init.xz missing

      Sorry just so I’m clear (my apologies I had several different comments in my post):

      When I run the install from the local svn location that will remove the bzImage and init.xz files. But then redownload them during the update process?

      If that is true, then something is broken. I can manually install the bzImages from inside the fog management console, but I have to get the init.xz images from sourceforge via wget. If this is SOP then I’m OK with it, but one would think the update/installer would put all of the bits in place for me.

      posted in FOG Problems
      george1421G
      george1421
    • 1
    • 2
    • 762
    • 763
    • 764
    • 765
    • 766
    • 765 / 766