• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. rbaldwin
    3. Best
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 37
    • Best 3
    • Controversial 0
    • Groups 0

    Best posts made by rbaldwin

    • RE: dmraid and mdadm?

      @Tom-Elliott
      Here is how I added a postinitscript to my running FOG.

      Using information from here I modified my init image (https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image)

      In the S99FOG.sh I added at line 18:

      if [ ! -z "$postinitscript" ]; then
          mkdir /images
          mount -o nolock,proto=tcp,rsize=32768,intr,noatime $storage /images
          /images/postinitscripts/$postinitscript
         umount /images
      fi
      

      I on the server I created a folder /images/dev/postinitscripts and a symbolic link to it in /images so that /images/postiniscripts is a valid path booting in both capture and deploy mode.

      mkdir /images/dev/postinitscripts
      ln -s /images/dev/postinitscripts /images/postinitscripts
      

      Then I created the /images/postinitscripts/P50.sh which is a bash script which executes my mdadm build command to build my RAID array.

      #!/bin/sh
      #
      mdadm --build /dev/md0 --raid-devices=2 --chunk=16 --level=0 /dev/sda /dev/sdb
      

      Then on my P50 host I added the postinitscript=P50.sh to the “Host Kernel Arguments”

      This way when the host boots in capture or deploy mode, S99FOG.sh checks to see if $postinitscript is set, if it is it mounts the images path and executes the specified script. I only have the one storage node, which is my FOG server. So I’m not sure if my method would work on a multinode configuration.

      With this configuration I was able to boot and capture an image of my RAID configured Lenovo P50s and deploy that image to another identically configured Lenovo P50. Because the script can be specified per host, it’s customizable for other host which might need some postinit scripting.

      posted in FOG Problems
      R
      rbaldwin
    • RE: dmraid and mdadm?

      @Tom-Elliott said in dmraid and mdadm?:

      @rbaldwin I’ll likely still add the postinitload scripts though my implementation will likely be a little different.

      For example, the S99fog.sh script should not deal with mounting anything (that should be handled in the fog system for ease. Also postinitscripts should probably exist in the dev folder because you might want to upload, not always download – just my suggestion).

      I understand. My implementation is a dirty hack.

      posted in FOG Problems
      R
      rbaldwin
    • RE: Broke Multicast, not sure how.

      @Tom-Elliott

      You are correct, I found the issue imaging across vlans. Stupid oversight on my part, not all my interfaces had the same pim mode. So for anyone else having issues imaging across vlans pay special attention that your pim modes are the same on the interfaces in question.

      https://wiki.fogproject.org/wiki/index.php?title=Cisco_Multi_Cast

      posted in FOG Problems
      R
      rbaldwin
    • 1 / 1