On Fri, 21 Dec 2001 02:04, Tim Kent wrote: > # fdisk /dev/sdb > Command (m for help): t > Partition number (1-8): 1 > Hex code (type L to list codes): fd > Changed system type of partition 1 to fd (Unknown)
I noticed that the 0xfd partition type is defined in the fdisk source in the file i386_sys_types.c, I guess it doesn't apply to SPARC. After more searching - in the 2.4.16 kernel source the relevant kernel code is in genhd.h which appears to be i386-only. The function to autodetect devices that are parts of a RAID is md_autodetect_dev() which is only called from msdos.c and md.c. I think that the call from md.c is for verifying a device that the RAID sub-system already has decided to use. So it seems that software RAID is really only fully functional on Intel! >From briefly examining the code it appears that it wouldn't be THAT difficult to pick a suitable partition identifying mechanism (if there is one) and having a md_autodetect_dev() call after it's recognised, if I owned a SPARC I'd probably give it a go myself. However at the moment I have no access to SPARC hardware, so I've CC'd Neil Brown, hopefully he can add it to a future release. > # mkraid /dev/md0 > handling MD device /dev/md0 > analyzing super-block > disk 0: /dev/sdb1, 2356000kB, raid superblock at 2355904kB > disk 1: /dev/sda1, failed > /dev/md0: Invalid argument > > I have tried running mkraid with the filesystem type set to 83 but this > gives the same error. This is my /etc/raidtab: > > raiddev /dev/md0 > raid-level 1 > nr-raid-disks 2 > nr-spare-disks 0 > chunk-size 4 > persistent-superblock 1 > device /dev/sdb1 > raid-disk 0 > device /dev/sda1 > failed-disk 1 > > raiddev /dev/md1 > raid-level 1 > nr-raid-disks 2 > nr-spare-disks 0 > chunk-size 4 > persistent-superblock 1 > device /dev/sdb2 > raid-disk 0 > device /dev/sda2 > failed-disk 1 -- http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/projects.html Projects I am working on http://www.coker.com.au/~russell/ My home page

