linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Moving a raid5 array
@ 2006-09-12 16:14 Clive Messer
  2006-09-12 16:21 ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Clive Messer @ 2006-09-12 16:14 UTC (permalink / raw)
  To: linux-raid


I currently have a 4 disk raid5 array which I wish to move to another machine. 
In the current machine it is comprised of sda1/sdb1/sdc1/sdd1. When I move it 
to the new machine the disks will all shift up by 2. ie. the partitions will 
now be sdc1/sdd1/sde1/sdf1. If I 'mdadm --assemble' the array on the new 
machine with the new partition names will md figure it all out or am I going 
to trash my data?

For reference my current mdadm.conf ......

DEVICE /dev/sd*[0-9]
ARRAY /dev/md0 level=raid5 num-devices=4 
UUID=f1949e2c:bec621e4:de55ae15:4f336899

Regards

Clive
-- 
Clive Messer <clive@vacuumtube.org.uk>

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

* Re: Moving a raid5 array
  2006-09-12 16:14 Moving a raid5 array Clive Messer
@ 2006-09-12 16:21 ` Neil Brown
  2006-09-12 16:35   ` Clive Messer
  2006-09-15  3:57   ` I think there is a trick to improve performance of md liyiming
  0 siblings, 2 replies; 4+ messages in thread
From: Neil Brown @ 2006-09-12 16:21 UTC (permalink / raw)
  To: Clive Messer; +Cc: linux-raid

On Tuesday September 12, clive@vacuumtube.org.uk wrote:
> 
> I currently have a 4 disk raid5 array which I wish to move to another machine. 
> In the current machine it is comprised of sda1/sdb1/sdc1/sdd1. When I move it 
> to the new machine the disks will all shift up by 2. ie. the partitions will 
> now be sdc1/sdd1/sde1/sdf1. If I 'mdadm --assemble' the array on the new 
> machine with the new partition names will md figure it all out or am I going 
> to trash my data?
> 
> For reference my current mdadm.conf ......
> 
> DEVICE /dev/sd*[0-9]
> ARRAY /dev/md0 level=raid5 num-devices=4 
> UUID=f1949e2c:bec621e4:de55ae15:4f336899

Providing you don't already have a /dev/md0 on the new machine, which
should work perfectly - no confusion.

NeilBrown

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

* Re: Moving a raid5 array
  2006-09-12 16:21 ` Neil Brown
@ 2006-09-12 16:35   ` Clive Messer
  2006-09-15  3:57   ` I think there is a trick to improve performance of md liyiming
  1 sibling, 0 replies; 4+ messages in thread
From: Clive Messer @ 2006-09-12 16:35 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

On Tuesday 12 September 2006 17:21, Neil Brown wrote:
> On Tuesday September 12, clive@vacuumtube.org.uk wrote:
> > I currently have a 4 disk raid5 array which I wish to move to another
> > machine. In the current machine it is comprised of sda1/sdb1/sdc1/sdd1.
> > When I move it to the new machine the disks will all shift up by 2. ie.
> > the partitions will now be sdc1/sdd1/sde1/sdf1. If I 'mdadm --assemble'
> > the array on the new machine with the new partition names will md figure
> > it all out or am I going to trash my data?
> >
> > For reference my current mdadm.conf ......
> >
> > DEVICE /dev/sd*[0-9]
> > ARRAY /dev/md0 level=raid5 num-devices=4
> > UUID=f1949e2c:bec621e4:de55ae15:4f336899
>
> Providing you don't already have a /dev/md0 on the new machine, which
> should work perfectly - no confusion.

Thanks Neil. Appreciate the quick response.

Regards

Clive
-- 
Clive Messer <clive@vacuumtube.org.uk>

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

* I think there is a trick to improve performance of md.
  2006-09-12 16:21 ` Neil Brown
  2006-09-12 16:35   ` Clive Messer
@ 2006-09-15  3:57   ` liyiming
  1 sibling, 0 replies; 4+ messages in thread
From: liyiming @ 2006-09-15  3:57 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

blow are some codes in md_do_sync function of md.c in 
linux-2.6.17.11-rc5/drivers/md

4774: int next = (last_mark+1) % SYNC_MARKS;

I have no idea why SYNC_MARKS is set 10. if set SYNC_MARKS to 8 or 
16(the power of 2), we can replace the % operation to  & operation
and this trick will accelerate the running of this code.
 

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

end of thread, other threads:[~2006-09-15  3:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12 16:14 Moving a raid5 array Clive Messer
2006-09-12 16:21 ` Neil Brown
2006-09-12 16:35   ` Clive Messer
2006-09-15  3:57   ` I think there is a trick to improve performance of md liyiming

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).