Gentoo Archives: gentoo-user

From: Thanasis <thanasis@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Raid1 & fstab
Date: Mon, 11 Apr 2011 17:42:23
Message-Id: 4DA33D1B.7020006@asyr.hopto.org
In Reply to: [gentoo-user] Raid1 & fstab by James
1 on 04/11/2011 04:59 PM James wrote the following:
2 > snip...
3 >
4 > Both drives are identical (edited to fit gmane):
5 > Disk identifier: 0xab83344a
6 > Device Boot Start End Blocks Id System
7 > /dev/sda1 * 2048 526335 262144 fd Lraid auto
8 > /dev/sda2 526336 10573823 5023744 fd Lraid auto
9 > /dev/sda3 573824 3907029167 1948227672 fd Lraid auto
10 >
11 >
12 > OK so my question is does this fstab look ok, workable? improvements?
13 > snip...
14 > /dev/md2 swap swap defaults 0 0
15 >
16 I guess you have made md2 a RAID0 for swap, right (post the output of:
17 cat /proc/mdstat)?
18 I think you don't need to put swap on RAID0.
19 Just make the swap (in fstab) with the same priority (pri=) like:
20 /dev/sda2 none swap sw,pri=3 0 0
21 /dev/sdb2 none swap sw,pri=3 0 0
22 (of course, first stop md2, change the partition ids to 82, and then
23 mkswap ...)

Replies

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