Fedora Linux Support Community & Resources Center
  #1  
Old 1st February 2012, 02:01 AM
jhalbrecht Offline
Registered User
 
Join Date: Jan 2012
Location: Spokane, WA
Posts: 2
windows_7chrome
Convert /boot to raid 1 after fc16 install ?

edit thread 2/1/2012 0509 PST
A day of RTFM and now I understand a lot more about grub2.
Booting fine now.
Well except I keep getting warning when I run grub2-mkconfig / -install
Code:
[root@sombrero ~]# grub2-mkconfig
error: superfluous RAID member (2 found).
error: superfluous RAID member (2 found).
Generating grub.cfg ...

I've recently installed f16 on a pair of identical 750gig sata drives. I created two software raid 1 partitions / and /swap. I created /boot on the first drive and left the remaining disk space on the second physical drive unallocated. This configuration boots and survives updates. I would like to enhance the configuration to allow either drive to boot after the failure of the other.

I created the system in this manner after apparently encountering bug 750794 At the time of encountering this bug I was unsuccessful in attempting to follow the instructions to create the /boot raid partition using the steps outlined. Probably due to my lack of familiarity with the tools I was unable to add to the grub.cfg
Code:
insmod raid
insmod mdraid09
insmod mdraid1x
I implemented the suggestion to make a standard /boot on one of the physical drives and hoped that later I would be able to reconfigure to create a software raid 1 /boot consisting of the functional /boot on the first drive and the identical unallocated drive space on the second physical drive.

I am now looking for guidance on how to accomplish that goal.

fyi:
Code:
uname -a
Linux sombrero 3.2.2-1.fc16.x86_64 #1 SMP Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Code:
[root@sombrero grub2]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,seclabel,size=886844k,nr_inodes=221711,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,seclabel)
/dev/md1 on / type ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=system_u:object_r:mnt_t:s0,seclabel,mode=755)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda3 on /boot type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfs-fuse-daemon on /home/jeffa/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
[root@sombrero grub2]#


---------- Post added at 06:01 PM ---------- Previous post was at 10:43 AM ----------

By reading these resources I've been able to create a raid 1 /boot array I have /md2 mounted at /boot

http://www.howtoforge.com/software-r...ot-debian-etch
https://wiki.archlinux.org/index.php...system_to_RAID

I have a few questions before I attempt to reboot regarding fstab, initramfs, and grub configuration.

Code:
[root@sombrero ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[1]
      2047936 blocks [2/2] [UU]

md1 : active raid1 sdb1[1] sda1[0]
      722331512 blocks super 1.2 [2/2] [UU]
      bitmap: 1/6 pages [4KB], 65536KB chunk

md0 : active raid1 sda2[0] sdb2[1]
      8190964 blocks super 1.2 [2/2] [UU]

unused devices: <none>
[root@sombrero ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          689G   19G  663G   3% /
devtmpfs        867M  4.0K  867M   1% /dev
tmpfs           876M   92K  876M   1% /dev/shm
/dev/md1        689G   19G  663G   3% /
tmpfs           876M   49M  827M   6% /run
tmpfs           876M     0  876M   0% /sys/fs/cgroup
tmpfs           876M     0  876M   0% /media
/dev/md2        2.0G  207M  1.7G  11% /boot
[root@sombrero ~]#
How about the fstab? check the output from mdadm --examine --scan that I used to deduce the UUID to put in fstab

Code:
[root@sombrero ~]# mdadm --examine --scan
ARRAY /dev/md/1 metadata=1.2 UUID=5d0f75a7:f48cea35:a8cc7fbe:ff66fae3 name=sombrero.jeffa.org:1
ARRAY /dev/md/0 metadata=1.2 UUID=acd4ec99:fcf4dc58:dece9066:f0408283 name=sombrero.jeffa.org:0
ARRAY /dev/md2 UUID=70659bfe:b5ce2886:9bd9e8df:1f805439
[root@sombrero ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Jan 27 17:03:08 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=d1bd6407-983a-4724-9229-7c0f456df5a8 /                       ext4    defaults        1 1
# UUID=9be0ca6c-d097-4922-bed2-d650427e6982 /boot                   ext4    defaults        1 2
UUID=70659bfe-b5ce2886-9bd9e8df-1f805439 /boot                   ext4    defaults        1 2
UUID=9928542f-6914-4561-92d5-0c4b356bc408 swap                    swap    defaults        0 0
[root@sombrero ~]#
There is an artifact of my testing and learning on my desktop an icon for: "RAID-ONE-BOOT" Where does it live? How can I remove it?
Code:
[root@sombrero ~]# blkid
/dev/sda1: UUID="5d0f75a7-f48c-ea35-a8cc-7fbeff66fae3" UUID_SUB="10a62d6c-800d-93d8-0b85-ba1feacb3548" LABEL="sombrero.jeffa.org:1" TYPE="linux_raid_member"
/dev/sda2: UUID="acd4ec99-fcf4-dc58-dece-9066f0408283" UUID_SUB="8c371940-94c5-8f80-da8b-0f75b0dfaace" LABEL="sombrero.jeffa.org:0" TYPE="linux_raid_member"
/dev/sda3: UUID="9be0ca6c-d097-4922-bed2-d650427e6982" TYPE="ext4" LABEL="RAID-ONE-BOOT"
/dev/sdb1: UUID="5d0f75a7-f48c-ea35-a8cc-7fbeff66fae3" UUID_SUB="c170853d-c171-eca6-ef31-9337ebd42984" LABEL="sombrero.jeffa.org:1" TYPE="linux_raid_member"
/dev/sdb2: UUID="acd4ec99-fcf4-dc58-dece-9066f0408283" UUID_SUB="cf450899-ac06-1045-2d74-56658fde9e75" LABEL="sombrero.jeffa.org:0" TYPE="linux_raid_member"
/dev/md0: UUID="9928542f-6914-4561-92d5-0c4b356bc408" TYPE="swap"
/dev/md1: LABEL="_Fedora-16-x86_6" UUID="d1bd6407-983a-4724-9229-7c0f456df5a8" TYPE="ext4"
/dev/sdb3: UUID="70659bfe-b5ce-2886-9bd9-e8df1f805439" TYPE="linux_raid_member"
/dev/md2: LABEL="RAID-ONE-BOOT" UUID="9be0ca6c-d097-4922-bed2-d650427e6982" TYPE="ext4"
[root@sombrero ~]#
I'm starting to feel a bit lost while trying to update grub configuration. How can I update the: "initramfs"

Comments, suggestions welcome. Thanks.

Last edited by jhalbrecht; 1st February 2012 at 01:11 PM. Reason: marking solved (mostly)
Reply With Quote
  #2  
Old 3rd February 2012, 12:56 AM
mcsilva Offline
Registered User
 
Join Date: Dec 2009
Posts: 7
linuxfirefox
Re: Convert /boot to raid 1 after fc16 install ?

I recently developped a tool called "raider" to convert a single disk system to RAID 1 and it was successfully tested in a fresh installed fedora 16 (and also 13, 14, 15)
You only have to install the system in a single drive, then add an empty one, install raider and run a simple command. It will do it for you.
If you didn't solve your problem yet, check it in raider.sourceforge.net, maybe it will help you.
Reply With Quote
Reply

Tags
boot, convert, fc16, install, or boot, raid

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
FC16 will not boot dw5533 Installation and Live Media 0 12th January 2012 03:40 PM
can't boot after fresh fc16 install, linux raid-5 santana Hardware & Laptops 4 6th January 2012 07:35 AM
Install w/ RAID, First Boot Failed C4talyst Installation and Live Media 1 12th December 2007 10:55 PM


Current GMT-time: 07:29 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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