Date: Fri, 30 Mar 2018 06:03:55 +0000 From: "Jean M. Vandette" <jmvandette@securenet.net> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: gpart recovery FreeBSD 7.4 Message-ID: <6b89534c97b14e51b67581e34efac71c@securenet.net>
next in thread | raw e-mail | index | archive | help
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. ________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6b89534c97b14e51b67581e34efac71c>