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

    rbaldwin

    @rbaldwin

    3
    Reputation
    900
    Profile views
    37
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rbaldwin Unfollow Follow

    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

    Latest posts made by 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
    • RE: Broke Multicast, not sure how.

      I’ve wiped out my 1.3.5-RC-11 installation and have installed the latest stable release 1.3.4 and it experiences the same issue. I mentioned I changed the IP address, I was using fog on an isolated vlan, just fog server, a 24port Netgear 10/100/1000 switch and my test machines. The new connection the fog server is on one VLAN and the machines are on another. I’m beginning to think this is the issue.

      I’m configured like this:
      https://wiki.fogproject.org/wiki/index.php?title=Cisco_Multi_Cast

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

      Here is a fresh attempt:

      [03-06-17 7:30:08 pm] | Task (30) Multi-Cast Task is new!
      [03-06-17 7:30:08 pm] | Task (30) Multi-Cast Task has been cleaned.
      [03-06-17 7:30:08 pm] | Task (30) /images/base_W5xx_Win764_AUG2016 image file found.
      [03-06-17 7:30:08 pm] | Task (30) Multi-Cast Task 1 client found.
      [03-06-17 7:30:08 pm] | Task (30) Multi-Cast Task sending on base port: 63158.
      [03-06-17 7:30:08 pm] | Command: /usr/local/sbin/udp-sender --interface eth1 --min-receivers 1 --max-wait 600 --portbase 63158 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/base_W5xx_Win764_AUG2016/d1p1.img;
      [03-06-17 7:30:09 pm] | Task (30) Multi-Cast Task has started!
      [03-06-17 7:30:19 pm] | Task (30) Multi-Cast Task is already running with pid: 20332.
      [03-06-17 7:30:29 pm] | Task (30) Multi-Cast Task is already running with pid: 20332.
      [03-06-17 7:30:39 pm] | Task (30) Multi-Cast Task is already running with pid: 20332.

      And it’s running:
      ps -ef | grep 20332
      root 20332 11450 0 13:30 ? 00:00:00 sh -c /usr/local/sbin/udp-sender --interface eth1 --min-receivers 1 --max-wait 600 --portbase 63158 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/base_W5xx_Win764_AUG2016/d1p1.img;
      root 20333 20332 0 13:30 ? 00:00:00 /usr/local/sbin/udp-sender --interface eth1 --min-receivers 1 --max-wait 600 --portbase 63158 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/base_W5xx_Win764_AUG2016/d1p1.img
      root 20459 17105 0 13:31 pts/0 00:00:00 grep --color=auto 20332

      When I boot the host, it just says

      Partclone v0.2.89 http://partclone.org
      Starting to restore image (-) to device (/dev/md126p1)

      The task in the Active Task has a spinner that says “In Progress” and the Active Multicast task says “Queued” and it never starts actually imaging.

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

      FOG Multicast log says:
      [03-06-17 5:35:48 pm] | Task (29) Multi-Cast Task is new!
      [03-06-17 5:35:48 pm] | Task (29) Multi-Cast Task has been cleaned.
      [03-06-17 5:35:48 pm] | Task (29) /images/base_W5xx_Win764_AUG2016 image file found.
      [03-06-17 5:35:48 pm] | Task (29) Multi-Cast Task 1 client found.
      [03-06-17 5:35:48 pm] | Task (29) Multi-Cast Task sending on base port: 58318.
      [03-06-17 5:35:48 pm] | Command: /usr/local/sbin/udp-sender --interface eth1 --min-receivers 1 --max-wait 600 --portbase 58318 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/base_W5xx_Win764_
      AUG2016/d1p1.img;
      [03-06-17 5:35:48 pm] | Task (29) Multi-Cast Task has started!
      [03-06-17 5:35:58 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:08 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:18 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:28 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:38 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:48 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:36:58 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:08 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:18 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:28 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:38 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:48 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:37:58 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:38:08 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:38:18 pm] | Task (29) Multi-Cast Task is already running with pid: 12190.
      [03-06-17 5:38:28 pm] | Cleaning 1 task as they have been removed
      [03-06-17 5:38:28 pm] | Task (29) Multi-Cast Task is being cleaned.
      [03-06-17 5:38:28 pm] | Task (29) Multi-Cast Task has been cancelled.

      Eth1 is the correct interface for the connection.
      And here I cancel it because it’s not started… The Image was made with FOG1.3.1 if it matters…

      posted in FOG Problems
      R
      rbaldwin
    • Broke Multicast, not sure how.
      Server
      • FOG Version: 1.3.5-RC-11
      • OS: Ubuntu 14.04
      Description

      I reconfigured the FOG servers IP address and NIC and moved it’s network connection and broke multicast.

      I changed the interface setting in FOG_UDPCAST_INTERFACE, FOG_NFS_ETH_MONITOR and in the Storage Manager.
      I’ve also verified all the settings here show the correct ip:
      https://wiki.fogproject.org/wiki/index.php/Change_FOG_Server_IP_Address

      Unicast works just fine, but Multicast fails. It starts partclone and just hangs there, not doing anything. Going through the steps here:
      https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_a_multicast

      I try the first test:
      sudo udp-sender --file /opt/fog/.fogsettings --log /opt/fog/log/multicast.log --ttl 1 --nopointopoint

      Then “udp-receiver” on the client. Doesn’t work, the server doesn’t see the client connection attempt. It doesn’t work even if the client is directly connected to the server by a crossover cable.

      udp-receiver --mcast-rdv-address <fog server ip address>

      If I specify the mcast-rdv-address the test works. This works with the test machine directly connected to the fog server by crossover cable or with the test machine connected to the LAN on all my vlans. So it seems my network connection is fine.

      I’m not finding any settings are incorrect, any pointers?

      posted in FOG Problems
      R
      rbaldwin
    • Host don't inherit group settings on add?
      Server
      • FOG Version: Running Version 1.3.1-RC-2 SVN Revision: 6052
      • OS: Ubuntu 14.04

      I haven’t updated in a few weeks, but checking the change log I didn’t see any changes related to groups, I’ll update later today and confirm if the issue is still present.

      Description

      Adding a host to a group, the new host doesn’t inherit group settings. Is this intended?

      ie: I have a group called P50, which has custom Kernel Arguments and Primary Disk settings. I register a new Lenovo P50, I add it to the group. The new P50 has no settings for Kernel Arguments or Primary Disk. I must edit and re-save the group for the new host to receive those settings.

      Another unrelated bug, when I edit a group the “Primary Disk” setting is always empty. If I enter something and save the changes, it is saved to the group members, but the setting remains blank if I reopen the group for edit.

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

      @Tom-Elliott said in dmraid and mdadm?:

      @rbaldwin while we await your suggestions/ideas/etc… Anyway we could have you try the --metadata flag during auto assembly? While I will likely add the postinitload feature anyway, I’d still be interested in seeing if we can get automated detection working.

      Since mdadm --examine --scan shows the metadata for the array as metadata=imsm, I used that in my attempt.

      madadm --assemble --scan --metadata=imsm

      Same results as before, the array isn’t found.

      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: dmraid and mdadm?

      @Tom-Elliott said in dmraid and mdadm?:

      @rbaldwin while we await your suggestions/ideas/etc… Anyway we could have you try the --metadata flag during auto assembly? While I will likely add the postinitload feature anyway, I’d still be interested in seeing if we can get automated detection working.

      I’ll have a look at that parameter and get back with you.

      posted in FOG Problems
      R
      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