Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - 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

Cure for Invalid GPT detected?

Filesystems(UFS, EXT2, FAT, NTFS, ZFS), mount points, partitions
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
NeilP
Advanced User
Advanced User
Posts: 221
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Cure for Invalid GPT detected?

#1

Post by NeilP »

XigmasNAS 12.1.0.4.7542.

New embedded build

JBOD array of two 2TB WD drives.

one kept giving this
ul 1 06:54:59 backup kernel: GEOM: ada4: corrupt or invalid GPT detected.
Jul 1 06:54:59 backup kernel: GEOM: ada4: GPT rejected -- may not be recoverable.

SO I deleted the array
formatted each drive as new stand alone drives with UFS

They mounted and worked fine.

So i deleted them again and re created re formatted them both as SoftRAID
then formatted them both again Soft Raid
Created new Round Robin read JBOD array with them.
Formatted the array again as UFS

But again this GPT error has started .

What am I doing wrong?

User avatar
ms49434
Developer
Developer
Posts: 840
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: Cure for Invalid GPT detected?

#2

Post by ms49434 »

NeilP wrote:
01 Jul 2020 09:00
XigmasNAS 12.1.0.4.7542.

New embedded build

JBOD array of two 2TB WD drives.

one kept giving this
ul 1 06:54:59 backup kernel: GEOM: ada4: corrupt or invalid GPT detected.
Jul 1 06:54:59 backup kernel: GEOM: ada4: GPT rejected -- may not be recoverable.

SO I deleted the array
formatted each drive as new stand alone drives with UFS

They mounted and worked fine.

So i deleted them again and re created re formatted them both as SoftRAID
then formatted them both again Soft Raid
Created new Round Robin read JBOD array with them.
Formatted the array again as UFS

But again this GPT error has started .

What am I doing wrong?
I created a GEOM mirror on test equipment and I don't get any such errors in the log/at boot.

Code: Select all

xigmanasa: ~# gmirror status
      Name    Status  Components
mirror/gm1  COMPLETE  ada5 (ACTIVE)
                      ada4 (ACTIVE)
xigmanasa: ~# 
Please check if 'gpart show ada4' returns 'No such geom' or not.

Code: Select all

xigmanasa: ~# gpart show ada4
gpart: No such geom: ada4.
xigmanasa: ~# gpart show ada5
gpart: No such geom: ada5.
xigmanasa: ~# 
If not, the drive might contain partition information that shouldn't be there. You should remove the drive from the mirror and wipe any partition information, then reattach.

Code: Select all

xigmanasa: ~# gmirror remove -v gm1 ada4
Done.
xigmanasa: ~# 
LOG: kernel: GEOM_MIRROR: Device gm1: provider ada4 destroyed.

LOG: kernel: GEOM: ada4: the secondary GPT header is not in the last LBA.
At this stage a GPT error is logged once but it will disappear after we wiped the partition information:

Code: Select all

xigmanasa: ~# gpart show ada4
=>      40  33554352  ada4  GPT  (16G) [CORRUPT]
        40        24        - free -  (12K)
        64  33554304     1  freebsd-ufs  (16G)
  33554368        24        - free -  (12K)
xigmanasa: ~# 
Lets wipe GEOM partition information

Code: Select all

xigmanasa: ~# gpart destroy -F ada4
ada4 destroyed
xigmanasa: ~# 
Add the drive to the mirror again

Code: Select all

xigmanasa: ~# gmirror insert gm1 ada4
xigmanasa: ~# 
LOG: kernel: GEOM_MIRROR: Device gm1: rebuilding provider ada4.
Checking rebuild status

Code: Select all

xigmanasa: ~# gmirror status
      Name    Status  Components
mirror/gm1  DEGRADED  ada5 (ACTIVE)
                      ada4 (SYNCHRONIZING, 14%)
xigmanasa: ~# 
LOG: kernel: GEOM_MIRROR: Device gm1: rebuilding provider ada4 finished.
Mirror sync is completed

Code: Select all

xigmanasa: ~# gmirror status
      Name    Status  Components
mirror/gm1  COMPLETE  ada5 (ACTIVE)
                      ada4 (ACTIVE)
xigmanasa: ~# 
Double-check ada4

Code: Select all

xigmanasa: ~# gpart show ada4
gpart: No such geom: ada4.
xigmanasa: ~# 
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

NeilP
Advanced User
Advanced User
Posts: 221
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Cure for Invalid GPT detected?

#3

Post by NeilP »

Thank you
I will try that when I get home...though what I had tried that did not work was to format in FAT32, in order to hopefully wipe GPT DATA then afterwards format again as UFS, then as SoftRaid again

Even after all that it still kept showing that error

I will try your suggestions and see if that wipes it

Thank you

NeilP
Advanced User
Advanced User
Posts: 221
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Cure for Invalid GPT detected?

#4

Post by NeilP »

All I can think of is that it is a faulty drive

What ever i do, it keeps producing that same GPT error on that drive after a wipe and re format or ..well anything. Tried formatting in different formats, wooden and destroying as suggested.
Even pluggin nio the apple Mac and formatting it there.
then bringing back to the NAS every time it gets a UFS format it throws up that error.

User avatar
ms49434
Developer
Developer
Posts: 840
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: Cure for Invalid GPT detected?

#5

Post by ms49434 »

NeilP wrote:
02 Jul 2020 08:05
All I can think of is that it is a faulty drive

What ever i do, it keeps producing that same GPT error on that drive after a wipe and re format or ..well anything. Tried formatting in different formats, wooden and destroying as suggested.
Even pluggin nio the apple Mac and formatting it there.
then bringing back to the NAS every time it gets a UFS format it throws up that error.
Another suggestion is to create the mirror on a GPT partition. The expected result is that geom will stop complaining about an invalid GPT because the gmirror configuration no longer collides with the GPT. These are the steps:

- backup the data on the existing mirror
- delete the mount point
- destroy the mirror

Code: Select all

xigmanasa: ~# gmirror destroy -f gm1
- delete the partitions

Code: Select all

xigmanasa: ~# gpart destroy -F ada4
xigmanasa: ~# gpart destroy -F ada5
- create the new partition scheme

Code: Select all

xigmanasa: ~# gpart create -s gpt ada4
xigmanasa: ~# gpart create -s gpt ada5
- add a new partition

Code: Select all

xigmanasa: ~# gpart add -a 1m -t freebsd-ufs ada4
xigmanasa: ~# gpart add -a 1m -t freebsd-ufs ada5
- create a gmirror from the partitions

Code: Select all

xigmanasa: ~# gmirror label -b round-robin gm1 ada4p1 ada5p1
- the resulting gmirror

Code: Select all

xigmanasa: ~# gmirror status
      Name    Status  Components
mirror/gm1  COMPLETE  ada4p1 (ACTIVE)
                      ada5p1 (ACTIVE)
xigmanasa: ~#
- partition information

Code: Select all

xigmanasa: ~# gpart show ada4 ada5 mirror/gm1
=>      40  33554352  ada4  GPT  (16G)
        40      2008        - free -  (1.0M)
      2048  33550336     1  freebsd-ufs  (16G)
  33552384      2008        - free -  (1.0M)

=>      40  33554352  ada5  GPT  (16G)
        40      2008        - free -  (1.0M)
      2048  33550336     1  freebsd-ufs  (16G)
  33552384      2008        - free -  (1.0M)

=>      40  33550256  mirror/gm1  GPT  (16G)
        40        24              - free -  (12K)
        64  33550208           1  freebsd-ufs  (16G)
  33550272        24              - free -  (12K)

xigmanasa: ~# 
The final steps are
- refresh the XigmaNAS configuration by importing disks and software RAIDs
- format the mirror
- create the mount point
- restore the data
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

NeilP
Advanced User
Advanced User
Posts: 221
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Cure for Invalid GPT detected?

#6

Post by NeilP »

I am copying and saving your info here locally and will try that should this crop up again.

I have now found a different solution. the hard drives have been slung in the skip and I have some bigger ones on order.

I could spend days prating around with this and get no where..and still have two small HDD's in a JBOD array. where I can spend 120 Euros and buy some bigger drives!


I am doing a fresh backup to another drive at them moment and that has now shown up another new problem. stunningly slow direct computer to computer gigabit ethernet speed.

I am not getting more that about 9-10mb/s iPhoto libraries...600gb of data..saying 6 days to complete :(

NeilP
Advanced User
Advanced User
Posts: 221
Joined: 15 Jul 2012 11:45
Location: Jersey, Channel Islands, Europe
Status: Offline

Re: Cure for Invalid GPT detected?

#7

Post by NeilP »

Showing 932kb/second now!


:) :)

Post Reply

Return to “Basic storage concept”