Skip to contentSkip to conversation

Adaptec 1210SA raid issues.

DISCUSSION Steven Haigh 1 participant 3 messages Aug 13, 2004 – Aug 15, 2004 libata

lore
Share & tools
lore
#0 lore raw

Hi all,

Firstly I'm sorry if this has been asked before - I've had a quick skim through the archives but with no joy.

I'm just moving away from the Adaptec drivers for the 1210SA SATA RAID adapter (urgh at being locked into kernel 2.4.20!) to the sata_sil driver - and am having much more luck that I have a few months ago when I tried...

It see's the two drives:

[netwiz@zeus netwiz]$ cat /proc/scsi/scsi Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6Y160M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6Y160M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05

It sees the correct partition size (via fdisk) Disk /dev/sda: 163.9 GB, 163928604672 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 39859 320167386 83 Linux

But I can't mount /dev/sda1... My guessing is that as it's seeing two drives, they're not being combined into one volume - however I could be completely off base here. Is there something else I need to do?

Thanks in advance,
Steven Haigh

#1 lore raw

Further to this, I have found: http://people.redhat.com/~heinzm/sw/dmraid/

I'm installed the RPM, and re-compiled the kernel after the patches required (giving me 2.6.7-mm4) compiled dm-mod as a module. I've modprobed dm-mod so I have:

[root@zeus md]# lsmod
Module Size Used by
dm_mod 59260 0
<trimmed rest of list>

when looking at dmraid however, I get:
[root@zeus md]# dmraid -r
Failed to find sysfs mount point
Carrying on with /dev/
No Software RAID disks

now, what /dev entries does this actually look for? I have a RAID0 set up in the BIOS of the 'raid' card. Ideally, I'd like to rescue this so I don't lose the data on the array.

Is this not supported yet? or have I missed something?

Quoted 32 lines · Steven Haigh

Hi all,

Firstly I'm sorry if this has been asked before - I've had a quick skim through the archives but with no joy.

I'm just moving away from the Adaptec drivers for the 1210SA SATA RAID adapter (urgh at being locked into kernel 2.4.20!) to the sata_sil driver -
and am having much more luck that I have a few months ago when I tried...

It see's the two drives:

[netwiz@zeus netwiz]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6Y160M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6Y160M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05

It sees the correct partition size (via fdisk)
Disk /dev/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     39859 320167386   83  Linux

But I can't mount /dev/sda1... My guessing is that as it's seeing two drives, they're not being combined into one volume - however I could be completely off base here. Is there something else I need to do?

Signature · 4 lines
Signed,
Steven Haigh

I am root. If you see me laughing, you'd better have a backup.
#2 lore raw

Not much more progress playing with this... I know it's software based, but I guess what I'm trying to do is to import/convert the adaptec 'raid' partition into to something I can access as a usable partition/raid.

It's a raid 0 - however as it's laid out on the disks at the moment, I don't believe I can use the kernel raid to mount/recover/convert/anything to it.

[root@zeus root]# fdisk /dev/sda
Command (m for help): p

Disk /dev/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     39859 320167386   83  Linux

Command (m for help): q

[root@zeus root]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help): q

As you can see, SATA disk 1 has a partition that shows as disk size x 2, however disk 2 shows as an invalid partition...

With the existing tools, is there a way to make this usable? or is the only way to set this up to copy the data off using the Adaptec module, and create a new software raid with the kernel raid?

Signature · 4 lines
Signed,
Steven Haigh

I am root. If you see me laughing, you'd better have a backup.