On Wed, 11 Sep 2013 09:40:23 +0200 "Francois Billard" <francois.billard@xxxxxxxxxx> wrote: > We want to embed raid management in our application. But we want a better > solution if it exists rather than parsing the output of mdadm which is error > prone. > Is there a solution or should i write kilometer of regexp ? :) The --export option of --detail and --examine should provide a lot of the important data in usable format. If there is something missing that you need I will certainly consider adding it. Depending on what exactly you want, you might be able to fish it out of /sys/block/mdXX/md/* NeilBrown > > -----Message d'origine----- > De : linux-raid-owner@xxxxxxxxxxxxxxx > [mailto:linux-raid-owner@xxxxxxxxxxxxxxx] De la part de NeilBrown > Envoyé : mercredi 11 septembre 2013 01:49 > À : Francois Billard > Cc : linux-raid@xxxxxxxxxxxxxxx > Objet : Re: Managing mdam > > On Tue, 10 Sep 2013 10:03:23 +0200 Francois Billard > <francois.billard@xxxxxxxxxx> wrote: > > > Hi, > > > > Is it possible to manage mdadm from an external point of view ? with a > > library with bindings in some language (Python) for example ? > > Thanks in advance > > > > Regards, > > Francois > > Only by running mdadm in a separate process and passing appropriate > arguments. > > Is there something particular that you wanted to do? > > NeilBrown
Attachment:
signature.asc
Description: PGP signature