LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Non-booting RAID1 (https://www.linuxquestions.org/questions/debian-26/non-booting-raid1-389862/)

daemon_14 12-06-2005 11:49 AM

Non-booting RAID1
 
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.

Code:

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
  devices=/dev/sda,/dev/sdb

Code:

RVHTC-Debian-FTP:/etc/mdadm# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md1 : active raid1 scsi/host0/bus0/target6/lun0/disc[1] scsi/host0/bus0/target4/lun0/disc[0]
      8958080 blocks [2/2] [UU]

unused devices: <none>

Code:

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.

Thanks,
Quinn Snyder

daemon_14 12-08-2005 12:10 AM

moderator,
can i possibly get this post bumped to the hardware forum...? I don't want to repost this under the hardware forum, and i feel that might be a better home for this question.

Thanks,
q.


All times are GMT -5. The time now is 02:08 AM.