Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1477483

Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave from a bond, with active usage.

From Jiri Pirko <jiri@resnulli.us>
Newsgroups linux.kernel
Subject Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave from a bond, with active usage.
Date 2016-09-06 17:00 +0200
Message-ID <seq0V-3kC-17@gated-at.bofh.it> (permalink)
References <sel1g-9w-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Tue, Sep 06, 2016 at 11:34:30AM CEST, jasminder.kaur@hpe.com wrote:
>From: "Kaur, Jasminder" <jasminder.kaur@hpe.com>
>
>If a bond is in use such as with IP address configured, removing it
>can result in application disruptions. If bond is used for cluster
>communication or network file system interfaces, removing it can cause
>system down time.
>
>An additional write option “?-” is added to sysfs bond interfaces as
>below, in order to prevent accidental deletions while bond is in use.
>In the absence of any usage, the below option proceeds with bond deletion.
>“ echo "?-bondX" > /sys/class/net/bonding_masters “ .
>If usage is detected such as an IP address configured, deletion is
>prevented with appropriate message logged to syslog.
>
>In the absence of any usage, the below option proceeds with deletion of
>slaves from a bond.
>“ echo "?-enoX" > /sys/class/net/bondX/bonding/slaves “ .
>If usage is detected such as an IP address configured on bond, deletion
>is prevented if the last slave is being removed from bond.
>An appropriate message is logged to syslog.

NACK

sysfs bonding iface should die in peace, don't poke in it.

Either fix you application or fix you configuration flow. Don't do this
in kernel.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] bonding: Prevent deletion of a bond, or the last slave from a bond, with active usage. "Kaur, Jasminder" <jasminder.kaur@hpe.com> - 2016-09-06 11:40 +0200
  Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave  from a bond, with active usage. Jiri Pirko <jiri@resnulli.us> - 2016-09-06 17:00 +0200
  Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave from a bond, with active usage. Jay Vosburgh <jay.vosburgh@canonical.com> - 2016-09-06 17:10 +0200
    Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave  from a bond, with active usage. Jiri Pirko <jiri@resnulli.us> - 2016-09-08 17:20 +0200
      Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave  from a bond, with active usage. Jiri Pirko <jiri@resnulli.us> - 2016-09-09 08:40 +0200
    Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave  from a bond, with active usage. Stephen Hemminger <stephen@networkplumber.org> - 2016-09-09 03:00 +0200

csiph-web