Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #171547
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Frédéric Marchal <frederic.marchal@wowtechnology.com> |
| Newsgroups | linux.debian.user |
| Subject | Re: Reuniting disks in a raid1 array |
| Date | Tue, 30 Aug 2016 11:10:02 +0200 |
| Message-ID | <sbNdo-2Ps-15@gated-at.bofh.it> (permalink) |
| References | <sbJW9-BZ-1@gated-at.bofh.it> <sbMKm-2qE-13@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Tue Aug 30 09:05:06 2016 |
| Old-Return-Path | <frederic.marchal@wowtechnology.com> |
| X-Amavis-Spam-Status | No, score=-7.6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .wowtechnology. - helo: .mail-wm0-x234.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=wowtechnology-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=fL6W8AY5SmxyrPtztU9n4o8EqgdM+zyiivwsGzNXS4Y=; b=KdcQ6wNusaY5alW3EtiqrL6b5TmpFvMvoLmVMDhjMrlMSRjgyBAt/Rh/cFJfUMh64r EXag/5HRHzqDC7Onnfe77KkMCpN3J01/exZsKTyD/2jNr2myry/WYHoaNBBiqrO5/h2j hbq7Ml6JoDTv7wzoTKGV1LNblJ6p44kKtkjjnc5U0vjsOFvwQMs2VMl0adD5xbS6spXT f5hgMRPb2fLuSLecr+tXh9EY5ObNRT39dwJBDYZzhKf/x7EmdrJKWeeAzWhpUn4v/W3t nu6i2EZE41z4/bVDHUc57kFLbnK4s+rINvHwGP9CTv5m9OMCgy3yJbDwwicLeigWROpH XscA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=fL6W8AY5SmxyrPtztU9n4o8EqgdM+zyiivwsGzNXS4Y=; b=KFhfVPQIlHMhUr3UWyXAKnFVdwFjBeeAputSbhYf32FQY/DnEF3kp5KM8YysFBMu8x xHGTyXGyFr84A+FJSiQOm2SaB+pV8j9TcqaZ9sLZLElboORYVHG3xTPq1RmYNGQZ1hrp 7nhAz0txOodhUVccrb4bimXV6W86Lkre9kiy8vsot8VLI//W7KypwmsBB9DmtB7RLGi1 bwWYactz3VfIrcuSGE08JxPvd3iNnSaYzVh5PsRmX79x0UdTT/gzyfsFpkTBmfTy3IZl NQyDLSWx9mOV2di+pOzXJYKOhxDSi6v8VISq5102Nk+Jv6IfAfxT2bPg2pVdTe2SvVrd nZhA== |
| X-Gm-Message-State | AE9vXwOir5egGtuVHWNo1xX1jLUiQBjB4ravvGmxkQPgaTHq0mvoomIfvcGjV80jM/zDWAmz |
| X-Received | by 10.194.201.202 with SMTP id kc10mr2486187wjc.124.1472547881905; Tue, 30 Aug 2016 02:04:41 -0700 (PDT) |
| Organization | Wow Technology |
| User-Agent | KMail/4.14.1 (Linux/4.3.0-0.bpo.1-amd64; KDE/4.14.2; x86_64; ; ) |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | quoted-printable |
| Content-Type | text/plain; charset="utf-8" |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/711073 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/1747393.LVST2FYDdh@port-fma |
| Approved | robomod@news.nic.it |
| Lines | 47 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Tue, 30 Aug 2016 11:04:40 +0200 |
| X-Original-Message-ID | <1747393.LVST2FYDdh@port-fma> |
| X-Original-References | <2734645.CqXRoucrly@port-fma> <23987172-616c-df4a-e34a-7c8d4878cfe9@gmail.com> |
| Xref | csiph.com linux.debian.user:171547 |
Show key headers only | View raw
On Tuesday 30 August 2016 11:32:55 Lars Noodén wrote: > On 08/30/2016 08:33 AM, Frédéric Marchal wrote: > >... > > > > Now, it's time for the old computer to retire and sdb to join its partner > > in the new raid1 on the new computer. > > > > How can I do this safely? > > Here is what I did when I restored a drive to a RAID 1 array. I'm not > an expert, so you'll want to verify these steps. > > First I cleared the start of the drive-to-be-added using "dd" reading > from /dev/zero for 1MB (probably unnecessarily large). Then I copied > the partition table from the existing disk in the array to the > disk-to-be-added. I used a different method, but looking around the > correct way might have been to pipe output from "sfdisk -d" on the > existing drive to "sfdisk" on the drive-to-be-added. That put the > partition(s) in the right place(s). I suspect this step won't work because the second hard disk was part of the array in the past. Its partition table is identical to the one on the active disk currently in the array.. If I wipe the partition table from sdb and clone the partition table from sda, sdb will end up with the exact same partition table as before. I suspect the raid superblocks and file systems will be detected as if I hadn't changed anything. The only difference between sda and sdb is that they lived, as degraded raid1, on different computers for a few months. I would like to avoid dd'ing a 1TB disk with /dev/zero. Syncing the two disks will take long enough… Frederic
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reuniting disks in a raid1 array Frédéric Marchal <frederic.marchal@wowtechnology.com> - 2016-08-30 07:40 +0200
Re: Reuniting disks in a raid1 array Lars Noodén <lars.nooden@gmail.com> - 2016-08-30 10:40 +0200
Re: Reuniting disks in a raid1 array Lars Noodén <lars.nooden@gmail.com> - 2016-08-30 10:50 +0200
Re: Reuniting disks in a raid1 array Frédéric Marchal <frederic.marchal@wowtechnology.com> - 2016-08-30 11:10 +0200
Re: Reuniting disks in a raid1 array Mirko Parthey <mirko.parthey@web.de> - 2016-08-30 12:30 +0200
Re: Reuniting disks in a raid1 array Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-08-30 20:20 +0200
csiph-web