Re: [SLUG] {SPAM?} soft RAID1 woes

From: Mario Lombardo (mario@alienscience.com)
Date: Fri Mar 19 2004 - 17:12:50 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, the steps I took:

[hack raidtab]
$ vi /etc/raidtab
raiddev /dev/md0
        raid-level 1
        nr-raid-disks 2
        persistent-superblock 1
        chunk-size 32
        device /dev/hde1
        raid-disk 0
        device /dev/hdf1
        raid-disk 1

raiddev /dev/md1
        raid-level 1
        nr-raid-disks 2
        persistent-superblock 1
        chunk-size 32
        device /dev/hde2
        raid-disk 0
        device /dev/hdf2
        raid-disk 1

$ mdadm --create --verbose /dev/md0 --level=raid1 --raid-devices=2 /dev/hde1
/dev/hdf1

$ mdadm --create --verbose /dev/md1 --level=raid1 --raid-devices=2 /dev/hde2
/dev/hdf2

$mkfs.ext3 -c /dev/md0
$mkfs.ext3 -c /dev/md1

[hack fstab]
$ vi /etc/fstab
/dev/md1 /mnt/raidroot ext3 defaults 0 0
/dev/md0 /mnt/raidboot ext3 defaults 0 0

$mount /mnt/raidboot
.ok
$ mount /mnt/raidroot
.ok

$ mkinitrd -v --with=raid1 /boot/initrdR1-2.4.20-18.8.img
[jdb and ext3 are added by default]

[abbreviated hack for lilo.conf]
$ vi /etc/lilo.conf
$ lilo

$ reboot

- From there, RAID1 mounting craps out upon bootup.

/mario

On Friday 19 March 2004 16:49, Andrew M. Hoerter wrote:
> On Fri, 19 Mar 2004, Mario Lombardo wrote:
> > When I boot, it fails into diagnostic single-user mode. I comment-out
> > the md's in /etc/fstab. I reboot, and when I manually try to mount
> > /mnt/raidboot or /mnt/raidroot after changing fstab, I get the following
> > error:
> >
> > [root@baglady root]# mount /mnt/raidboot/
> > mount: wrong fs type, bad option, bad superblock on /dev/md0,
> > or too many mounted file systems
> > (could this be the IDE device where you in fact use
> > ide-scsi so that sr0 or sda or so is needed?)
> > [root@baglady root]#
> >
> > What do I have to do to get this working upon bootup?
>
> Dumb question, but since you didn't mention it... I assume you created a
> filesystem on these RAID volumes? And if so, does the filesystem type
> field in fstab correspond to what you actually created on disk (e.g. fstab
> uses ext3 and there's an ext3 filesystem on disk)?
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAW3Bi0rzDqf+VzP0RApWRAKCMF569+XJ+DQ6mMMS88CrMqBzefQCghbLW
eCmonS2rp6rzAueX398pYlg=
=mQZN
-----END PGP SIGNATURE-----

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:27:17 EDT