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

    Posts made by george1421

    • RE: FOG storage node and data replication

      I was able to update the system to SVN 4070 this AM.

      The FOG Replicators service is behaving much better now. The CPU utilization is better at/about the same utilization as the lftp process, so well done Tom.

      The image files are still syncing between the servers. One thing I did notice about the FOG replicator service is if you stop and restart the replicator several times, multiple lftp services are running. Based on this I assume that when the replicator is stopped, it doesn’t kill off the running lftp process. Not an issue under normal conditions, just an observation.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Windows7 restarts at bootup when it reaches classpnp.sys after being imaged with FOG

      Ok that’s a bit clearer, you are using FOG for / as a deep freeze system to archive the image not deploy a master image to many machines.

      So for this I would use single disk multiple partitions not resizeable (since you are copying from and restoring to the same machine every time).

      While this is an obvious statement, this (FOG) should work no problem. Its just using partclone to copy the hard drive to an image and then using the same to take the image and put it back on the client.

      You say that its getting to classpnp.sys and freezes. Are there any warning messages at all?

      You did make reference to ACHI and legacy, so I can assume that this hardware/disk is not in UEFI mode at all??

      posted in FOG Problems
      george1421G
      george1421
    • RE: Imaging fails on one machine but worked previously.

      I would also say its the physical disk based on what you have posted. I have experienced a bad sector on a hard drive cause ghost and clonezilla to fail. I have not yet experienced this with FOG (just because with the other I’ve deployed units in the 1000s).

      I would ask 2 questions here.

      1. What is the hardware you are deploying to (ie Lenovo M93, Optiplex 9010, etc)
      2. Have you physically replaced the hard drive in this system. (I noted that you mentioned hard drives . Do you have more than one in this system?
      posted in FOG Problems
      george1421G
      george1421
    • RE: Windows7 restarts at bootup when it reaches classpnp.sys after being imaged with FOG

      I would make sure to rule out issues with your reference image before focusing on FOG. I can say that I deploy Win7 using FOG without issue.

      We capture using single disk not resizable but then expand the disk to consume the entire disk post deployment using diskpart in the unattend.xml or via the setupcomplete.cmd. Either way works well.

      I can also say that when we build the reference image we use a VM client to capture a hardware neutral reference image.

      From a deployment standpoint I would ensure that the reference systems and target systems (hardware) are setup properly. It sounds like you’ve ruled out the hardware since you are building your reference image and then deploying to the same hardware.

      While this takes time I would build a reference image, sysprep it, and instead of capturing at this point just reboot the reference image to ensure that it builds correctly on the same hardware. This will make it clear that FOG is at issue. You should use the exact same process just don’t capture and deploy using FOG.

      Based on your error I would say there is a driver issue with your deployed system.

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

      After about 12 hours of running and the FOG Replicator service is still running at 100% utilization. It appears to be working as it should by moving files from the master node to the storage node. So it IS working, just with high CPU usage. I tried to poke around in the code a bit and add 20 second sleep statements to see if I could hit on where its looping uncontrolled (just a guess). I’m suspecting its somewhere after lftp is being launched and then it enters a task wait function which should wait until the lftp file copy is done. But from there I lost the trace (and btw I’m not a programmer only a good guesser).

      I think I’ll need to leave this to the developers to take a peek at.

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

      @Wayne-Workman said:

      @george1421 I’m curious how you’re making the clients get said drivers from the storage nodes ? It’s exported as read-only via NFS and the other available option without any changes is FTP.

      Well that’s the bits I haven’t worked out yet. I needed to get the drivers to the storage node. On the master node today I’m running a post install script to copy the correct drivers to the target computer. It’s possible that I may not understand the concept of the storage node just yet. I may have to rethink my position. Without the files I can only guess.

      But if I run a full install at the remote site that may address the driver deployment issue.

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

      Well I guess I just need to set it up and go away for the weekend.

      I just ran out of disk space on the storage node. Looking to see where the space went I look into the drivers folder and the sub folders and driver files were there. So if I circle back to Wayne’s first comment to create a faux drivers image. Given enough time the system as is will replicate the drivers folder and all sub files and folders over to the storage node. That still doesn’t explain the 100% cpu usage of the fog replicator service. But the system does work as is.

      Do I think the rsync method is better the ftp, yes. Do I think I can setup this POC system as is without much hassle, yes.

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

      @Wayne-Workman said:

      @george1421 said:

      (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).

      It was originally Tom’s idea. And it’s proven to work. I’ve just been spreading the word.

      Well what I’m looking at is a multi site setup where each site would have a local storage node and a central master fog server at HQ. The idea is to start the deploy from the master node but have them deploy from the local storage nodes. But looking into a storage node a bit more it doesn’t look like the pxe environment is setup or the install isn’t complete (but I just did a few quick checks). But the idea of doing a full install at the remote sites but having them reference the master node’s database is brilliant. That way I have a full fog install at each site but only one database where everything exists.

      If I can get the replication bits to work like I need, I think I’ll have a solid solution.

      posted in FOG Problems
      george1421G
      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
    • 1 / 1