Fedora Linux Support Community & Resources Center
Old 5th October 2011, 10:47 AM
markx Offline
Registered User
Join Date: Apr 2009
Location: Poland
Posts: 5
Mirror (raid 1) root disk with MDADM


iam running fedora 13 on my home server and I have added know a couple of disks and I would like to mirror the root disk with mdadm. Can anyone point me out a god tutorial or a manual how to do this?

Reply With Quote
Old 6th October 2011, 09:45 AM
markx Offline
Registered User
Join Date: Apr 2009
Location: Poland
Posts: 5
Re: Mirror (raid 1) root disk with MDADM

Ok so this is my scenario:

/dev/sda1 /
/dev/sda2 swap

Now I want to mirror these two partitions.

I am doing:

1. sfdisk -d /dev/sda | sfdisk /dev/sdb
2. change the partition ID with fdisk to fd
3. mdadm --create /dev/md0 --metadata=0.90 --level=1 --raid-disks=2 missing /dev/sdb
4. mkfs.ext4 /dev/md0 mount and then rsync the the root disk from /dev/sda1 to /dev/md0
5. mdadm --detail --scan > /etc/mdadm.conf
6. dracut --mdadmconf /boot/initramfs-$(uname -r).img $(uname -r)
7. change fstab on /dev/sda to boot from /dev/md0
8. vi /boot/grub.menu.lst and change the UUID to /dev/md0
9. grub
10. device (hd0) /dev/sdb, root (hd0,0), setup (hd0)

Then I reboot and it fails to boot

Please help
Reply With Quote

disk, mdadm, mirror, raid, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fixing 4 disk mdadm raid justforgetme Servers & Networking 4 23rd March 2011 03:54 PM
Raid mirror with LVM on root = kernel panic podd Using Fedora 10 8th August 2009 12:42 AM
I want to mirror the root disk glumbo Using Fedora 1 29th December 2007 01:05 PM
SELinux broken after root disk mirror micagreenmachin Using Fedora 7 15th May 2007 11:52 PM
Mdadm -- Raid-10 BillT440 Using Fedora 1 7th December 2006 04:29 PM

Current GMT-time: 16:54 (Tuesday, 22-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat