Diff between 2.4 and 2.6 kernels for raid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a setup script that has worked great for configuring servers in the 2.4 kernels. The scripts works from a pxe load, mounts a bunch of nfs drives and then partitions and formats the drives and later installs a rpms in a chroot mode. This works great for my Fedora Core 1 distribution, but when I changed the rpms for the CentOS it creates the partitions as needed, but when is time to boot the newly created server is gives the following error right after it starts checking the root filesystem

fsck.ext3 /dev/md1
invalid argument while trying to open /dev/md1

and it drops you to a shell to run maintenance on the drive. It passes all the test so I know the partition and formats are ok. Are there differences between the way the 2.4 and 2.6 kernels handled this or anything else to look for?

Here is my configuration.

Thanks

Paul

/etc/fstab
/dev/md1 / ext3 defaults 1 1 /dev/md2 /var ext3 defaults,nosuid 3 3 /dev/md3 swap swap defaults 0 0 /dev/md4 /home ext3 defaults,usrquota,grpquota 4 4 none /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=0620 0 0 none /dev/shm tmpfs defaults 0 0

/etc/raidtab
raiddev               /dev/md1
raid-level            0
nr-raid-disks               1
nr-spare-disks        0
persistent-superblock 1
chunk-size      64
device  /dev/hda1
raid-disk       0

raiddev               /dev/md2
raid-level            0
nr-raid-disks               1
nr-spare-disks        0
persistent-superblock 1
chunk-size      64
device  /dev/hda2
raid-disk       0

raiddev               /dev/md3
raid-level            0
nr-raid-disks               1
nr-spare-disks        0
persistent-superblock 1
chunk-size      64
device  /dev/hda3
raid-disk       0

raiddev               /dev/md4
raid-level            0
nr-raid-disks               1
nr-spare-disks        0
persistent-superblock 1
chunk-size      64
device  /dev/hda4
raid-disk       0

/boot/grub/grub.conf
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title CentOS (2.6.9-11.EL)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.9-11.EL ro root=/dev/hda1 acpi=on
       initrd /boot/initrd-2.6.9-11.EL.img


-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux