General Volume/Disk/Mirror question

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Ok I am a little confused but here we go. I installed FreeNAS in a box with 2 x 2TB drives. When I used the wizard I just used the auto setting. I set up the pool called storage-. I am assuming that it set up a raidz1 configuration but I'll be damned if I can figure out where to verify that.

1. Is there somewhere that displays the actual configuration?
2. Is there a way to "view" the data on the mirror to confirm that is actually present?

Everything seems to be working fine but trying to confirm it all.
 
Last edited by a moderator:

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Not sure if this is correct, but try:

Click storage on the top -> highlight your volume on that list (1st line I guess) -> click volume status on the bottom. On mine shows raidz2 and that "might" be it. For sure there are other ways from the shell, but I don't want to go there.


View attachment upload_2016-11-18_8-38-21.png
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
It would probably help to know which version you are running.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Not sure if this is correct, but try:

Click storage on the top -> highlight your volume on that list (1st line I guess) -> click volume status on the bottom. On mine shows raidz2 and that "might" be it. For sure there are other ways from the shell, but I don't want to go there.


View attachment 14646

Thanks, i think that answers part of it. Mine shows:
>storage-
>>mirror-0
ada1p2
ada0p2

Based on that I will assume that Freenas set up the mirror. So now I just need to confirm that the mirror IS actually occurring.

I believe I set things up correctly however just uncertain if there were additional steps to actually set up the mirror. I used another NAS app years ago and recall it had a file browser where I could view the data on disk.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Thanks, i think that answers part of it. Mine shows:
>storage-
>>mirror-0
ada1p2
ada0p2

Based on that I will assume that Freenas set up the mirror. So now I just need to confirm that the mirror IS actually occurring.

I believe I set things up correctly however just uncertain if there were additional steps to actually set up the mirror. I used another NAS app years ago and recall it had a file browser where I could view the data on disk.
Based on the output of Volume Status you posted above, you have created a mirror. Unfortunately FreeNAS does not have a built in browser for file views, you will have to set up permissions and shares for that.
FreeNAS has excellent documentation. The manual will be invaluable for getting started with the more basic functions of a storage server and a whole lot more
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Based on the output of Volume Status you posted above, you have created a mirror. Unfortunately FreeNAS does not have a built in browser for file views, you will have to set up permissions and shares for that.
FreeNAS has excellent documentation. The manual will be invaluable for getting started with the more basic functions of a storage server and a whole lot more

I have the shares and permissions set up, thats not what I am after. I am specifically looking for a way to verify the data exists on the mirrored drive itself. I have looked through the docs but I am not finding what I am after. My guess is that it is that I am not on the same page with nomenclature.

Both drives show that they are online and I can assume that ada0p2 is the primary drive and ada1p2 is the mirror so in a sense looking to compare the two drives.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
When you talk about confirming that the data is there what do you expect to confirm? It sounds like you have your share setup and have put stuff there. There isn't anything to confirm if you can see the data in the share.

Neither drive is the main drive. Data gets written to both and read from both.

Your scaring me a little bit because your understanding is very strange. It would be an excellent idea to read some of the threads in my signature. The noob guide is a great starting point.

Sent from my Nexus 5X using Tapatalk
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Both drives show that they are online and I can assume that ada0p2 is the primary drive and ada1p2 is the mirror so in a sense looking to compare the two drives.
As far as the OS is concerned, it "sees" the mirror as one drive (as SweetAndLow has correctly stated)
I'm not sure exactly what "proof" or confirmation you are looking for. If your data is backed up elsewhere,
you could remove one of the drives in the mirror and your data should still be accessible. FreeNAS will give a warning
that your pool is "degraded" but the data will be there from the drive that is still online.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Your scaring me a little bit because your understanding is very strange. It would be an excellent idea to read some of the threads in my signature. The noob guide is a great starting point.
Ok I get that it (Freenas) is "seeing" it as one drive. Perfect that is what I would expect in general. What I was meaning was viewing the individual drives singularly, in a sense a compare of the two. i.e there are 5000 files on ada0 and 5000 on ada1.

I have to believe that there is a simple method to compare the two physical drives short of physically removing the drive from the box. That's all I am looking to do. I know that my data is there from viewing in windows explorer but looking to confirm that it is indeed actually being written to both physical drives.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
I have to believe that there is a simple method to compare the two physical drives short of physically removing the drive from the box. That's all I am looking to do. I know that my data is there from viewing in windows explorer but looking to confirm that it is indeed actually being written to both physical drives.
If I understand your need for confirmation, this is available in real time.
From the GUI, go to Reporting > Disk while the machine downloads a file or reads existing files, you should see the activity
for each disk in the Vdev (in your case, a two disk mirror) during the activity as it happens.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Verifying the data is being written to both disks is hard. Look at size and write activity.

Sent from my Nexus 5X using Tapatalk
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Can you provide the output of zfs list and zpool status -v? Please either paste screenshots or text inside "code" tags.
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
Can you provide the output of zfs list and zpool status -v? Please either paste screenshots or text inside "code" tags.
Code:
[root@freenas ~]# zfs list																										  
NAME														USED  AVAIL  REFER  MOUNTPOINT										  
freenas-boot												634M  6.65G	31K  none												
freenas-boot/ROOT										   627M  6.65G	25K  none												
freenas-boot/ROOT/Initial-Install							 1K  6.65G   622M  legacy											  
freenas-boot/ROOT/Wizard-2016-11-17_15:01:12				  1K  6.65G   622M  legacy											  
freenas-boot/ROOT/default								   627M  6.65G   624M  legacy											  
freenas-boot/grub										  6.33M  6.65G  6.33M  legacy											  
storage-													114G  1.64T  24.7G  /mnt/storage-									  
storage-/.system										   10.6M  1.64T  8.61M  legacy											  
storage-/.system/configs-810048d7feed436fae88f4409435135f   172K  1.64T   172K  legacy											  
storage-/.system/cores									  808K  1.64T   808K  legacy											  
storage-/.system/rrd-810048d7feed436fae88f4409435135f		96K  1.64T	96K  legacy											  
storage-/.system/samba4									 368K  1.64T   368K  legacy											  
storage-/.system/syslog-810048d7feed436fae88f4409435135f	568K  1.64T   568K  legacy											  
storage-/jails											   96K  1.64T	96K  /mnt/storage-/jails								
storage-/shared											89.6G  1.64T  89.6G  /mnt/storage-/shared								
[root@freenas ~]#									  
								


Code:
[root@freenas ~]# zpool ststus -v																								  
unrecognized command 'ststus'																									  
usage: zpool command args ...																									  
where 'command' is one of the following:																							
																																	
		create [-fnd] [-o property=value] ...																					  
			[-O file-system-property=value] ...																					
			[-m mountpoint] [-R root] <pool> <vdev> ...																			
		destroy [-f] <pool>																										
																																	
		add [-fn] <pool> <vdev> ...																								
		remove <pool> <device> ...																								
																																	
		labelclear [-f] <vdev>																									
																																	
		list [-Hpv] [-o property[,...]] [-T d|u] [pool] ... [interval [count]]													
		iostat [-v] [-T d|u] [pool] ... [interval [count]]																		
		status [-vx] [-T d|u] [pool] ... [interval [count]]																		
																																	
		online [-e] <pool> <device> ...																							
		offline [-t] <pool> <device> ...																							
		clear [-nF] <pool> [device]																								
		reopen <pool>																											  
																																	
		attach [-f] <pool> <device> <new-device>																					
		detach <pool> <device>																									
		replace [-f] <pool> <device> [new-device]																				  
		split [-n] [-R altroot] [-o mntopts]																						
			[-o property=value] <pool> <newpool> [<device> ...]																	
																																	
		scrub [-s] <pool> ...																									  
																																	
		import [-d dir] [-D]																										
		import [-d dir | -c cachefile] [-F [-n]] <pool | id>																		
		import [-o mntopts] [-o property=value] ...																				
			[-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]] -a													
		import [-o mntopts] [-o property=value] ...																				
			[-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]]														
			<pool | id> [newpool]																								  
		export [-f] <pool> ...																									
		upgrade [-v]																												
		upgrade [-V version] <-a | pool ...>																						
		reguid <pool>																											  
																																	
		history [-il] [<pool>] ...																								
		get [-Hp] [-o "all" | field[,...]] <"all" | property[,...]> <pool> ...													
		set <property=value> <pool>																								
[root@freenas ~]#				  
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
You had a typo in your command. It's zpool status -v
 

mrramsey

Dabbler
Joined
Nov 17, 2016
Messages
49
You had a typo in your command. It's zpool status -v

Sorry about that... fat finger friday i guess.
Code:
[root@freenas ~]# zpool status -v																								   
  pool: freenas-boot																												
state: ONLINE																													 
  scan: none requested																											 
config:																															 
																																	
		NAME										  STATE	 READ WRITE CKSUM													
		freenas-boot								  ONLINE	   0	 0	 0													
		  gptid/759ac1c3-acc4-11e6-9597-001018cc0b04  ONLINE	   0	 0	 0													
																																	
errors: No known data errors																										
																																	
  pool: storage-																													
state: ONLINE																													 
  scan: none requested																											 
config:																															 
																																	
		NAME											STATE	 READ WRITE CKSUM												 
		storage-										ONLINE	   0	 0	 0												 
		  mirror-0									  ONLINE	   0	 0	 0												 
			gptid/89c824d7-ad00-11e6-a1bc-001018cc0b04  ONLINE	   0	 0	 0												 
			gptid/8a642467-ad00-11e6-a1bc-001018cc0b04  ONLINE	   0	 0	 0												 
																																	
errors: No known data errors																										
[root@freenas ~]#
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You have a healthy mirror. That means, necessarily, that both disks are in sync. If the system detects that it's otherwise, it will let you know (assuming you've set up email notifications as you should).
 

abhishek

Cadet
Joined
Jan 16, 2019
Messages
1
I have custom nas with AMD FX(tm) 8 Core processor with 2x8 GB RAM and Zotac 2GB Graphics Card

I created pool mirror-0 how to check mirror drive and how to verify that data get stored in mirrored drive?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
how to check mirror drive and how to verify that data get stored in mirrored drive?
You do exactly what I said above: look at the pool status. If it says the pool is healthy, the data is stored on the mirrored drive.
 
Top