<?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: Temperory break mirrored root disk in linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702443#M67482</link>
    <description>This is what would I do. But I want to WARN you that this is my best efford to assist you, I won't warranty that everything works fine. Please use this procedure with caution. I did it several times but is different when you don't touch the system.&lt;BR /&gt;&lt;BR /&gt;To mirror the boot partition:&lt;BR /&gt;&lt;BR /&gt;tar cvf /root/boot.tar /boot&lt;BR /&gt;umount /boot&lt;BR /&gt;umount /boot.bak&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sda&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;fdisk /dev/sdb&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;&lt;BR /&gt;mdadm â  create â  verbose /dev/md3 â  level=1 â  raid-devices=2 /dev/sda1 /dev/sdb1&lt;BR /&gt;&lt;BR /&gt;mdadm -As /dev/md3&lt;BR /&gt;&lt;BR /&gt;mkfs -t ext3 /dev/md3&lt;BR /&gt;tune2fs -m0 -i0 -c0 /dev/md3&lt;BR /&gt;mount /dev/md3 /boot&lt;BR /&gt;cd /&lt;BR /&gt;tar xvf /root/boot.tar&lt;BR /&gt;&lt;BR /&gt;Edit /etc/fstab and update the new /boot device, remove /boot.bak&lt;BR /&gt;&lt;BR /&gt;Install the boot loader on both disks:&lt;BR /&gt;&lt;BR /&gt;grub-install /dev/sda&lt;BR /&gt;grub-install /dev/sdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I also need to know the output of vgdisplay -v to guide you in the steps to replace the disk.</description>
    <pubDate>Thu, 05 Jan 2006 07:20:07 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2006-01-05T07:20:07Z</dc:date>
    <item>
      <title>Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702437#M67476</link>
      <description>Hi Friends,&lt;BR /&gt;&lt;BR /&gt;I am having one ML370 server running RH Linux AS 3.0 with software mirror in root disk. Today copmpaq performace monitor agent showing predective failiure in disk. So plese advice me how to break the mirror and replace the disk without down time.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance&lt;BR /&gt;&lt;BR /&gt;Manoj</description>
      <pubDate>Wed, 04 Jan 2006 09:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702437#M67476</guid>
      <dc:creator>Manoj Sivan</dc:creator>
      <dc:date>2006-01-04T09:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702438#M67477</link>
      <description>I'm not sure if the disks are hot swap, but if so, this is what you should do:&lt;BR /&gt;&lt;BR /&gt;You can use the following command to remove one member from the mirror:&lt;BR /&gt;&lt;BR /&gt;Assume that you have md0(sda1,sdc1), md1(sda2,sdc2) and md2(sda3,sdc3). And sdc is the disk that you want to replace:&lt;BR /&gt;&lt;BR /&gt;mdadm /dev/md0 â  remove /dev/sc1&lt;BR /&gt;mdadm /dev/md1 â  remove /dev/sc2&lt;BR /&gt;mdadm /dev/md2 â  remove /dev/sc3&lt;BR /&gt;&lt;BR /&gt;Check the status of the array with cat /proc/mdstat.&lt;BR /&gt;&lt;BR /&gt;Remove the disk, insert the new disk, and runt rescan-scsi-bus.sh (download from internet &lt;A href="http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh)" target="_blank"&gt;http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then repartition the new disk exactly as the disk that must be mirrored. Change the partition type to software mirror.&lt;BR /&gt;&lt;BR /&gt;Then run the following commands:&lt;BR /&gt;&lt;BR /&gt;mdadm /dev/md0 â  add /dev/sc1&lt;BR /&gt;mdadm /dev/md1 â  add /dev/sc2&lt;BR /&gt;mdadm /dev/md2 â  add /dev/sc3&lt;BR /&gt;&lt;BR /&gt;Hope this helps and good luck.</description>
      <pubDate>Wed, 04 Jan 2006 09:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702438#M67477</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-04T09:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702439#M67478</link>
      <description>1. Watch the status of your md device:&lt;BR /&gt;# mdadm --detail /dev/&lt;YOUR_MD&gt;&lt;BR /&gt;example: #mdadm --detail /dev/md0&lt;BR /&gt;&lt;BR /&gt;2. Manually fail a partition, meaning to take it out of the RAID array:&lt;BR /&gt;# mdadm /dev/md0 -f /dev/&lt;YOUR_PARTITION&gt;&lt;BR /&gt;example: #mdadm /dev/md0 -f /dev/hdb1&lt;BR /&gt;&lt;BR /&gt;3. Replace failed disk&lt;BR /&gt;&lt;BR /&gt;4. Add new disk back to the array&lt;BR /&gt;# mdadm /dev/&lt;YOUR_MD&gt;&lt;BR /&gt; -a /dev/&lt;YOUR_BROKEN_PARTITION&gt;&lt;BR /&gt;example: #mdadm /dev/md0 -a /dev/hdb1&lt;BR /&gt;&lt;BR /&gt;5. Check the status again:&lt;BR /&gt;# mdadm --detail /dev/&lt;YOUR_MD&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;/YOUR_MD&gt;&lt;/YOUR_BROKEN_PARTITION&gt;&lt;/YOUR_MD&gt;&lt;/YOUR_PARTITION&gt;&lt;/YOUR_MD&gt;</description>
      <pubDate>Wed, 04 Jan 2006 10:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702439#M67478</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-01-04T10:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702440#M67479</link>
      <description>Hi Sergejs Svitnevs &lt;BR /&gt;&lt;BR /&gt;Thanx a lot for the suggessions. I missed one thing.only my "/" partition is in the mirror in md0, but /boot is still not mirrored since its is a software raid. I am attaching the output output mdadm --detail for your verification.&lt;BR /&gt;&lt;BR /&gt;Please suggest me how to replace the disk without data loss.&lt;BR /&gt;&lt;BR /&gt;Waiting for your valuable feedback to proceed.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Manoj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 06:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702440#M67479</guid>
      <dc:creator>Manoj Sivan</dc:creator>
      <dc:date>2006-01-05T06:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702441#M67480</link>
      <description>In the output of mdadm --detail /dev/md0 it does not shows the device that previously conformed the array. Please post the cat /proc/mdstat output.&lt;BR /&gt;&lt;BR /&gt;From the other output, it may be that the device is /dev/sda3. But /dev/sda is also used in the other RAID devices and also is your /boot partition.&lt;BR /&gt;&lt;BR /&gt;BTW, you can mirror the boot partition also.&lt;BR /&gt;&lt;BR /&gt;From that output, it seems that only one partition of /dev/sda detected as failed. I'm afraid that if you replace the device, as your /boot is not mirrored, you may need additional steps to boot the system, and re-install the boot loader. This could make the replacement of the disk not too easy.</description>
      <pubDate>Thu, 05 Jan 2006 06:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702441#M67480</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-05T06:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702442#M67481</link>
      <description>Hi Ivan,&lt;BR /&gt;&lt;BR /&gt;The failed partition in mdadm --detail /dev/md0 is /dev/sda3. Attaching is the contents of /proc/mdstat file.&lt;BR /&gt;&lt;BR /&gt;[root@fwsvr4 root]# cat /proc/mdstat&lt;BR /&gt;Personalities : [raid1]&lt;BR /&gt;read_ahead 1024 sectors&lt;BR /&gt;Event: 2&lt;BR /&gt;md0 : active raid1 sdb3[1]&lt;BR /&gt;      40162432 blocks [2/1] [_U]&lt;BR /&gt;&lt;BR /&gt;md1 : active raid1 sdb4[1] sda4[0]&lt;BR /&gt;      99032576 blocks [2/2] [UU]&lt;BR /&gt;&lt;BR /&gt;unused devices: &lt;NONE&gt;&lt;BR /&gt;[root@fwsvr4 root]#&lt;BR /&gt;&lt;BR /&gt;============================================&lt;BR /&gt;So how can i add boot boot also in another RAID?. How should i proceed in this situation ?&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;&lt;BR /&gt;manoj&lt;BR /&gt;&lt;/NONE&gt;</description>
      <pubDate>Thu, 05 Jan 2006 06:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702442#M67481</guid>
      <dc:creator>Manoj Sivan</dc:creator>
      <dc:date>2006-01-05T06:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702443#M67482</link>
      <description>This is what would I do. But I want to WARN you that this is my best efford to assist you, I won't warranty that everything works fine. Please use this procedure with caution. I did it several times but is different when you don't touch the system.&lt;BR /&gt;&lt;BR /&gt;To mirror the boot partition:&lt;BR /&gt;&lt;BR /&gt;tar cvf /root/boot.tar /boot&lt;BR /&gt;umount /boot&lt;BR /&gt;umount /boot.bak&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sda&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;fdisk /dev/sdb&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;&lt;BR /&gt;mdadm â  create â  verbose /dev/md3 â  level=1 â  raid-devices=2 /dev/sda1 /dev/sdb1&lt;BR /&gt;&lt;BR /&gt;mdadm -As /dev/md3&lt;BR /&gt;&lt;BR /&gt;mkfs -t ext3 /dev/md3&lt;BR /&gt;tune2fs -m0 -i0 -c0 /dev/md3&lt;BR /&gt;mount /dev/md3 /boot&lt;BR /&gt;cd /&lt;BR /&gt;tar xvf /root/boot.tar&lt;BR /&gt;&lt;BR /&gt;Edit /etc/fstab and update the new /boot device, remove /boot.bak&lt;BR /&gt;&lt;BR /&gt;Install the boot loader on both disks:&lt;BR /&gt;&lt;BR /&gt;grub-install /dev/sda&lt;BR /&gt;grub-install /dev/sdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I also need to know the output of vgdisplay -v to guide you in the steps to replace the disk.</description>
      <pubDate>Thu, 05 Jan 2006 07:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702443#M67482</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-05T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702444#M67483</link>
      <description>Hi Ivan,&lt;BR /&gt;&lt;BR /&gt;Thannks a lot for the help. Kindly clarify the below commands suggested, i am not very clear.&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sda&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;fdisk /dev/sdb&lt;BR /&gt;Change parititon 1 to software RAID&lt;BR /&gt;&lt;BR /&gt;What option i need to slect to change this ??&lt;BR /&gt;&lt;BR /&gt;mdadm Ã¢Â Â create Ã¢Â Â verbose /dev/md3 Ã¢Â Â level=1 Ã¢Â Â raid-devices=2 /dev/sda1 /dev/sdb1&lt;BR /&gt;&lt;BR /&gt;The command is having some jung charactor. not clear.Please post again.&lt;BR /&gt;&lt;BR /&gt;Below is the output of vgdisplay.&lt;BR /&gt;=============================================&lt;BR /&gt;[root@fwsvr4 root]# vgdisplay -v&lt;BR /&gt;--- Volume group ---&lt;BR /&gt;VG Name               vg00&lt;BR /&gt;VG Access             read/write&lt;BR /&gt;VG Status             available/resizable&lt;BR /&gt;VG #                  0&lt;BR /&gt;MAX LV                256&lt;BR /&gt;Cur LV                1&lt;BR /&gt;Open LV               1&lt;BR /&gt;MAX LV Size           2 TB&lt;BR /&gt;Max PV                256&lt;BR /&gt;Cur PV                1&lt;BR /&gt;Act PV                1&lt;BR /&gt;VG Size               546.88 GB&lt;BR /&gt;PE Size               32 MB&lt;BR /&gt;Total PE              17500&lt;BR /&gt;Alloc PE / Size       5120 / 160 GB&lt;BR /&gt;Free  PE / Size       12380 / 386.88 GB&lt;BR /&gt;VG UUID               KW8Ff2-PGXf-7Kov-XwWv-SpNJ-K30m-SGbwzI&lt;BR /&gt;&lt;BR /&gt;--- Logical volume ---&lt;BR /&gt;LV Name                /dev/vg00/lvol1&lt;BR /&gt;VG Name                vg00&lt;BR /&gt;LV Write Access        read/write&lt;BR /&gt;LV Status              available&lt;BR /&gt;LV #                   1&lt;BR /&gt;# open                 1&lt;BR /&gt;LV Size                160 GB&lt;BR /&gt;Current LE             5120&lt;BR /&gt;Allocated LE           5120&lt;BR /&gt;Allocation             next free&lt;BR /&gt;Read ahead sectors     1024&lt;BR /&gt;Block device           58:0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--- Physical volumes ---&lt;BR /&gt;PV Name (#)           /dev/cciss/c0d0p1 (1)&lt;BR /&gt;PV Status             available / allocatable&lt;BR /&gt;Total PE / Free PE    17500 / 12380&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@fwsvr4 root]#&lt;BR /&gt;&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;&lt;BR /&gt;Manoj</description>
      <pubDate>Thu, 05 Jan 2006 07:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702444#M67483</guid>
      <dc:creator>Manoj Sivan</dc:creator>
      <dc:date>2006-01-05T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Temperory break mirrored root disk in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702445#M67484</link>
      <description>To change the partition type, use the t command in fdisk (toogle), and select fd as the code.&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sda&lt;BR /&gt;t&lt;BR /&gt;1&lt;BR /&gt;fd&lt;BR /&gt;&lt;BR /&gt;fdisk /dev/sdb&lt;BR /&gt;t&lt;BR /&gt;1&lt;BR /&gt;fd&lt;BR /&gt;&lt;BR /&gt;The command should be:&lt;BR /&gt;&lt;BR /&gt;mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1&lt;BR /&gt;&lt;BR /&gt;To replace the disk in your current configuration:&lt;BR /&gt;&lt;BR /&gt;Considering the output of your commands, to replace /dev/sda you should stop using the device:&lt;BR /&gt;&lt;BR /&gt;1- Umounting /boot. You must save the content of this partition to restore after the disk replacement because this partition is not on a raid device.&lt;BR /&gt;umount /boot&lt;BR /&gt;&lt;BR /&gt;2- Manually remove sda4 from /dev/md1.&lt;BR /&gt;mdadm /dev/md1 --remove /dev/sda4&lt;BR /&gt;&lt;BR /&gt;Your volume group is on a hardware raid device so nothing has to be done there.&lt;BR /&gt;&lt;BR /&gt;3- If you will use the same disk model, save the current partition table.&lt;BR /&gt;sfdisk â  d /dev/hda &amp;gt; /tmp/partitions &lt;BR /&gt;&lt;BR /&gt;4- Remove the disk (if hot swap capable), insert the new disk and run rescan-scsi-bus.sh&lt;BR /&gt;&lt;BR /&gt;5- Restore the partition table.&lt;BR /&gt;sfdisk /dev/hdc &amp;lt; /tmp/partitions&lt;BR /&gt;&lt;BR /&gt;6- Create a file system for /boot.&lt;BR /&gt;mkfs -t ext3 /dev/sda1&lt;BR /&gt;&lt;BR /&gt;7- Restore /boot.&lt;BR /&gt;cd /&lt;BR /&gt;tar xvf /root/boot.tar&lt;BR /&gt;&lt;BR /&gt;8- Install the boot loader.&lt;BR /&gt;grub-install /dev/hda&lt;BR /&gt;&lt;BR /&gt;9- Add the devices to their respective raid device.&lt;BR /&gt;&lt;BR /&gt;mdadm /dev/md0 --add /dev/sda1&lt;BR /&gt;mdadm /dev/md1 --add /dev/sda4&lt;BR /&gt;&lt;BR /&gt;Please remember to assign points if this helps. That motivates me.&lt;BR /&gt;&lt;BR /&gt;Good luck.</description>
      <pubDate>Thu, 05 Jan 2006 09:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/temperory-break-mirrored-root-disk-in-linux/m-p/3702445#M67484</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-05T09:33:13Z</dc:date>
    </item>
  </channel>
</rss>

