Hans de Goede wrote:
Hi,
What will this do when run with an unpatched mdadm ?
mdadm-3.0-devel3 don't have support for -E --export option for imsm,
so without patch for it we don't have variables: MD_LEVEL, MD_UUID, MD_DEVICES in udev
Below is patch for mdadm.
diff --git a/super-intel.c b/super-intel.c
index b47371e..904b0e4 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -742,6 +742,19 @@ static void brief_examine_super_imsm(struct supertype *st)
}
}
+static void export_examine_super_imsm(struct supertype *st)
+{
+ struct mdinfo info;
+ char nbuf[64];
+
+ getinfo_super_imsm(st, &info);
+ fname_from_uuid(st, &info, nbuf, ':');
+
+ printf("MD_LEVEL=container\n");
+ printf("MD_UUID=%s\n", nbuf+5);
+ printf("MD_DEVICES=%u\n", ((struct intel_super*) st->sb)->anchor->num_disks);
+}
+
static void detail_super_imsm(struct supertype *st, char *homehost)
{
struct mdinfo info;
@@ -4418,6 +4431,7 @@ struct superswitch super_imsm = {
#ifndef MDASSEMBLE
.examine_super = examine_super_imsm,
.brief_examine_super = brief_examine_super_imsm,
+ .export_examine_super = export_examine_super_imsm,
.detail_super = detail_super_imsm,
.brief_detail_super = brief_detail_super_imsm,
.write_init_super = write_init_super_imsm,
Regards,
Hans
On 04/08/2009 03:05 PM, Jacek Danecki wrote:
Here is the series of 8 patches rebased to version: 11.5.0.41-1
Older patches are obsolete.
New udev rule for using mdadm for isw_raid_member
diff --git a/70-anaconda.rules b/70-anaconda.rules
index 374b63a..8520030 100644
--- a/70-anaconda.rules
+++ b/70-anaconda.rules
@@ -46,6 +46,7 @@ ENV{ID_FS_USAGE}=="filesystem|other",
ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk
LABEL="anaconda_mdraid_member"
# probe raid metadata of mdraid member devices
ENV{ID_FS_TYPE}=="linux_raid_member",
IMPORT{program}="$env{ANACBIN}/mdadm --examine --export $tempnode"
+ENV{ID_FS_TYPE}=="isw_raid_member",
IMPORT{program}="$env{ANACBIN}/mdadm --examine --export $tempnode"
# probe metadata of LVM2 physical volumes
ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="$env{ANACBIN}/lvm pvs
--units k --nosuffix --nameprefixes --rows --unquoted --noheadings
-opv_name,pv_uuid,pv_size,vg_name,vg_uuid,pv_pe_count,pv_pe_alloc_count,pe_start
$tempnode"
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list