• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lwafflard
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by lwafflard

    • RE: Multicast udpcast options

      Sorry for the late answer …

      We’ve just upgraded to 1.5.9 and update Bitrate and Remit Hello Interval on «Storage Node» settings page.

      The generated command was conform and everythings works great !

      Thanks a lot

      posted in Feature Request
      L
      lwafflard
    • RE: FOG Post install script for Win Driver injection

      Hello,

      Thanks a lot for all this stuff ! We used it since year start (HP/Dell, a dozen of differents models, 300 computers). We made some minor update on this script, if it can be reused :

      # lowercase machine name and remove all spaces
      machine=$(echo $machine | tr A-Z a-z | tr -d ' ')
      

      So, our drivers directory looks like :

      /images/drivers
      ├── forAll
      ├── hpelitedesk800g3twr
      ├── hpz230towerworkstation
      ├── optiplex7040
      ├── optiplex7050
      ├── optiplex7060
      ├── optiplex9010
      ├── optiplex9020
      ├── optiplex9030aio
      
      

      Another one concern the drivers download (unicast/NFS) by each client. By default, all unicast rsync start after the last multicast session. To make «subgroups» of rsync based on last IP number:

      dots "Calculate IP (wait4sync)"
      MY_IP=$(ip route get 9.9.9.9 | awk '{print $7}')
      IP_LAST=$(echo ${MY_IP} | cut -f 4 -d '.')
      
      # IP OK ?
      if ! [[ ${IP_LAST} =~ ^[0-9]{1,3}$ ]]
      then
        IP_LAST=4
        echo -n " bad IP..., use ${IP_LAST},"
      fi
      # Want each to wait ((IP_LAST % 5) ) * 3mn
      ## w.x.y.zz0|5|10|... => no wait
      ## w.x.y.zz1|6|11|... => wait 3mn
      ## w.x.y.zz2|7|12|... => wait 6mn
      WAIT=$((${IP_LAST} % 5 * 3))m
      echo " IP: ${MY_IP} => wait ${WAIT}"
      sleep ${WAIT}
      
      dots "Preparing Drivers"
      ...
      

      the last one concern the «forAll» directory, used for all common drivers like «pci simplified communication»:

      remotecommondriverpath="/images/drivers/forAll"
      [[ ! -d "${clientdriverpath}" ]] && mkdir -p "${clientdriverpath}" >/dev/null 2>&1
      dots "Common drivers In Progress"
      rsync -aq "$remotecommondriverpath" "$clientdriverpath" >/dev/null 2>&1
      [[ ! $? -eq 0 ]] && handleWarning "Failed to download common drivers"
      echo "Finish"
      
      posted in Tutorials
      L
      lwafflard
    • RE: Multicast udpcast options

      We use FOG 1.5.5, Multicast over different VLAN and set --mcast-rdv-address configuration setting.

      By default with this setting, udp-receiver (on each client) and a ttl set to 1 can’t reach server.

      One workaround is to wait all client reach the partclone screen and then restart the FOGMulticastManager service.

      Another one is to ask udp-sender to rebroadcasts the HELLO packet with the --rexmit-hello-interval parameter. With this setting, all receivers are able to find the Fog Server without restarting any service.

      Would it be possible to add a field in the multicast settings of the Web UI for extra-options ? (--max-bitrate is useful too )

      Actually to add these options we edit fog/lib/service/multicasttask.class.php (line 495)

                $buildcmd = array_values(array_filter($buildcmd));
      // Add our options
      $buildcmd[]=' --rexmit-hello-interval 5000'; //every 5 seconds
      $buildcmd[]=' --max-bitrate 600m';           // max bandwith, no stress for others computers
      // End extra options
                switch ($this->getImageType()) {
      
      
      posted in Feature Request
      L
      lwafflard
    • 1 / 1