Is my RAID-Z2 correct?

janb

Cadet
Joined
Aug 31, 2018
Messages
3
Hello, i migrated from CentOS file server RAID5 (4x4TB) to FreeNAS with same disks few days ago. Changed to ZFS and created RAID-Z2.
Today I added fifth 4TB drive and expanded volume as a "stripe". I feel it was wrong choice be cause the new drive shows up separately as "stripe".
Can someone tell me wheter is that correct RAID-Z2 setup or not?

On samba share it shows as 10.3 TB network drive.

Screenshot of volume from web interface:
https://image.ibb.co/gb5yCz/screenshot.png


zpool status:
Code:
  pool: RAID																														
 state: ONLINE																													 
  scan: scrub in progress since Fri Aug 31 18:40:20 2018																			
	   3.58T scanned at 3.25G/s, 445G issued at 404M/s, 6.85T total																
	   0 repaired, 6.35% done, 0 days 04:37:24 to go																			   
config:																															 
																																   
	   NAME											STATE	 READ WRITE CKSUM												 
	   RAID											ONLINE	   0	 0	 0												 
		 raidz2-0									  ONLINE	   0	 0	 0												 
		   gptid/ce50ebd9-a8a1-11e8-9b1b-309c2344e716  ONLINE	   0	 0	 0												 
		   gptid/cf62eb3a-a8a1-11e8-9b1b-309c2344e716  ONLINE	   0	 0	 0												 
		   gptid/d08aa040-a8a1-11e8-9b1b-309c2344e716  ONLINE	   0	 0	 0												 
		   gptid/d90e6039-a8a1-11e8-9b1b-309c2344e716  ONLINE	   0	 0	 0												 
		 gptid/58efbc5e-ad3b-11e8-a963-309c2344e716	ONLINE	   0	 0	 0												 
																																   
errors: No known data errors																										
																																   
  pool: freenas-boot																												
 state: ONLINE																													 
  scan: none requested																											 
config:																															 
																																   
	   NAME		STATE	 READ WRITE CKSUM																					 
	   freenas-boot  ONLINE	   0	 0	 0																					
		 ada0p2	ONLINE	   0	 0	 0																					 
																																   
errors: No known data errors


https://image.ibb.co/gb5yCz/screenshot.png
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Can someone tell me wheter is that correct RAID-Z2 setup or not?
No it is not. You just added a single point of failure to your pool by striping the single drive in. Your best bet would be to destroy the pool and re create it with all the drives so you have some redundancy.
 
Joined
Dec 29, 2014
Messages
1,135
You would want to add another vdev (what you were doing) with the same number of drives (of the same size) and same type (RAIDZ2). Otherwise you have to destroy and recreate the pool to make config changes like that. There is alleged to be support for more granular adds (like what you wanted to do) at some point down the road.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

TAC

Contributor
Joined
Feb 16, 2014
Messages
152
Top