Re: prefered way to update mdadm/mdadm.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 17, 2009 at 02:16:22PM -0700, Timothy D. Lenz wrote:
There seems to be 2 ways to update mdadm.conf. One puts a little more info in and both create duplicate info that msut be removed.
Which is the better way:

mdadm --examine --scan >> /etc/mdadm/mdadm.conf
mdadm --detail --scan >> /etc/mdadm/mdadm.conf

the former will check physical devices for md superblock, and read
information from the found sb.
the latter will query active array for information

I use mdadm -Esc partition | grep ARRAY >> /etc/mdadm/mdadm.conf
to inventory all array whether they are active or not.

I still would suggest checking the content of mdadm.conf after.

L.

--
Luca Berra -- bluca@xxxxxxxxxx
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux