*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

GPT issues on two HDD's and on RAID5 array

Software RAID information and help
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
garfnodie
NewUser
NewUser
Posts: 3
Joined: 30 Oct 2015 04:35
Status: Offline

GPT issues on two HDD's and on RAID5 array

#1

Post by garfnodie »

This is really just a x-post from Reddit that I posted last night as I didn't have permission to post on here yet.

This a FreeNAS 7 box I built in late 2010. I recently pulled it out of storage after six months, and it's got issues. Worked fine the day it was put in storage, even worked fine two years ago after having spent six months in my car, now it stops working while in climate controlled storage. f_* Murphy.

Anyway, here's what I'm seeing during boot up that seems relevant.

Code: Select all

GEOM: ad4: corrupt or invalid GPT detected.
GEOM: ad4: GPT rejected -- may not be recoverable
GEOM: ad10: corrupt of invalid GPT detected.
GEOM: ad10: GPT rejected -- may not be recoverable

GEOM: raid5/NAS: the primary GPT table is corrupt or invalid.
GEOM: raid5/NAS: using the secondary instead -- recovery strongly advised

Starting file system checks:
/dev/raid5/NASp1: PARTIALLY ALLOCAATED INODE I=184224192
/dev/raid5/NASp1: UNEXPECTED SOFT UPDATE INCONSISTENCY: RUN fsck MANUALLY. 
Automatic file system check failed: help!
ERROR: ABORTING BOOT (sending SIGTERM to parent)![/FONT]
I recorded the boot up as well using a camera on a tripod hoping maybe someone might see other issues. It normally takes twenty minutes to boot, but after stripping out the non-moving parts, it's only a minute.

I should add that it never does load the remote web interface, anything I do will have to be done locally. I have absolutely zero experience outside the web interface aside from when I originally built the system five years ago as I've had virtually no issues, aside from a drive going bad, but that was fixed from withing the web interface.

I've already been told by someone on Reddit that it is probably a lost cause, but I'll take any advice I can get as I can't really lose anything else at this point.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 388
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: GPT issues on two HDD's and on RAID5 array

#2

Post by Parkcomm »

Not a lost cause at all - (not yet)

it never does load the remote web interface,


Create a live USB stick and boot from there - you'll get your web interface back.

First thing is that you've got gpt corruption on 2 of the the underlying RAID5 disks - you need at least one of them to work to have any hope of recovering the array.

I assume you have checked your hardware (if not do that first - clean out dust, reseat everything). Reboot and see if you get the same error. If not try

Code: Select all

gpart recover /dev/ada4
gpart recover /dev/ada10
Reboot

If the devices have come good but the array hasn't, you can run similar command on the RAID.[/s]
Last edited by Parkcomm on 30 Oct 2015 22:40, edited 1 time in total.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

User avatar
daoyama
Developer
Developer
Posts: 422
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: GPT issues on two HDD's and on RAID5 array

#3

Post by daoyama »

Parkcomm wrote: I assume you have checked your hardware (if not do that first - clean out dust, reseat everything). Reboot and see if you get the same error. If not try

Code: Select all

gpart recover /dev/ada4
gpart recover /dev/ada10
You must not do this! It break existing RAID data.
Actual problem is not a GPT partition.
garfnodie wrote:

Code: Select all

Starting file system checks:
/dev/raid5/NASp1: PARTIALLY ALLOCAATED INODE I=184224192
/dev/raid5/NASp1: UNEXPECTED SOFT UPDATE INCONSISTENCY: RUN fsck MANUALLY. 
Automatic file system check failed: help!
ERROR: ABORTING BOOT (sending SIGTERM to parent)![/FONT]
Your RAID is live but UFS on RAID is broken.
First, you should run fsck /dev/raid5/NASp1.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

garfnodie
NewUser
NewUser
Posts: 3
Joined: 30 Oct 2015 04:35
Status: Offline

Re: GPT issues on two HDD's and on RAID5 array

#4

Post by garfnodie »

daoyama wrote: Your RAID is live but UFS on RAID is broken.
First, you should run fsck /dev/raid5/NASp1.
Sorry I didn't respond sooner, I didn't realize the "Notify me when a reply is posted" option wasn't checked and I forgot about this.

Anyway, I did the fsck and it told me it couldn't determine file system type.

User avatar
daoyama
Developer
Developer
Posts: 422
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: GPT issues on two HDD's and on RAID5 array

#5

Post by daoyama »

garfnodie wrote:
daoyama wrote: Your RAID is live but UFS on RAID is broken.
First, you should run fsck /dev/raid5/NASp1.
Sorry I didn't respond sooner, I didn't realize the "Notify me when a reply is posted" option wasn't checked and I forgot about this.

Anyway, I did the fsck and it told me it couldn't determine file system type.
You need FS type if you don't use it in fstab. See this FAQ:
http://wiki.nas4free.org/doku.php?id=faq:0001
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

garfnodie
NewUser
NewUser
Posts: 3
Joined: 30 Oct 2015 04:35
Status: Offline

Re: GPT issues on two HDD's and on RAID5 array

#6

Post by garfnodie »

daoyama wrote: You need FS type if you don't use it in fstab. See this FAQ:
http://wiki.nas4free.org/doku.php?id=faq:0001
I might be f*cked then because I don't know what I named it. It's been five years since I had to mess with any settings. I always mapped the NAS to a drive letter, so I never paid attention to what it was named. Another problem is what I'm running is the old FreeNAS 7, can I even use a current live CD to try and fix this?

Post Reply

Return to “Software RAID”