Debian and RAID

Jon K plug-discuss@lists.plug.phoenix.az.us
Tue, 8 Oct 2002 22:12:04 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.murty.net/ataraid/ <---very good documentation, used a lot from 
here.  I think this is going to be your biggest help.

I did the same thing, my / is on my ata 133 onboard raid card.  my fstab looks 
like this:

/dev/ataraid/d0p2       /               auto    
defaults,noatime,nodiratime,notail      0       1

but i also had to add a kernel command line option.

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1
        append="ide3=0xd400,0xd002 ide4=0xb800,0xb402"
- From /proc/pci
RAID bus controller: Promise Technology, Inc. PDC20276 IDE (rev 1).
      IRQ 3.
      Master Capable.  Latency=32.  Min Gnt=4.Max Lat=18.
      I/O at 0xd400 [0xd407].
      I/O at 0xd000 [0xd003].
      I/O at 0xb800 [0xb807].
      I/O at 0xb400 [0xb403].
      I/O at 0xb000 [0xb00f].
      Non-prefetchable 32 bit memory at 0xd5800000 [0xd5803fff].

Also, I compiled my own kernel, so I made sure I had all the ata raid drivers 
built into my kernel.

linux:/etc# cat /proc/partitions
major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse 
running use aveq

 114     0   78177280 ataraid/d0 0 0 0 0 0 0 0 0 0 0 0
 114     1    1084356 ataraid/d0p1 0 0 0 0 0 0 0 0 0 0 0
 114     2   77087902 ataraid/d0p2 0 0 0 0 0 0 0 0 0 0 0
  56     0   39088896 hdi 42945 132017 1179302 4694420 67548 212687 1906609 
1922080 -2 104919470 -203789680
  34     0   39088896 hdg 42395 132152 1175694 3437250 66511 216957 1910983 
1835150 -2 104864870 -205133720
  34     1    1084356 hdg1 0 0 0 0 0 0 0 0 0 0 0
  34     2   77087902 hdg2 0 0 0 0 0 0 0 0 0 0 0
  22     0    2608160 hdc 0 0 0 0 0 0 0 0 -29 105140930 1285869526
   3     0   39088896 hda 2 3 16 30 0 0 0 0 -2 105203110 -210406190
   3     1   39078081 hda1 0 0 0 0 0 0 0 0 0 0 0
   3    64   39088896 hdb 837 7098 62850 321890 56 24 640 60 -2 105203040 
- -210084270
   3    65     489951 hdb1 0 0 0 0 0 0 0 0 0 0 0
   3    66   38596162 hdb2 835 7095 62834 321870 56 24 640 60 0 3050 321930

linux:/etc# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/ataraid/d0p2     77085540  19997240  57088300  26% /


On Tuesday 08 October 2002 21:10, Miles Beck wrote:
> > 3 #cat /proc/partitions
> >
> > 4 see if you can see the partition that your new raid device is on
> > (check sizes etc)
>
> I do not have the boot cd but by moving the master drive back to the
> non-raid controller I was able to see the partitions file. Below is what
> you asked for. At this point I have no idea what to do, ;)
>
>  114     0  117220792 ataraid/d0
>  114     1     248976 ataraid/d0p1
>  114     2     996030 ataraid/d0p2
>  114     3    2000092 ataraid/d0p3
>  114     4          1 ataraid/d0p4
>  114     5     248976 ataraid/d0p5
>  114     6    2000061 ataraid/d0p6
>  114     7     248976 ataraid/d0p7
>  114     8     248976 ataraid/d0p8
>  114     9  111225996 ataraid/d0p9
>   33     0  117220824 hde
>   33     1     248976 hde1
>   33     2     996030 hde2
>   33     3    2000092 hde3
>   33     4          1 hde4
>   33     5     248976 hde5
>   33     6    2000061 hde6
>   33     7     248976 hde7
>   33     8     248976 hde8
>   33     9  111225996 hde9
>    3     0  117220824 hda
>    3     1     248976 hda1
>    3     2     996030 hda2
>    3     3    2000092 hda3
>    3     4          1 hda4
>    3     5     248976 hda5
>    3     6    2000061 hda6
>    3     7     248976 hda7
>    3     8     248976 hda8
>    3     9  111225996 hda9
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9o7qkzFstip5OIqgRAm4kAJ9ZUBhF6PUN0EreKNG5gT9jKhFp4QCeL01r
NA7jb6NFbU2hociBUBCjQcY=
=HTvL
-----END PGP SIGNATURE-----