Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Raid1 & fstab
Date: Mon, 11 Apr 2011 14:18:56
Message-Id: 20110411141741.E13873AE9@data.antarean.org
In Reply to: [gentoo-user] Raid1 & fstab by James
1 On Monday 11 April 2011 13:59:04 James wrote:
2 > Hello,
3 >
4 > background
5 > I mostly followed these guides to build a raid1
6 > workstation using (2) 2T seagate drives:
7 > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
8 > http://en.gentoo-wiki.com/wiki/Software_RAID_Install
9 > http://en.gentoo-wiki.com/wiki/RAID/Software
10 >
11 > Since I'm just using a very simple partion scheme
12 > raid 1(boot, swap, /) I decided to forgo LVM, for now.
13 > Maybe on the next install, I'll get Dale to coach
14 > me on LVM2 ....?
15 > ;-)
16 >
17 > Both drives are identical (edited to fit gmane):
18 > Disk identifier: 0xab83344a
19 > Device Boot Start End Blocks Id System
20 > /dev/sda1 * 2048 526335 262144 fd Lraid auto
21 > /dev/sda2 526336 10573823 5023744 fd Lraid auto
22 > /dev/sda3 573824 3907029167 1948227672 fd Lraid auto
23 >
24 >
25 > OK so my question is does this fstab look ok, workable? improvements?
26 >
27 > none /proc proc defaults 0 0
28 > /dev/cdrom /mnt/cdrom auto noauto,rw,user 0 0
29 > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
30 > /dev/sdb1 /usr/local/video2 ext4 defaults 0 1
31 > /dev/md1 /boot ext4 noauto,noatime 1 2
32 > /dev/md3 / ext4 noatime 0 1
33 > /dev/md2 swap swap defaults 0 0
34 >
35 > I did not setup initramfs, as those steps where not
36 > part of the guides, but googling I did see many places where
37 > initramfs was suggested. thoughts and comments?
38 >
39 > http://en.gentoo-wiki.com/wiki/Initramfs
40 >
41 > It's my first gentoo software raid.....
42 > My email is down; so only post to this list!
43 >
44 > hopeful this AM,
45 > James
46
47 I don't use an initrd and my OS is on a RAID1-partition.
48 Eg. that isn't necessary.
49
50 About your /etc/fstab, I have some concerns.
51 One of your RAID-devices is /dev/sda
52
53 What is the other one? I hope it isn't /dev/sdb. If it is, you will have
54 issues with the "/usr/local/video2" mountpoint.
55
56 I would suggest using a LABEL for that mountpoint to avoid any possible
57 issues.
58
59 Apart from that, it looks fine. Please ignore the error-message when
60 rebooting/shutting down the system that /dev/md3 can't be stopped. (It is in
61 use for the root-partition ( / )
62
63 --
64 Joost

Replies

Subject Author
[gentoo-user] Re: Raid1 & fstab James <wireless@×××××××××××.com>