<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mdadm -- plz help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747138#M22116</link>
    <description>One more question&lt;BR /&gt;1)&lt;BR /&gt;mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;BR /&gt;mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;BR /&gt;&lt;BR /&gt;mdadm --create /dev/md2 --level=0 --raid-devices=2 /dev/md0 /dev/md1&lt;BR /&gt;/dev/md2 is a raid10 array ?&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;BR /&gt;mdadm --create /dev/md1 --level=0 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;BR /&gt;&lt;BR /&gt;mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/md0 /dev/md1&lt;BR /&gt;/dev/md2 is a raid01 array ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Mar 2006 13:05:46 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2006-03-10T13:05:46Z</dc:date>
    <item>
      <title>mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747130#M22108</link>
      <description>Dear Gurus&lt;BR /&gt;&lt;BR /&gt;#mdadm -C /dev/md0 -l 1 -n 2 /dev/hda2 /dev/hdb2&lt;BR /&gt;#mkfs -t ext3 /dev/md0 &lt;BR /&gt;&lt;BR /&gt;1) Now i want to disable/finish Raid-1 Array(/dev/md0), I did the following&lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hdb2&lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hda2&lt;BR /&gt;then,&lt;BR /&gt;#mdadm --manage /dev/md0 -S.&lt;BR /&gt;when I reboot my system, /dev/md0 automatically becomes active.&lt;BR /&gt;#mdadm --detail /dev/md0, shows me the complete statistics/status.&lt;BR /&gt;&lt;BR /&gt;Now i want to disable/finish Raid-1 Array(/dev/md0).&lt;BR /&gt;&lt;BR /&gt;2) I have created two raid-1 arrays&lt;BR /&gt;#mdadm -C /dev/md0 -l 1 -n 2 /dev/hda2 /dev/hdb2&lt;BR /&gt;#mdadm -C /dev/md1 -l 1 -n 2 /dev/hda3 /dev/hdb3&lt;BR /&gt;Now i want to configure 'raid10' what command should i issue ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 08 Mar 2006 12:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747130#M22108</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-08T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747131#M22109</link>
      <description>Use&lt;BR /&gt;&lt;BR /&gt;mdadm /dev/md0 -f /dev/hdb2 -r /dev/hdb2&lt;BR /&gt;mdadm /dev/md0 -f /dev/hda2 -r /dev/hda2&lt;BR /&gt;&lt;BR /&gt;To create a RAID 10 use:&lt;BR /&gt;&lt;BR /&gt;dadm -C /dev/md2 -l 0 -n 2 /dev/md0 /dev/md1</description>
      <pubDate>Wed, 08 Mar 2006 13:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747131#M22109</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-08T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747132#M22110</link>
      <description>Thanks Dear Ivan Ferriera for the help.&lt;BR /&gt;I m not in a trouble, infact i m preparing to configure Software Raid.&lt;BR /&gt;&lt;BR /&gt;Dear, but linux doesnt allow me to remove the last partition/disk from raid-1 array&lt;BR /&gt;i can set faulty both partitions but can only remove one partition, bcause when I try to remove the second partition, system says "device or source is busy"&lt;BR /&gt;&lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hdb2&lt;BR /&gt;#mdadm --manage /dev/md0 -r /dev/hdb2&lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hda2&lt;BR /&gt;Now but when &lt;BR /&gt;#mdadm --manage /dev/md0 -r /dev/hda2&lt;BR /&gt;mdadm: Device or source is busy&lt;BR /&gt;&lt;BR /&gt;2)mdadm -C /dev/md2 -l 0 -n 2 /dev/md0 /dev/md1&lt;BR /&gt;I have tried this, but when i tried to mount /dev/md2, linux ask me to provide Correct Filesystem&lt;BR /&gt;#mount -t ext3 /dev/md2 /mnt .. fails&lt;BR /&gt;so I did the following &lt;BR /&gt;#mkfs -t ext3 /dev/md2&lt;BR /&gt;Now i can mount the /dev/md2, and can work, ok.&lt;BR /&gt;But now i cant remove /dev/md0 nor /dev/md1 from /dev/md2&lt;BR /&gt;#mdadm --manage /dev/md2 -f /dev/md0&lt;BR /&gt;#mdadm --manage /dev/md2 -r /dev/md0&lt;BR /&gt;mdadm: Device or source is busy&lt;BR /&gt;&lt;BR /&gt;#mdadm --manage /dev/md2 -f /dev/md1&lt;BR /&gt;#mdadm --manage /dev/md2 -r /dev/md1&lt;BR /&gt;mdadm: Device or source is busy&lt;BR /&gt;&lt;BR /&gt;thats why i did the following&lt;BR /&gt;#mdadm --manage /dev/md2 -S&lt;BR /&gt;and then try to mount /dev/md0 and/or /dev/md1, linux says me to provide Correct Filesystem.&lt;BR /&gt;&lt;BR /&gt;Plz help</description>
      <pubDate>Wed, 08 Mar 2006 13:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747132#M22110</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-08T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747133#M22111</link>
      <description>1) Try running mdadm /dev/md0 -S  before removing the disks.&lt;BR /&gt;&lt;BR /&gt;2) Create a file system before you try to mount it:&lt;BR /&gt;&lt;BR /&gt;mkfs -t ext3 /dev/md2&lt;BR /&gt;tune2fs -i0 -c0 -m0 /dev/md2&lt;BR /&gt;mount /dev/md2 /mnt/disk</description>
      <pubDate>Wed, 08 Mar 2006 14:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747133#M22111</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-08T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747134#M22112</link>
      <description>&amp;gt;Try running mdadm /dev/md0 -S before &amp;gt;removing the disks.&lt;BR /&gt;It also doesnt works&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Create a file system before you try to mount it.&lt;BR /&gt;yes I do the same.&lt;BR /&gt;--&lt;BR /&gt;After trying several times what I found is that both partitions/disks can set as "faulty", but only a single partition/disk can be removed from raid-1 array(say /dev/md0)&lt;BR /&gt;#mdadm -C /dev/md0 -l 1 -n 2 /dev/hda2 /dev/hdb2&lt;BR /&gt;#mkfs -t ext3 /dev/md0&lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hda2 -r /dev/hda2&lt;BR /&gt;But &lt;BR /&gt;#mdadm --manage /dev/md0 -f /dev/hdb2 -r /dev/hdb2&lt;BR /&gt;mdadm: set /dev/hdb2 faulty in /dev/md0&lt;BR /&gt;md: Cannot remove active disk /dev/hdb2 from md0...&lt;BR /&gt;mdadm:hot remove failed for /dev/hdb2: Device or resource busy&lt;BR /&gt;then&lt;BR /&gt;#mdadm --manage /dev/md0 -S&lt;BR /&gt;Now&lt;BR /&gt;#mdadm --detail /dev/md0&lt;BR /&gt;mdadm: Cannot get array info for /dev/md0&lt;BR /&gt;I just reboot the machine and then &lt;BR /&gt;#mdadm --detail /dev/md0&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Number Major Minor RaidDevice State&lt;BR /&gt;0      3     5    -1       removed&lt;BR /&gt;1      0     0    1       active sync /dev/hdb2&lt;BR /&gt;So the only way I found to completely stop the raid1 array(persistent accros reboot), is to perform the following steps&lt;BR /&gt;1) set the partitions/disks as faulty&lt;BR /&gt;2) Stop the array #mdadm --manage /dev/md0 -S&lt;BR /&gt;3 run fdisk and delete the raid(0xfd) partition&lt;BR /&gt;&lt;BR /&gt;Any Comments/help will be highly appreciated&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Thu, 09 Mar 2006 14:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747134#M22112</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-09T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747135#M22113</link>
      <description>These are the commands that I executed on my test system and worked perfectly for creating a  RAID 1+0.&lt;BR /&gt;&lt;BR /&gt;mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;BR /&gt;mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;BR /&gt;mdadm --create /dev/md2 --level=0 --raid-devices=2 /dev/md0 /dev/md1&lt;BR /&gt;mkfs -t ext3 /dev/md2&lt;BR /&gt;mount /dev/md2 /mnt/disk&lt;BR /&gt;&lt;BR /&gt;The raid device was sucessfully mounted.</description>
      <pubDate>Thu, 09 Mar 2006 15:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747135#M22113</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-09T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747136#M22114</link>
      <description>What I have noted is that md2 (the 0+1 array) won't start after a reboot unless you create the /etc/mdadm.conf file. To do that use:&lt;BR /&gt;&lt;BR /&gt;mdadm --detail --scan &amp;gt; /etc/mdadm.conf&lt;BR /&gt;&lt;BR /&gt;Edit the file, and at the very top add:&lt;BR /&gt;&lt;BR /&gt;DEVICE /dev/sd* /dev/md*&lt;BR /&gt;&lt;BR /&gt;Replace /dev/sd* with /dev/hd* if you use IDE devices.</description>
      <pubDate>Thu, 09 Mar 2006 15:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747136#M22114</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-09T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747137#M22115</link>
      <description>Thanks for GUIDING me.&lt;BR /&gt;I m following ur instructions and success.&lt;BR /&gt;I just want to let u know that I cant stop raid1 arrays, because only 1 partition/disk can be removed from the array(raid1), the other can set as faulty but cant be removed, and if u stop the raid1 array by "--manage device -S" it will stop for the current session only and will be available aftr a reboot.(see my third post)&lt;BR /&gt;But raid5 array is a different story.. In raid5 array all of the partitions/disk can b set faulty, and then removed. and if "--manage device -S", then raid5 will gone completely.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2006 13:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747137#M22115</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-10T13:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747138#M22116</link>
      <description>One more question&lt;BR /&gt;1)&lt;BR /&gt;mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;BR /&gt;mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;BR /&gt;&lt;BR /&gt;mdadm --create /dev/md2 --level=0 --raid-devices=2 /dev/md0 /dev/md1&lt;BR /&gt;/dev/md2 is a raid10 array ?&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;BR /&gt;mdadm --create /dev/md1 --level=0 --raid-devices=2 /dev/sdd1 /dev/sde1&lt;BR /&gt;&lt;BR /&gt;mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/md0 /dev/md1&lt;BR /&gt;/dev/md2 is a raid01 array ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2006 13:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747138#M22116</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-10T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: mdadm -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747139#M22117</link>
      <description>Yes, sometimes, the naming convention may vary, for example, the first can be a RAID 1+0 or 10, and the second would be a RAID 0+1. But is preferred the first one, because in the second option, if one disk fails, your md device, md0 or md1, will fail, and you will have to create again. In the first case, if one disk fails, md0 or md1 will be only reduced, and you only need to recover the damaged disk.</description>
      <pubDate>Fri, 10 Mar 2006 13:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mdadm-plz-help/m-p/3747139#M22117</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-10T13:22:50Z</dc:date>
    </item>
  </channel>
</rss>

