Navigation

    FOG Project

    • Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. tag
    T
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    tag

    @tag

    0
    Reputation
    11
    Posts
    433
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    tag Follow

    Best posts made by tag

    This user hasn't posted anything yet.

    Latest posts made by tag

    • RE: Dual NIC clients

      @Wayne-Workman

      That would work nicely, seeing you can use different inits. I didn’t know that as it is not possible in 1.2.0.

      The caveat is that I would have to redo the server as trunk requires a newer Ubuntu according to @Quazz.

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Wayne-Workman
      Thanks again.

      Yes, that code will only work on the specific network defined in $nwid and if the kernel names the interfaces ethX and probably only if the number of interfaces match that particular piece of hw…

      Mighty nice of you to help me out here… Appreciate it.

      Thanks.

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Wayne-Workman

      Thanks for the reply.

      Seems kind of inflexible, though… The same init is used for all, right? We even have some clients with three NICs at other locations… If it has to take various hw scenarios into account, it might take some fancy scripting.

      I know some basic scripting but nothing really fancy.

      The only way to determine the correct interface would be to filter on IP, as I see it.

      So maybe a list of interfaces and then for each ethX in the list:

      #!/bin/csh
      
      set nwid = X.X.X
      set list = (eth0 eth1)
      
      foreach eth ($list)
        set ip = `ifconfig $eth | grep inet | awk '{print $2}' | sed 's/addr://' | cut -c-10 `
        if ($ip == $nwid) then
            ifup $eth else
            ifdown $eth
        endif
      end
      

      That would in my case get the network ID of the correct network and other disimilar outputs from the other interfaces in the list which could then be compared to a set value of the correct network ID. Based on that comparison you could then turn on or off the interfaces.

      I’m sure someone else could do something a lot niftier.

      I haven’t tested any of this and it might screw up if the number of interfaces actually present is different from the number in the list.

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz and @Wayne-Workman

      Thanks for the suggestions.

      I tried playing around with grcan.enable0=[0|1] and grcan.enable1=[0|1] as well as grcan.select=[0|1] but none had any effect. The kernel continues to choose the slower link in most cases. Seemed promising, though…

      What I do notice for the first time, though, is that whatever NIC is not chosen is disabled. I hadn’t noticed as I can’t see the backs of the boxes very well. Here it is also obvious that the active NIC changes on occasion, as the LEDs die on the disabled NIC.

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz
      No, they are registered and deployed through tasks. Actually it’s not a question of one NIC being faster than the other - they’re more or less identical mobo dual NICs - as it is the link speed. They’re 100Mbps switch ports on a 100Mbps trunk to the layer 3 switch. It was never intended for large data transfers - just remote access and so on.

      The primary MAC in the host registration is the faster link, so that has no effect, I’m afraid. These are 1Gbps switch ports for the clients and two ports in ether channel for the server.

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz
      Yes, sometimes an image will deploy at 5GB/min - a few minutes later when trying again with the same client it will only deploy at a fraction of that speed…

      Otherwise I agree; I too believe it has to do with the order of the NICs.

      I tried swapping the cables at first to see if it just chose one specific hardware ID first, but that was not the case.

      Since then I’ve done quite a few test deployments on the same eigth machines. Mostly they’ll deploy slowly, but every now and again one will run on the faster NIC, which can be verified by pulling the cables and seeing which one makes it pause.

      I’m not saying it’s arbitrary, but I don’t see a pattern so it seems arbitrary to me. 😉

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      OK - did some thinking. It times out because there is no default gateway set on the secondary link. Setting that it will connect. The problem is, how do I know which network it chooses? I’m getting inconsistent transfer speeds now, average of 5GB/min versus 225MB/min - apparently depending on which NIC it connects through.

      I should mention that inter-VLAN routing is enabled on the layer 3 switch of the primary network. Removing the secondary network from the static route list or pulling the physical link kills it again - this time at trying to send an inventory before deploying.

      If I pull the power on the secondary network they will all deploy at high speeds.
      With the secondary network on (and inter-VLAN routing), some will deploy normally, others slowly - apparently arbitrarily, as the same machines will act differently from task to task.
      It would seem the kernel arbitrarily sets which NIC is eth0 from boot to boot? That would perhaps explain why it would appear to use different NICs.

      If I pull the plug on the secondary network while deploying it stops deploying until plugged back in. So it’s using the “wrong” NIC…

      Anyone ever see something like this?

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz said in Dual NIC clients:

      Sorry, it’s still morning, things got mixed up in my head.

      LOL, tank up on your morning stimulant of choice…

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz - Thanks again.

      How do you mean define which NIC to use in FOG? I see only options for setting the server side NIC… Am I missing something here?

      posted in Linux Problems
      T
      tag
    • RE: Dual NIC clients

      @Quazz - Thanks for the reply.

      You’d be correct in assuming that next-server is set as per default by the FOG installation script.

      If i understand you correctly, your suggestion of trunking would enable the client to connect to the TFTP server on either link? I’d rather not, as the other link is only 100Mbps on some cheap Cisco 2960 SI series.

      Ideally the clients would choose the correct link matching the network ID of the next-server.

      posted in Linux Problems
      T
      tag