ARCHIVE
LinuxMCE Forums
May 22, 2013, 07:02:39 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: how to make raid1 for /home directory ?  (Read 778 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: February 09, 2006, 11:16:32 pm »

Hi,

I cannot setup Raid1 as supplement for few more important directories in /home.

I followed this procedure :
Code:
mdadm --zero-superblock /dev/sda1
mdadm --zero-superblock /dev/sdb1

mdadm --create
/dev/md0 --auto --verbose  --chunk=4 --level=1 --raid-devices=2 /dev/sda1
/dev/sdb1

mkfs.ext3 /dev/md0

echo "DEVICES /dev/sda1 /dev/sdb1" > /etc/mdadm/mdadm.conf
mdadm --brief --detail --verbose /dev/md0 >> /etc/mdadm/mdadm.conf



then added this entry into fstab :
Code:
/dev/md0       /raid1           ext3    defaults,user_xattr 0       2



then added two kernel modules to load : raid1, sd_mod

but after reboot - it stops in console on fsck saying :
fsck.ext3: Invalid argument while trying to open /dev/md0
Code:

/dev/md0:
The superblock could not be read or does not descibe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt. and you might try running e2fsck with an alternate
superblock:
 e2fsck -b 8193 <device>


Also when I try : mount /raid1 it gets same error.
But if I do this :
 
Code:
mdadm --create
/dev/md0 --auto --verbose  --chunk=4 --level=1 --raid-devices=2 /dev/sda1
/dev/sdb1


then mount /raid1 works.... I just cannot get raid1 to start by it self...

any advice ?

Thanks in advance,

regards,

Rob.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: March 01, 2006, 11:27:32 am »

You are getting that error because the raid devices where not enabled at boot. I fixed that in our svn and the problem should go away as soon as you update your sysv-rc package.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.