Menu

ocs_prerun dhclient bond0 Not Working

2024-05-02
2024-05-23
  • diagguru123

    diagguru123 - 2024-05-02

    I am trying to set up a preconfigured live boot clonezilla disk with bonded network of eth0 & eth1. Using the "ocs_prerun="dhclient -v bond0" it throws an error "cannot find device "bond0"". Even using an unmodifed live boot and using the TUI to do it manually, I still get the same error on multiple different machines. The option bond0 does not appear to work. I know the" dhclient -v eth0" or "dhclient -v eth1" works with my ocs_preruns configurations, i just want to up the cloning speed over the network for this client machine.

    I have tested this with 20240116 mantic amd64 ubuntu & an older version debian 3.0.2-21-amd64. Problem persists with both versions.

    Any ideas?

     
  • diagguru123

    diagguru123 - 2024-05-03

    I have a further update, I located an old clonezilla usb I made thats an even older version of Clonezilla debian i686 11-2-21 date, bond0 works as intended with this version. Appears to be a possible bug with newer versions?

    However this version wont work in my case- because I need to have the ability to image nvme drives quickly, as older versions dont have the "-edio"

     

    Last edit: diagguru123 2024-05-03
  • diagguru123

    diagguru123 - 2024-05-06

    ^bump

     
  • Steven Shiau

    Steven Shiau - 2024-05-07

    Thanks for your feedback. I confirmed this issue. We will fix it asap.

    Steven

     
    👍
    1
  • Steven Shiau

    Steven Shiau - 2024-05-12

    Please give testing Clonezilla live >= 3.1.2-26 or 20240511-* a try.
    This issue should have been fixed.
    Please let us know the result.
    Thanks.

    Steven

     
    • diagguru123

      diagguru123 - 2024-05-20

      Sorry about the late response, I was away. This morning I have tested this version.

      So TUI bond0 works as intended. However, when automating it, my ocs_prerun of "dhclient -v bond0" still fails and gives the same error as before of 'No such device'. This was tested with 20240511 Mantic.

      Thanks!

       
  • Steven Shiau

    Steven Shiau - 2024-05-21

    Have you run any command in ocs_prerun* to bond your network devices?
    By default, as Clonezilla live boots, it does not bond any device. You have to bond them first.

    Steven

     
    • diagguru123

      diagguru123 - 2024-05-21

      "dhclient -v bond0" is set as my first ocs_prerun1, I was assuming that bond0 could be used in the same manner as using "dhclient -v eth0".

      Referencing this, https://wiki.debian.org/Bonding From what I understand how bonding works, bond0 if referenced by a config file? How does one update that if its a live boot environment then for automation? Unless there is a different method to just, predefine which network adapters to use, such as eth0 & eth1.

       
  • Steven Shiau

    Steven Shiau - 2024-05-21

    Before you use "dhclient -v bond0", you have to create the NIC bond0, telling the system which NICs will be used for bond0.
    You can refer to this doc:
    https://backdrift.org/manage-linux-bonding-without-ifenslave-using-sysfs/
    In Clonezilla, the program "/usr/sbin/ocs-live-nicbonding" is used to create that. You can refer to its content. It's a shell script.

    Steven

     
    👍
    1
  • Steven Shiau

    Steven Shiau - 2024-05-23

    I should be more specific, actually you can make it like:
    ocs_prerun1="ocs-live-nicbonding eth0 eth1" ocs_prerun2="dhclient -v bond0"

    Steven

     
    ❤️
    1
    • diagguru123

      diagguru123 - 2024-05-23

      Thank you! Funny enough i was just typing this, That is actually what i ended up using except I add in a sleep command between each prerun.

      What I ended up using in my prerun:
      ocs_prerun1="sudo /usr/sbin/ocs-live-nicbonding eth0 eth1" ocs_prerun2="sleep 3" ocs_prerun3="dhclient -v bond0"

      Much appreciated Steven! Keep up the good work!

       
      👍
      1
  • Steven Shiau

    Steven Shiau - 2024-05-23

    Enjoy Clonezilla!

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB