[gentoo-user] Raid1 fstab

2011-04-11 Thread James

Hello,

background
I mostly followed these guides to build a raid1
workstation using (2) 2T seagate drives:
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
http://en.gentoo-wiki.com/wiki/Software_RAID_Install
http://en.gentoo-wiki.com/wiki/RAID/Software

Since I'm just using a very simple partion scheme
raid 1(boot, swap, /) I decided to forgo LVM, for now.
Maybe on the next install, I'll get Dale to coach
me on LVM2 ? 
;-)

Both drives are identical (edited to fit gmane):
Disk identifier: 0xab83344a
   Device Boot Start End  Blocks   Id  System
/dev/sda1   * 2048  526335  262144   fd  Lraid auto
/dev/sda2   52633610573823 5023744   fd  Lraid auto
/dev/sda3   573824  3907029167  1948227672   fd  Lraid auto


OK so my question is does this fstab look ok, workable? improvements?

none/proc   procdefaults 0 0
/dev/cdrom  /mnt/cdrom  autonoauto,rw,user   0 0
shm /dev/shm   tmpfsnodev,nosuid,noexec  0 0
/dev/sdb1 /usr/local/video2  ext4defaults0 1
/dev/md1  /boot  ext4noauto,noatime  1 2
/dev/md3  /  ext4noatime 0 1
/dev/md2  swap   swapdefaults0 0

I did not setup initramfs, as those steps where not 
part of the guides, but googling I did see many places where
initramfs was suggested. thoughts and comments?

http://en.gentoo-wiki.com/wiki/Initramfs

It's my first gentoo software raid.
My email is down; so only post to this list!

hopeful this AM,
James







Re: [gentoo-user] Raid1 fstab

2011-04-11 Thread Joost Roeleveld
On Monday 11 April 2011 13:59:04 James wrote:
 Hello,
 
 background
 I mostly followed these guides to build a raid1
 workstation using (2) 2T seagate drives:
 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
 http://en.gentoo-wiki.com/wiki/Software_RAID_Install
 http://en.gentoo-wiki.com/wiki/RAID/Software
 
 Since I'm just using a very simple partion scheme
 raid 1(boot, swap, /) I decided to forgo LVM, for now.
 Maybe on the next install, I'll get Dale to coach
 me on LVM2 ?
 ;-)
 
 Both drives are identical (edited to fit gmane):
 Disk identifier: 0xab83344a
Device Boot Start End  Blocks   Id  System
 /dev/sda1   * 2048  526335  262144   fd  Lraid auto
 /dev/sda2   52633610573823 5023744   fd  Lraid auto
 /dev/sda3   573824  3907029167  1948227672   fd  Lraid auto
 
 
 OK so my question is does this fstab look ok, workable? improvements?
 
 none/proc   procdefaults 0 0
 /dev/cdrom  /mnt/cdrom  autonoauto,rw,user   0 0
 shm /dev/shm   tmpfsnodev,nosuid,noexec  0 0
 /dev/sdb1 /usr/local/video2  ext4defaults0 1
 /dev/md1  /boot  ext4noauto,noatime  1 2
 /dev/md3  /  ext4noatime 0 1
 /dev/md2  swap   swapdefaults0 0
 
 I did not setup initramfs, as those steps where not
 part of the guides, but googling I did see many places where
 initramfs was suggested. thoughts and comments?
 
 http://en.gentoo-wiki.com/wiki/Initramfs
 
 It's my first gentoo software raid.
 My email is down; so only post to this list!
 
 hopeful this AM,
 James

I don't use an initrd and my OS is on a RAID1-partition.
Eg. that isn't necessary.

About your /etc/fstab, I have some concerns.
One of your RAID-devices is /dev/sda

What is the other one? I hope it isn't /dev/sdb. If it is, you will have 
issues with the /usr/local/video2 mountpoint.

I would suggest using a LABEL for that mountpoint to avoid any possible 
issues.

Apart from that, it looks fine. Please ignore the error-message when 
rebooting/shutting down the system that /dev/md3 can't be stopped. (It is in 
use for the root-partition ( / )

--
Joost



Re: [gentoo-user] Raid1 fstab

2011-04-11 Thread Thanasis
on 04/11/2011 04:59 PM James wrote the following:
 snip...

 Both drives are identical (edited to fit gmane):
 Disk identifier: 0xab83344a
Device Boot Start End  Blocks   Id  System
 /dev/sda1   * 2048  526335  262144   fd  Lraid auto
 /dev/sda2   52633610573823 5023744   fd  Lraid auto
 /dev/sda3   573824  3907029167  1948227672   fd  Lraid auto


 OK so my question is does this fstab look ok, workable? improvements?
 snip...
 /dev/md2  swap   swapdefaults0 0

I guess you have made md2 a RAID0 for swap, right (post the output of:
cat /proc/mdstat)?
I think you don't need to put swap on RAID0.
Just make the swap (in fstab) with the same priority (pri=) like:
/dev/sda2noneswapsw,pri=30 0
/dev/sdb2noneswapsw,pri=30 0
(of course, first stop md2, change the partition ids to 82, and then
mkswap ...)