ok...here's my dilemma....
I'm running an FTP box for my school district using ProFTP. I have my configuration exactly the way i want it. There is no anonymous login and each user is chrooted into their home directory. I have a 15GB hard drive (/dev/hda) that is my boot drive, and houses a few local users home directories (basically its insurance to login if my RAID fails). All FTP users have home directories on the /mnt/ftp-raid folder, which is created from two IBM SCSI drives (9.1GB each) in a RAID1 meta-drive setup. However, when booting the linux box, i lose my RAID devices. I can recreate them using mdadm, but i would like them to be created at boot.
Before we beat the obvious to death:
- I have given RAID support to the kernel
- The device has been added to fstab
- When booting, i get an error regarding a bad superblock on the device. I have zeroed the superblocks on both drives several times.
- I am using ext2 as the filesystem on /dev/md1, but it gives me errors (at boot) saying there is no ext2 filesystem found.
- I have created my /etc/mdadm/mdadm.conf file using mdadm --detail --scan >> /etc/mdadm/mdadm.conf
- mdadm is running at boot-up as defined by /etc/rcS.d
- After booting and logging in, i can manually create the device using mdadm and naming the drives manually, but i cannot start the device up as a service and the existing configs.
RVHTC-Debian-FTP:/etc/mdadm# cat mdadm.conf
DEVICE /dev/sda* /dev/sdb*
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=17a455f0:892ec477:49dc5bff:013eb74a
RVHTC-Debian-FTP:/etc/mdadm# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md1 : active raid1 scsi/host0/bus0/target6/lun0/disc scsi/host0/bus0/target4/lun0/disc
8958080 blocks [2/2] [UU]
unused devices: <none>
RVHTC-Debian-FTP:/etc/mdadm# cat /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda10 /home ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda9 /usr/local ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/md1 /mnt/ftp-raid ext2 defaults 0 2
/dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
I can post more code if needed. I just figured that this would get the wheels turning. I've been looking and trying a few new things. Any help would be greatly appreciated.