Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #188826

Re: How to Clone a RAID1 Box to Another with Drives Twice As Big?

From Michael Stone <mstone@debian.org>
Newsgroups linux.debian.user
Subject Re: How to Clone a RAID1 Box to Another with Drives Twice As Big?
Date 2017-11-09 20:40 +0100
Message-ID <uK0Q9-16V-3@gated-at.bofh.it> (permalink)
References <uJZKq-pJ-9@gated-at.bofh.it> <uJZU6-vd-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Nov 09, 2017 at 01:33:51PM -0500, Roberto C. Sánchez wrote:
>On Thu, Nov 09, 2017 at 12:25:17PM -0600, Kent West wrote:
>>    I have a Debian Stable box with two 1TB drives, set up as a mirrored RAID1
>>    setup.
>>
>>    I have a replacement box with two 2TB drives.
>>
>>    How do I best clone the old machine to the new, with minimal (or better,
>>    no) downtime, being able to wind up with double the drive space on the new
>>    box?
>
>If minimizing downtime is your objective, then I would recommending
>doing a fresh install on the replacement system and rsyncing everything
>over.  That lets you have the old system up and running until the very
>last moment.

It also gives you a straightforward fallback plan. The other way to do 
this is to add the two new 2TB disks to the mirror, remove the 1TB 
disks, then grow the md to the full size of the 2TB disks. The upside is 
that it can all theoretically be done without even a reboot if you have 
hot-swap drives. The downside is that if it breaks, you're left holding 
both pieces and have to start over from backup. (There are some fiddly 
bits I glossed over as well, like making sure the partitioning is 
correct, booting works, etc.) So "best" here depends on your 
constraints.

Mike Stone

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to Clone a RAID1 Box to Another with Drives Twice As Big? Kent West <westk@acu.edu> - 2017-11-09 19:30 +0100
  Re: How to Clone a RAID1 Box to Another with Drives Twice As Big? Roberto C. Sánchez <roberto@debian.org> - 2017-11-09 19:40 +0100
    Re: How to Clone a RAID1 Box to Another with Drives Twice As Big? David Christensen <dpchrist@holgerdanske.com> - 2017-11-09 20:10 +0100
    Re: How to Clone a RAID1 Box to Another with Drives Twice As Big? Michael Stone <mstone@debian.org> - 2017-11-09 20:40 +0100

csiph-web