All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: David Greaves <david@dgreaves.com>
Cc: Tomasz Chmielewski <mangoo@wpkg.org>,
	linux-raid@vger.kernel.org, Peter Rabbitson <rabbit@rabbit.us>
Subject: Re: how to synchronize two devices (RAID-1, but not really?)
Date: Wed, 16 May 2007 13:36:06 -0400	[thread overview]
Message-ID: <464B4106.6020508@tmr.com> (raw)
In-Reply-To: <46498053.9000807@dgreaves.com>

David Greaves wrote:
> Tomasz Chmielewski wrote:
>   
>> Peter Rabbitson schrieb:
>>     
>>> Tomasz Chmielewski wrote:
>>>       
>>>> I have a RAID-10 setup of four 400 GB HDDs. As the data grows by several
>>>> GBs a day, I want to migrate it somehow to RAID-5 on separate disks in a
>>>> separate machine.
>>>>
>>>> Which would be easy, if I didn't have to do it online, without stopping
>>>> any services.
>>>>
>>>>
>>>>         
>>> Your /dev/md10 - what is directly on top of it? LVM? XFS? EXT3?
>>>       
>> Good point. I don't want to copy the whole RAID-10.
>> I want to copy only one LVM-2 volume (which is like 90% of that RAID-10,
>> anyway).
>>
>>
>> So I want to synchronize /dev/LVM2/my-volume (ext3) with /dev/sdr (now
>> empty; bigger than /dev/LVM2/my-volume).
>>
>>
>> (sda2, sdb2, sdc2, sdd2) -> RAID-10 -> LVM-2 -> my volume -> ext3
>>
>>
>>     
>
>
> I've not used iSCSI but I wonder about using nbd : network block device
>
> Use nbd to export /dev/md5 from machine 2.
> Import /dev/nbd0 on machine 1.
> Add nbd0 to the VG on machine 1
> pvmove the data from /dev/md10 to /dev/nbd0 (ie the md5 on machine2 via nbd)
> remove /dev/md10 from the VG.
> The VG should now exist only on /dev/nbd0 on machine 2
> stop the services and lvm on machine 1
> start the lvm and services on machine 2.
>
> I'd suggest testing this first <grin>.
>   

Posts to the kernel mailing list indicate that people, including me, 
have had issues with this since 2.6.10-rc versions. I got no "me too" 
responses, so I figured something have changed, although yesterday 
someone reported a hard crash using nbd.

Test it well, but it's the ideal solution, combined with a bitmap, for 
getting in sync.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


  parent reply	other threads:[~2007-05-16 17:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15  8:57 how to synchronize two devices (RAID-1, but not really?) Tomasz Chmielewski
2007-05-15  9:16 ` Peter Rabbitson
2007-05-15  9:27   ` Tomasz Chmielewski
2007-05-15  9:41     ` David Greaves
2007-05-15  9:50       ` Tomasz Chmielewski
2007-05-16 17:36       ` Bill Davidsen [this message]
2007-05-15 14:22     ` Gregory Seidman
2007-05-15  9:29 ` Gordon Henderson
2007-05-15  9:44   ` Tomasz Chmielewski
2007-05-15 10:16 ` Neil Brown
2007-05-15 10:36   ` Tomasz Chmielewski
2007-05-15 11:12     ` Neil Brown
2007-05-15 10:41   ` Tomasz Chmielewski
2007-05-15 11:07     ` Neil Brown
2007-05-15 11:21       ` Tomasz Chmielewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=464B4106.6020508@tmr.com \
    --to=davidsen@tmr.com \
    --cc=david@dgreaves.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mangoo@wpkg.org \
    --cc=rabbit@rabbit.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.