From owner-freebsd-questions@freebsd.org Thu Jun 23 20:19:18 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4414B73C28 for ; Thu, 23 Jun 2016 20:19:18 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 394C418D1 for ; Thu, 23 Jun 2016 20:19:18 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id l188so102138613lfe.2 for ; Thu, 23 Jun 2016 13:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=SlbS20nPQsP/EBIl4gxF4rmzI1Pqa2teZf1rpPsCbfU=; b=g9R3ll2676ak2wdFAUEthiMgRPCYrmalsrjjGfs1w7nFFVkTGse93s1KcxGOqrpHc0 XnPZmAb21gcCNrAZvu5IDaMNeVcWQMbUNv2m5/tNVzWv91Xhb5mfi7SenHQw9enohKI9 D4Sg++uDTGqX58ki851NmgGd0ZiFJ7X/YQUWzC3GAxBXSQEbaSnZqVAm2bkERl1DvdXH QRetjjUrzfhiI7ZasaXvGZWPrAjZHejikUqDZhl8up5cI/veVHoaMTOPdS4M0htCHi18 P/BcMU+smf2IC05RhpnZaxZHc6ZYp7ZVqw/Ed4N7XZRVmHlBQNziKCaqE485iUaDyGGl ySQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SlbS20nPQsP/EBIl4gxF4rmzI1Pqa2teZf1rpPsCbfU=; b=Ubt1jIEg+LGDsYWwLBF75ydx+KTMAYIf5rRb3I/iKiysSBwM7Qfz9f9yQFkscS/mnH uowaoekpjnGS5iSQCGYePhNP2t/ih8V1K4a63LcH0FIGWyQ/HUSbFbcV2TJU4CMaGkyE fFDBgF/dKD69kOTv9qRH0Vf+o7N+ETwtYo2lFEEpD6bKjBYgCSOCDwhITHIggFPbUylI 3AKj4pTMCWgzsLP8DCExcHfb92Uxrqyhr1tL1FT3kIitxX20IcgX+NJypdYTr7TGGiIg cYmHvWjQcA1fcHn9R/2c5/vyG9caE0vJMk4N0eoUNNNGdBPoex3Pze+LuIv1PYwgXR3c wCMw== X-Gm-Message-State: ALyK8tLN1FeQCqJn/irDcQLzJYrVkFKAWEPaYvD560lnYCWk6YT8N/2liieuAqZ0kYe3O31KfLAgrW566Anr8w== X-Received: by 10.25.215.11 with SMTP id o11mr143394lfg.132.1466713155793; Thu, 23 Jun 2016 13:19:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.76.7 with HTTP; Thu, 23 Jun 2016 13:19:15 -0700 (PDT) From: perikillo Date: Thu, 23 Jun 2016 13:19:15 -0700 Message-ID: Subject: Copy bootcode to mirror disk? To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 20:19:18 -0000 Hi I have a server with 2 hard disk in mirror setup. My slices are: Code: root@spam:/boot # gpart show ada1 34 976773101 ada1 GPT (466G) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 2097152 2 freebsd-ufs (1.0G) 2097320 16777216 3 freebsd-ufs (8.0G) 18874536 16777216 4 freebsd-ufs (8.0G) 35651752 1048576 5 freebsd-ufs (512M) 36700328 1048576 6 freebsd-swap (512M) 37748904 939024231 - free - (448G) My mirror has ada0 ada1, ada0 var slice fails, them I decide to replace the whole disk and follow the instructions for that using gpart and backup my current good disk layout into my new disk. gpart backup ada1 | gpart restore -F /dev/ada0 This create my slices, I forget each mirror slice and add each slice into the mirror again. Everything working, but looks like I forget to add the bootcode to my new disk because it won't boot. Now is booting from 2nd disk but need to boot from all hard disk, if ada1 fails I will have issues. If some one could explain me the steps will be appreciated, thanks.