Newbie trying to fix problems in my FreeNAS new install

Status
Not open for further replies.

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
Good morning one and all.

I am fairly new to this FreeNAS software, so forgive me for being a little green.

I just converted my Windows 2k8 server over to NAS to run a fileshare/PLEX box. So I think I am suffering from gremlins as I might not have done the whole thing “properly”

I am running FreeNAS as bank of Hard drives, basically, its hosting shows and movies I can easily replace or content I don’t care about.

So redundancy is a non issue for me, I am looking for Hard drive space.

This morning, I got an email saying one of my GPT tables is messed up
Code:
GEOM: ada0: the primary GPT table is corrupt or invalid.
GEOM: ada11: the primary GPT table is corrupt or invalid.
GEOM: ada2: the primary GPT table is corrupt or invalid.
GEOM: ada10: the primary GPT table is corrupt or invalid.

I am looking for help on how to fix it.

Basically, nothing is backed up, nor will it ever be. So I am happy to move content off the drives and run what ever commands are needed to resolve the issue.

I believe all the drives are working, I ran a S.M.A.R.T scan and no errors reported. (a few months ago)

Is there a simple set of commands I can run to clean it up?

Bellow are the contents of the email I received this morning, I have extrapolated the errors I could see, there may be more, but I would like to tackle them one at at time J

Thanks for your help in advance.
Code:
media-pc.local changes in mounted filesystems:
3,4d2
< MEDIA				 /mnt/MEDIA			  zfs	 rw,nfsv4acls	0 0
< MEDIA/media		   /mnt/MEDIA/media		zfs	 rw,nfsv4acls	0 0
7,8d4
< Storage					   /mnt/Storage			zfs	 rw,nfsv4acls	0 0
< Storage/storage			   /mnt/Storage/storage	zfs	 rw,nfsv4acls	0 0
20a17,20
> media				 /mnt/media			  zfs	 rw,nfsv4acls	0 0
> media/media		   /mnt/media/media		zfs	 rw,nfsv4acls	0 0
> storage					   /mnt/storage			zfs	 rw,nfsv4acls	0 0
> storage/storage			   /mnt/storage/storage	zfs	 rw,nfsv4acls	0 0

media-pc.local kernel log messages:
> GEOM_ELI: Device mirror/swap3.eli destroyed.
> GEOM_MIRROR: Device swap3: provider destroyed.
> GEOM_MIRROR: Device swap3 destroyed.
> GEOM: ada1: the primary GPT table is corrupt or invalid.
> GEOM: ada1: using the secondary instead -- recovery strongly advised.
> g_access(918): provider ada1p2 has error 6 set
> GEOM: ada2: the primary GPT table is corrupt or invalid.
> GEOM: ada2: using the secondary instead -- recovery strongly advised.
> GEOM: ada10: the primary GPT table is corrupt or invalid.
> GEOM: ada10: using the secondary instead -- recovery strongly advised.
> GEOM_MIRROR: Device mirror/swap3 launched (2/2).
> GEOM_ELI: Device mirror/swap3.eli created.
> GEOM_ELI: Encryption: AES-XTS 128
> GEOM_ELI:	 Crypto: hardware
> Failed to fully fault in a core file segment at VA 0x817793000 with size 0x4000 to be written at offset 0x5dca000 for process smbd
> Failed to fully fault in a core file segment at VA 0x81a056000 with size 0xd000 to be written at offset 0x857e000 for process smbd
> Failed to fully fault in a core file segment at VA 0x81a5e9000 with size 0x8000 to be written at offset 0x8907000 for process smbd
> pid 32691 (smbd), uid 0: exited on signal 6 (core dumped)
> GEOM_ELI: Device mirror/swap4.eli destroyed.
> GEOM_MIRROR: Device swap4: provider destroyed.
> GEOM_MIRROR: Device swap4 destroyed.
> GEOM: ada0: the primary GPT table is corrupt or invalid.
> GEOM: ada0: using the secondary instead -- recovery strongly advised.
> GEOM: ada11: the primary GPT table is corrupt or invalid.
> GEOM: ada11: using the secondary instead -- recovery strongly advised.
> GEOM_MIRROR: Device mirror/swap4 launched (2/2).
> GEOM_ELI: Device mirror/swap4.eli created.
> GEOM_ELI: Encryption: AES-XTS 128
> GEOM_ELI:	 Crypto: hardware
> GEOM_ELI: Device mirror/swap4.eli destroyed.
> GEOM_MIRROR: Device swap4: provider destroyed.
> GEOM_MIRROR: Device swap4 destroyed.
> GEOM: ada0: the primary GPT table is corrupt or invalid.
> GEOM: ada0: using the secondary instead -- recovery strongly advised.
> GEOM: ada11: the primary GPT table is corrupt or invalid.
> GEOM: ada11: using the secondary instead -- recovery strongly advised.
> GEOM_MIRROR: Device mirror/swap4 launched (2/2).
> GEOM_ELI: Device mirror/swap4.eli created.
> GEOM_ELI: Encryption: AES-XTS 128
> GEOM_ELI:	 Crypto: hardware
> GEOM_ELI: Device mirror/swap3.eli destroyed.
> GEOM_MIRROR: Device swap3: provider destroyed.
> GEOM_MIRROR: Device swap3 destroyed.
> GEOM: ada1: the primary GPT table is corrupt or invalid.
> GEOM: ada1: using the secondary instead -- recovery strongly advised.
> GEOM: ada2: the primary GPT table is corrupt or invalid.
> GEOM: ada2: using the secondary instead -- recovery strongly advised.
> GEOM: ada10: the primary GPT table is corrupt or invalid.
> GEOM: ada10: using the secondary instead -- recovery strongly advised.
> GEOM_MIRROR: Device mirror/swap3 launched (2/2).
> GEOM_ELI: Device mirror/swap3.eli created.
> GEOM_ELI: Encryption: AES-XTS 128
> GEOM_ELI:	 Crypto: hardware

-- End of security output --
 
Last edited by a moderator:

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
99% sure, the FREENAS version is 11. ?

hardware:

MB:

https://www.gigabyte.com/Motherboard/GA-H97M-D3H-rev-10

CPU : i5

Ram : DDR 3 8 gigs

Drives:

4 x 2GB Hard drives. (Seagate)

5 x 3GB hard drives. (mix and match)

2 x 4 TB Hard drives (western Digital)

Controller:

Syba SD-PEX40105 SYBA 8-Port SATA-3 6G Dual Chipset PCI-E 2.0 x1 slot controller card
 
Last edited by a moderator:

toadman

Guru
Joined
Jun 4, 2013
Messages
619
Sometimes people see those errors when they transplant a disk previously used (partitioned) into a FreeNAS system. What does zpool status give? You can use the following commands to diagnose further:

Code:
# gpart status
# gpart show  (you can optionally specify a specific drive)
# gpart recover /dev/ada0 (if needed)


This thread describes this a bit further. And some suggestions to pull the disk in question, wipe it with another system, then reinstall and resilver. https://forums.freenas.org/index.ph...ndary-instead-recovery-strongly-advise.62737/
 

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
thanks a bunch.

I will do this tonight and report back. definitely try this tonight
 

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
this is what I got the first time I run it, looks like there is no actual issue?
Code:
[root@media-pc ~]# gpart status																									
   Name  Status  Components																										
 ada0p1	  OK  ada0																											 
 ada0p2	  OK  ada0																											 
 ada1p1	  OK  ada1																											 
 ada1p2	  OK  ada1																											 
 ada2p1	  OK  ada2																											 
 ada2p2	  OK  ada2																											 
 ada3p1	  OK  ada3																											 
 ada3p2	  OK  ada3																											 
 ada4p1	  OK  ada4																											 
 ada4p2	  OK  ada4																											 
 ada5p1	  OK  ada5																											 
 ada5p2	  OK  ada5																											 
 ada6p1	  OK  ada6																											 
 ada6p2	  OK  ada6																											 
 ada7p1	  OK  ada7																											 
 ada7p2	  OK  ada7																											 
 ada8p1	  OK  ada8																											 
 ada8p2	  OK  ada8																											 
 ada9p1	  OK  ada9																											 
 ada9p2	  OK  ada9																											 
ada10p1	  OK  ada10																											
ada10p2	  OK  ada10																											
ada11p1	  OK  ada11																											
ada11p2	  OK  ada11
 
Last edited by a moderator:

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
Code:
[root@media-pc ~]# gpart show ada1																								
40  5860533088  ada1  GPT  (2.7T)																						
40		  88		- free -  (44K)																					
128	 4194304	 1  freebsd-swap  (2.0G)																				
4194432  5856338688	 2  freebsd-zfs  (2.7T)																				
5860533120		   8		- free -  (4.0K)																					
[root@media-pc ~]#																												
																																  
[root@media-pc ~]# gpart show ada2																								
40  5860533088  ada2  GPT  (2.7T)																						
40		  88		- free -  (44K)																					
128	 4194304	 1  freebsd-swap  (2.0G)																				
4194432  5856338688	 2  freebsd-zfs  (2.7T)																				
5860533120		   8		- free -  (4.0K)																					
[root@media-pc ~]#

root@media-pc ~]# gpart show ada0																								
40  3907029088  ada0  GPT  (1.8T)																						
40		  88		- free -  (44K)																					
128	 4194304	 1  freebsd-swap  (2.0G)																				
4194432  3902834688	 2  freebsd-zfs  (1.8T)																				
3907029120		   8		- free -  (4.0K)																					
[root@media-pc ~]#

[root@media-pc ~]# gpart show ada11																								
40  3907029088  ada11  GPT  (1.8T)																						
40		  88		 - free -  (44K)																					
128	 4194304	  1  freebsd-swap  (2.0G)																			  
4194432  3902834688	  2  freebsd-zfs  (1.8T)																				
3907029120		   8		 - free -  (4.0K)																				  
[root@media-pc ~]# ^C					  

root@media-pc ~]# gpart show ada10																								
40  5860533088  ada10  GPT  (2.7T)																						
40		  88		 - free -  (44K)																					
128	 4194304	  1  freebsd-swap  (2.0G)																			  
4194432  5856338688	  2  freebsd-zfs  (2.7T)																				
5860533120		   8		 - free -  (4.0K)																				  
[root@media-pc ~]#
 
Last edited by a moderator:

menglor

Dabbler
Joined
Aug 29, 2018
Messages
13
I am going to officiall close down this thread, the problem seems to have gone away.

tres weird.
 
Status
Not open for further replies.
Top