On Fri, 5 Feb 1999, D. Lance Robinson wrote:

> Maybe you could rig a switch in a drive power cable to kill the 12volt
> line. Or you could make a power cable extention with a switch in it.
> Then you could remove it once done testing.
> 
> Killing the 12volt line will effectively break the drive. It would be
> interesting to see how various drives handle their error reporting.

I just recently (last Sun) set up a combo RAID 1 and RAID 5 setup and did
some crash testing with only a few test files from /usr/local on the
arrays. I just yanked the power cable from the drive. The end result was
pretty hairy but I did manage to recover all my data after replacing the
unplugged drive with another of exact same geometry. Some of my files
ended up in lost+found. I think part of the problem was that I have
mix/matched partitions. Does anyone else have some recommended testing
procedure? Below are my raidtab entries to illustrate my setup.

In hindsight I would probably not mix raid 1 & 5 on the same drives. The
reason I did this was to utilize max space with my current partitioning
scheme without using a root raid setup.

-Gary

# /etc/raidtab

raiddev /dev/md0
          
raid-level              5
nr-raid-disks           3
nr-spare-disks          0
parity-algorithm        left-symmetric
chunk-size              512

device                  /dev/sda3
raid-disk               0
device                  /dev/sdb2
raid-disk               1
device                  /dev/sdc2
raid-disk               2

raiddev /dev/md1

raid-level              1
nr-raid-disks           2
nr-spare-disks          0

device                  /dev/sdb1
raid-disk               0
device                  /dev/sdc1
raid-disk               1

# fdisk output for /dev/sda

Disk /dev/sda: 255 heads, 63 sectors, 554 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start      End   Blocks   Id  System
/dev/sda1             1       29   232911   83  Linux native
/dev/sda2            30       42   104422+  82  Linux swap
/dev/sda3            43      554  4112640   83  Linux native

# fdisk output for /dev/sdb

Disk /dev/sdb: 255 heads, 63 sectors, 554 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start      End   Blocks   Id  System
/dev/sdb1             1       42   337333+  83  Linux native
/dev/sdb2            43      554  4112640   83  Linux native

# fdisk output for /dev/sdc

Disk /dev/sdc: 255 heads, 63 sectors, 554 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start      End   Blocks   Id  System
/dev/sdc1             1       42   337333+  83  Linux native
/dev/sdc2            43      554  4112640   83  Linux native


---
hack together /vt./ 
To throw something together so it will work. Unlike `kluge together' or
`cruft together,' this does not necessarily have negative connotations.

Reply via email to