This has been a bad couple of weeks for hard drives.  Over the break, I
had one hard drive die at home and three at work.

The warranty replacement for my hard drive at home came about five
minutes ago.  I put the new drive in the enclosure and turned on power
to the drive (all of this with the computer running).  I then did the
following:

[EMAIL PROTECTED] echo "scsi add-single-device 6 0 0 0" >/proc/scsi/scsi
[EMAIL PROTECTED] fdisk /dev/sde
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-36481, default 1): 
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-36481, default 36481): 
Using default value 36481

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)

Command (m for help): p

Disk /dev/sde: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1       36481   293033601   fd  Linux raid autodetect

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[EMAIL PROTECTED] mdadm -a /dev/md0 /dev/sde1
mdadm: added /dev/sde1
[EMAIL PROTECTED] cat /proc/mdstat           
Personalities : [raid6] [raid5] [raid4] [raid1] 
md127 : active raid1 sdc2[0] sdd2[1]
      195350328 blocks super 1.2 [2/2] [UU]
      
md0 : active raid5 sde1[4] sdc1[1] sdb1[3] sdd1[2]
      879100608 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]
      [>....................]  recovery =  3.0% (9014144/293033536) 
finish=164.8min speed=28717K/sec
      
unused devices: <none>
[EMAIL PROTECTED]


Anyway, I thought that was very cool.  It's the first time I've used
hot-swap since they added it to the kernel.

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpO9yqzCeKou.pgp
Description: PGP signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to