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


Groups > linux.debian.user > #235889

Re: Add /dev/disk/by-id path to mdadm error emails?

Path csiph.com!4.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Reiner Buehl <reiner.buehl@gmail.com>
Newsgroups linux.debian.user
Subject Re: Add /dev/disk/by-id path to mdadm error emails?
Date Fri, 04 Jun 2021 22:40:01 +0200
Message-ID <CmoLL-2w8-9@gated-at.bofh.it> (permalink)
References <CmhqV-6Fg-5@gated-at.bofh.it> <CmhTX-73G-3@gated-at.bofh.it>
X-Original-To Dan Ritter <dsr@randomstring.org>
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Jun 4 20:37:32 2021
Old-Return-Path <reiner.buehl@gmail.com>
X-Amavis-Spam-Status No, score=-5.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOAM532aG99i7/BwQLW6eddSrzx97GC+Hsnwnfa9bwfnCK4yS+reUEkk zUgK4O9raf80IaIVIRfknxL2WHlI7D0wHlve6xfDsJSuGSQ=
X-Google-SMTP-Source ABdhPJx0Q2peOgvcjFVdNAKSYOwZiKX5GNsF/WccEJ7nrtRTpgQQ3rZDbbrtDFRyfrnCJusDsBomc4x2tx5kCDoomCc=
X-Received by 2002:a05:620a:4003:: with SMTP id h3mr6275052qko.141.1622839036153; Fri, 04 Jun 2021 13:37:16 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/alternative; boundary="0000000000004712b805c3f6a86c"
X-Mailing-List <debian-user@lists.debian.org> archive/latest/776455
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/CAHP2pF-=XCSs9ZRBd1-YEFkO3R+tYTFxjE1i2qp032WPHGFAUQ@mail.gmail.com
Approved robomod@news.nic.it
Lines 94
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-user@lists.debian.org
X-Original-Date Fri, 4 Jun 2021 22:37:06 +0200
X-Original-Message-ID <CAHP2pF-=XCSs9ZRBd1-YEFkO3R+tYTFxjE1i2qp032WPHGFAUQ@mail.gmail.com>
X-Original-References <CAHP2pF-sM_2x6jM7_CM=3k9BvP63rQZ=Jeva3-BQBreMfAZTRw@mail.gmail.com> <20210604131003.exu5kolq55ui7hti@randomstring.org>
Xref csiph.com linux.debian.user:235889

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

That seems perfect. Many thanks!

Am Fr., 4. Juni 2021 um 15:10 Uhr schrieb Dan Ritter <dsr@randomstring.org>:

> Reiner Buehl wrote:
> > Hello all,
> >
> > I have setup mdadm to email me when disks in one of my RAID arrays fail.
> > Unfortunately the email messages only contain the device as /dev/sdb1
> which
> > does not give any hint which of the four identical disks in the array is
> > the affected one.
> > As /dev/sdb1 is only a symbolic link to a device in /dev/disk/by-id and
> > that device contains the serial number of the disk, I was wondering if
> > there is a way to add the /dev/disk/by-id information - or just a ls -l
> > /dev/disk/by-id - to that email that would allow me to see which disk
> > really is the failed one?
>
>
>  --prefer=
>               When mdadm needs to print the name for a device it
>               normally finds the name in /dev which refers to the device
>               and is shortest.  When a path component is given with
>               --prefer mdadm will prefer a longer name if it contains
>               that component.  For example --prefer=by-uuid will
>               prefer a name in a subdirectory of /dev called by-uuid.
>               This functionality is currently only provided by --detail
>               and --monitor.
>
> If you have a cron job to run mdadm -F, this can be added. If
> you have a system service to run mdadm -F in daemon mode, that
> can be edited to include --prefer=by-id
>
> -dsr-
>

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Add /dev/disk/by-id path to mdadm error emails? Reiner Buehl <reiner.buehl@gmail.com> - 2021-06-04 14:50 +0200
  Re: Add /dev/disk/by-id path to mdadm error emails? Dan Ritter <dsr@randomstring.org> - 2021-06-04 15:20 +0200
    Re: Add /dev/disk/by-id path to mdadm error emails? Reiner Buehl <reiner.buehl@gmail.com> - 2021-06-04 22:40 +0200

csiph-web