Re: Swapping Drives on RAID?

2000-01-11 Thread Andreas Trottmann

On Mon, Jan 10, 2000 at 11:16:27AM -0700, Scott Patten wrote:

 1 - I have a raid1 consisting of 2 drives.  For strange
 historical reasons one is SCSI and the other IDE.  Although
 the IDE is fairly fast the SCSI is much faster and since I
 now have another SCSI drive to add, I would like to replace
 the IDE with the SCSI.  Can I unplug the IDE drive, run in
 degraded mode, edit the raid.conf and somehow mkraid
 without loosing data or do I need to restore from tape.
 BYW, I'm using 2.2.13ac1.

I assume you configured your raid to "auto-start", i.e. you mkraid'ed it
with persistent_superblock set to 1, and set all the partition types to$
0xfd. If not, please tell me so and we'll work out what you have to do.

But in the case of auto-starting raid, it's quite easy, but a bit lengthy 
to explain:

* halt your computer
* remove the IDE drive (keep it in a safe place, in case I screwed up :) )
* attach the second SCSI drive
* boot. Your /dev/md devices should come up fully useable, but in
  degraded mode
* partition the second SCSI drive exactly like the first one
* for each md device, "raidhotadd" the new disk to it.
  Assuming you have /dev/md5 that consisted of /dev/sda5 and /dev/hda5
  (which is now removed), and you partitoined /dev/sdb like /dev/sda, do

  raidhotadd /dev/md5 /dev/sdb5

  It's actually quite simple, but difficult to explain.
* check /proc/mdstat. It should show that the devices are being resynced
* if you are finished, and everything works, be sure to change
  /etc/raidtab to reflect your new settings.

 2 - Which is better, 2.2.13ac3 or a patched 2.2.14?  Will
 there be a 2.2.14ac series?  Is there a place besides this
 list with this kind of information?

I've been using a patched 2.2.14 for some days without any problems.

Only Alan Cox knows if there will be a 2.2.14ac. He usually writes his
intentions into his diary, http://www.linux.org.uk/diary/ 

-- 
Andreas Trottmann [EMAIL PROTECTED]



Re: Swapping Drives on RAID?

2000-01-11 Thread D. Lance Robinson

Scott,

1.  Use raidhotremove to take out the IDE drive.  Example:
raidhotremove /dev/md0 /dev/hda5
2.  Use raidhotadd to add the SCSI drive.  Example: raidhotadd /dev/md0
/dev/sda5
3.  Correct your /etc/raidtab file with the changed device.

 Lance.

Scott Patten wrote:

 I'm sorry if this is covered somewhere.  I couldn't find it.

 1 - I have a raid1 consisting of 2 drives.  For strange
 historical reasons one is SCSI and the other IDE.  Although
 the IDE is fairly fast the SCSI is much faster and since I
 now have another SCSI drive to add, I would like to replace
 the IDE with the SCSI.  Can I unplug the IDE drive, run in
 degraded mode, edit the raid.conf and somehow mkraid
 without loosing data or do I need to restore from tape.
 BYW, I'm using 2.2.13ac1.




Swapping Drives on RAID?

2000-01-10 Thread Scott Patten

I'm sorry if this is covered somewhere.  I couldn't find it.

1 - I have a raid1 consisting of 2 drives.  For strange
historical reasons one is SCSI and the other IDE.  Although
the IDE is fairly fast the SCSI is much faster and since I
now have another SCSI drive to add, I would like to replace
the IDE with the SCSI.  Can I unplug the IDE drive, run in
degraded mode, edit the raid.conf and somehow mkraid
without loosing data or do I need to restore from tape.
BYW, I'm using 2.2.13ac1.

2 - Which is better, 2.2.13ac3 or a patched 2.2.14?  Will
there be a 2.2.14ac series?  Is there a place besides this
list with this kind of information?

Thank you,

Scott


--
Scott Patten