I started working with raid this week with 2.2.20 + raid patches. I'm using the raid tools that came with RH6x, because the current raidtools don't compile: gcc -O2 -Wall -DMD_VERSION=\""raidtools-0.90"\" -c -o detect_multipath.o detect_multipath.c scsi.c:38: scsi/scsi_ioctl.h: No such file or directory make: *** [scsi.o] Error 1 detect_multipath.c:49: scsi/scsi_ioctl.h: No such file or directory make: *** [detect_multipath.o] Error 1 This isn't my main question, but help with this would be appreciated too. The raid drives are hda+hdg. I have hda marked failed in raidtab and only use it (temporarily) to boot. Somehow I've managed to get my system in a state where it thinks hda is in the raid, yet it doesn't show in mdstat and can't be removed with raidhotremove. The raid stuff looks very useful, but I have gotten into many weird states, with complaints about short reads, file system size doesn't match superblock size/partition size, and this problem of "not in but in". Does anyone know how can I get /dev/hdx to be outta this array? Thanks Jim (I'm on the mailing list) # cat /proc/mdstat (hdax doesn't show up 'cause marked failed) Personalities : [raid1] read_ahead 1024 sectors md1 : active raid1 hdg2[1] 1048704 blocks [2/1] [_U] md2 : active raid1 hdg3[1] 262464 blocks [2/1] [_U] md3 : active raid1 hdg4[1] 58727488 blocks [2/1] [_U] unused devices: <none> [root@ ~]# raidhotremove /dev/md1 /dev/hda2 /dev/md1: can not hot-remove disk: disk not in array! [root@ ~]# mount /dev/hda2 /mnt mount: /dev/hda2 already mounted or /mnt busy # cat /etc/fstab /dev/hda1 /boot ext2 defaults 1 2 /dev/md1 / ext2 defaults 1 1 /dev/md2 swap swap defaults,pri=0 0 0 /dev/md3 /home ext2 defaults 1 2 [root@ ~]# cat /etc/raidtab raiddev /dev/md0 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/hda1 failed-disk 0 device /dev/hdg1 raid-disk 1 raiddev /dev/md1 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/hda2 failed-disk 0 device /dev/hdg2 raid-disk 1 raiddev /dev/md2 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/hda3 failed-disk 0 device /dev/hdg3 raid-disk 1 raiddev /dev/md3 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/hda4 failed-disk 0 device /dev/hdg4 raid-disk 1 - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html