From: Tomasz Chmielewski <mangoo@wpkg.org>
To: linux-raid@vger.kernel.org
Subject: how to synchronize two devices (RAID-1, but not really?)
Date: Tue, 15 May 2007 10:57:46 +0200 [thread overview]
Message-ID: <4649760A.1060805@wpkg.org> (raw)
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.
M1 - machine 1, RAID-10
M2 - machine 2, RAID-5
My first idea was to copy the data with rsync two or three times
(because the files change, I would stop the services for the last run) -
which turned out to be totally unrealistic - I started rsync process two
days ago, and it still calculates files to be copied (over 100 million
files, with hardlinks etc.).
So my second idea is to do some sort of RAID-1-over-iSCSI of these two
arrays - I don't care if it's gonna take long, what's important, I don't
want to stop the services.
So let's say M2 exports RAID-5 md to M1 over iSCSI, and M2's RAID-5 is
available to M1 as /dev/sdr.
Now, is there a way I can synchronize the contents of RAID-10, or
/dev/md10, with the contents of RAID-5, or /dev/sdr, when /dev/sdr is
bigger then /dev/md10, and /dev/md10 has to be synchronized on /dev/sdr,
not the way around (I would expand the filesystem later with ext3online)?
Perhaps "dd" tool would be fine if the data didn't change.
RAID-1 would be great, as it tracks changes, but I'd have to create
RAID-1 over: /dev/md10 and /dev/sdr. Wouldn't it destroy the contents of
/dev/md10?
Ideas how to synchronize the contents of two devices (device1 -> device2)?
--
Tomasz Chmielewski
next reply other threads:[~2007-05-15 8:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 8:57 Tomasz Chmielewski [this message]
2007-05-15 9:16 ` how to synchronize two devices (RAID-1, but not really?) 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
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=4649760A.1060805@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-raid@vger.kernel.org \
/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 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).