From owner-freebsd-questions@freebsd.org Fri Mar 30 06:04:11 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79FD1F741BB for ; Fri, 30 Mar 2018 06:04:11 +0000 (UTC) (envelope-from jmvandette@securenet.net) Received: from ms.securenet.net (ms.securenet.net [205.236.147.20]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23444784B2 for ; Fri, 30 Mar 2018 06:04:10 +0000 (UTC) (envelope-from jmvandette@securenet.net) Received: from ms.securenet.net (localhost [127.0.0.1]) by ms.securenet.net (Postfix) with ESMTP id 7736911DC5 for ; Fri, 30 Mar 2018 02:04:04 -0400 (EDT) X-Virus-Scanned: by f-prot anti-virus, and clamav anti-virus at SecureNet Inc. Received: from ms.securenet.net ([127.0.0.1]) by ms.securenet.net (ms.securenet.net [127.0.0.1]) (amavisd-new, port 10001) with ESMTP id V3ML9F7tQ_nQ for ; Fri, 30 Mar 2018 02:03:56 -0400 (EDT) Received: from office.securenet.net (office.securenet.net [205.236.147.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ms.securenet.net (Postfix) with ESMTPS id D632511DC3 for ; Fri, 30 Mar 2018 02:03:56 -0400 (EDT) Received: from office.securenet.net (172.16.0.194) by office.securenet.net (172.16.0.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1034.26; Fri, 30 Mar 2018 02:03:55 -0400 Received: from office.securenet.net ([fe80::fc2a:207d:850e:3424]) by office.securenet.net ([fe80::fc2a:207d:850e:3424%9]) with mapi id 15.01.1034.033; Fri, 30 Mar 2018 02:03:55 -0400 From: "Jean M. Vandette" To: "freebsd-questions@freebsd.org" Subject: gpart recovery FreeBSD 7.4 Thread-Topic: gpart recovery FreeBSD 7.4 Thread-Index: AdPH67s6+2Xno425Q4Gw3Y3ODMy5+w== Date: Fri, 30 Mar 2018 06:03:55 +0000 Message-ID: <6b89534c97b14e51b67581e34efac71c@securenet.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.15.157] x-avg-scannedformalware-engineversion: 16.0.8039 4793/15523 492545 x-avg-scannedformalware-signature: D87423E2ED66A61570363D8F66F501D3FE9679E895D6DEC32D1EDCD397279D3F MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2018 06:04:11 -0000 Greetings all Last week one of our machines using a LSI PERC 5i controller dropped a disk in the RAID 5 the hot spare that was reported as good when put into service failed on insertion. Since the machine became unresponsive it was rebooted, the two disks replaced and the array restored to optimal. On boot the machine came to a loader prompt booted up on 8.1 with livefs and gpart show gives: =3D> 34 23435673533 mfid0 GPT (13T) 34 128 1 freebsd-boot (64K) 162 8388608 2 freebsd-swap (4.0G) 8388770 2097152 3 freebsd-ufs (1.0G) 10485922 4194304 4 freebsd-ufs (2.0G) 14680226 41943040 5 freebsd-ufs (20G) 56623266 62914560 6 freebsd-ufs (30G) 119537826 83886080 7 freebsd-ufs (40G) 203423906 1258291200 8 freebsd-ufs (600G) 1461715106 21973958461 9 freebsd-ufs (10T) # gpart list mfid0 Geom name: mfid0 fwheads: 255 fwsectors: 63 last: 23435673566 first: 34 entries: 128 scheme: GPT Providers: 1. Name: mfid0p1 Mediasize: 65536 (64K) Sectorsize: 512 Mode: r0w0e0 rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f label: (null) length: 65536 offset: 17408 type: freebsd-boot index: 1 end: 161 start: 34 2. Name: mfid0p2 Mediasize: 4294967296 (4.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: swap0 length: 4294967296 offset: 82944 type: freebsd-swap index: 2 end: 8388769 start: 162 3. Name: mfid0p3 Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 1073741824 offset: 4295050240 type: freebsd-ufs index: 3 end: 10485921 start: 8388770 4. Name: mfid0p4 Mediasize: 2147483648 (2.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 2147483648 offset: 5368792064 type: freebsd-ufs index: 4 end: 14680225 start: 10485922 5. Name: mfid0p5 Mediasize: 21474836480 (20G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 21474836480 offset: 7516275712 type: freebsd-ufs index: 5 end: 56623265 start: 14680226 6. Name: mfid0p6 Mediasize: 32212254720 (30G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 32212254720 offset: 28991112192 type: freebsd-ufs index: 6 end: 119537825 start: 56623266 7. Name: mfid0p7 Mediasize: 42949672960 (40G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 42949672960 offset: 61203366912 type: freebsd-ufs index: 7 end: 203423905 start: 119537826 8. Name: mfid0p8 Mediasize: 644245094400 (600G) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 644245094400 offset: 104153039872 type: freebsd-ufs index: 8 end: 1461715105 start: 203423906 9. Name: mfid0p9 Mediasize: 11250666732032 (10T) Sectorsize: 512 Mode: r0w0e0 rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: (null) length: 11250666732032 offset: 748398134272 type: freebsd-ufs index: 9 end: 23435673566 start: 1461715106 Consumers: 1. Name: mfid0 Mediasize: 13998909030400 (13T) Sectorsize: 512 Mode: r0w0e0 Tried to redo the boot with # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 mfid0 mfid0 has bootcode but it won't find the boot loader. Is there a way to force it to overwrite the current code? Tried to mount the / partition on mnt mount -t ufs /dev/mfid0p3 /mnt mount: /dev/mfid0p3 : Invalid argument What am I missing? Any help would be appreciated. Regards Jean M. Vandette SecureNet Information Services Net-Vu Television Distribution Divisions 159272 Canada Inc. 283-100 Alexis Nihon Blvd St Laurent, Quebec H4M 2N7 514-744-4242 800-469-7774 514-744-1552 Fax IMPORTANT: Les informations contenues au pr=E9sent courriel ainsi que dans tout docume= nt annex=E9 sont de nature privil=E9gi=E9e et confidentielle et ne peuvent = =EAtre utilis=E9es que par la ou les personnes ou entit=E9s dont le nom par= a=EEt ci-dessus. Si le lecteur du pr=E9sent message n'est pas le destinatai= re pr=E9vu ou n'a pas =E9t=E9 mis en copie, il est par les pr=E9sentes pri= =E9 de noter qu'il est strictement interdit de divulguer, de distribuer de = copier ou d'utiliser de quelconque fa=E7on ce message ou ses annexes. Si ce= ux-ci vous ont =E9t=E9 transmis par m=E9garde, veuillez les effacer et nous= en aviser imm=E9diatement. This E-mail along with its attachments, if any, contain privileged and conf= idential information intended only for the use of the individuals or entiti= es named above. Any dissemination, distribution, copying or use of the same= by anyone other than the intended recipients is strictly prohibited. If yo= u have received this communication in error, please delete both E-mail and = attachments and notify us immediately. ________________________________ Checked by AVG. Version: 16.0.8039 / Virus Database: 4793/15523 - Release D= ate: Thu Mar 29 11:14:00 2018. The message does not contain any threats. ________________________________