linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* no-reboot mirror creation
@ 2006-03-28 14:08 Rob Harris
  2006-03-28 14:42 ` Laurent CARON
       [not found] ` <20060328141523.GD18942@chihiro.cern.ch>
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Harris @ 2006-03-28 14:08 UTC (permalink / raw)
  To: linux-raid

OK. Stupid question.

So, I have a 300G drive in my system, 'bout half full running jfs.

I added a second 300G drive because I want to do mirroring.

I don't have place to copy the data off to create a clean two-drive 
mirror from the get go, so I:

- created a one-drive mirror using mdadm (requiring --force) on the new disk
- mounted it
- copied the data over from the non-raid disk to the raid disk
- verified that all the data was copied
- changed the type of the partition on the old disk to FD
- # mdadm /dev/md1 --add /dev/hdf1 (added the newly created partition)

It seemed to work... kinda. It didn't actually add the partition to the 
mirror, but just set it as a spare; i.e. I never see it syncing the data 
from the old disk to the new.

Is there a way that I can add the drive to the mirror without setting it 
as a spare?

Thanks.
-R


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no-reboot mirror creation
  2006-03-28 14:08 no-reboot mirror creation Rob Harris
@ 2006-03-28 14:42 ` Laurent CARON
       [not found] ` <20060328141523.GD18942@chihiro.cern.ch>
  1 sibling, 0 replies; 3+ messages in thread
From: Laurent CARON @ 2006-03-28 14:42 UTC (permalink / raw)
  To: Rob Harris; +Cc: linux-raid

Rob Harris wrote:
> OK. Stupid question.
> 
> So, I have a 300G drive in my system, 'bout half full running jfs.
> 
> I added a second 300G drive because I want to do mirroring.
> 
> I don't have place to copy the data off to create a clean two-drive 
> mirror from the get go, so I:
> 
> - created a one-drive mirror using mdadm (requiring --force) on the new 
> disk

you should have done

mdadm -Cv /dev/md0 -l1 -n2 /dev/XXX missing


> - mounted it
> - copied the data over from the non-raid disk to the raid disk
> - verified that all the data was copied
> - changed the type of the partition on the old disk to FD
> - # mdadm /dev/md1 --add /dev/hdf1 (added the newly created partition)
> 
> It seemed to work... kinda. It didn't actually add the partition to the 
> mirror, but just set it as a spare; i.e. I never see it syncing the data 
> from the old disk to the new.
> 
> Is there a way that I can add the drive to the mirror without setting it 
> as a spare?
> 
> Thanks.
> -R
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no-reboot mirror creation
       [not found] ` <20060328141523.GD18942@chihiro.cern.ch>
@ 2006-03-28 14:46   ` Rob Harris
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Harris @ 2006-03-28 14:46 UTC (permalink / raw)
  To: linux-raid

KELEMEN Peter wrote:
> * Rob Harris (rharris@shabadoo.org) [20060328 09:08]:
> 
>> - created a one-drive mirror using mdadm (requiring --force) on
>> the new disk
> 
> Repeat the exercise, but create a two-drive mirror with one of the
> disks missing.
> 
> 	mdadm -C /dev/mdX -l1 -n2 missing /dev/XXX
> 

Thanks all--I figured it out.

Actually, I just failed and removed the drive that was added as a spare, 
then did:

mdadm /dev/md1 --grow -n2
mdadm /dev/md1 --add /dev/hde1

It's happily resyncing right now. Thanks again!
-R


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-28 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-28 14:08 no-reboot mirror creation Rob Harris
2006-03-28 14:42 ` Laurent CARON
     [not found] ` <20060328141523.GD18942@chihiro.cern.ch>
2006-03-28 14:46   ` Rob Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).