Striped mirrors not setup correctly

Status
Not open for further replies.

raidoh

Dabbler
Joined
Jul 2, 2015
Messages
12
I have a FreeNAS Mini (4x HDD) with 4x 3TB drives. It's supposed to be setup as a RAID 0/1 striped mirror: 1 mirror extended by 1 mirror. I'd expect this to show roughly 6TB of disk space, but it shows 3TB leading me to believe the second mirror is a mirror of the first instead of an extension. I see two mirrors on the volume in the GUI. Is there a way to verify what I'm seeing is truly a mirror of a mirror instead of a stripe? Is there a way to remove the second mirror and recreate it without destroying the data on the first mirror?

I took ada3 offline but ada4 wouldn't go offline since it was the only remaining disk in mirror-1.

Code:
[root@freenas] ~# zpool status
  pool: FileCabinet
state: DEGRADED
status: One or more devices has been taken offline by the administrator.
  Sufficient replicas exist for the pool to continue functioning in a
  degraded state.
action: Online the device using 'zpool online' or replace the device with
  'zpool replace'.
  scan: scrub repaired 0 in 14h59m with 0 errors on Sun Jul 30 15:00:08 2017
config:

  NAME  STATE  READ WRITE CKSUM
  FileCabinet  DEGRADED  0  0  0
  mirror-0  ONLINE  0  0  0
  gptid/2ae71384-031d-11e5-8ab1-d0509964a848.eli  ONLINE  0  0  0
  gptid/2b53ebc2-031d-11e5-8ab1-d0509964a848.eli  ONLINE  0  0  0
  mirror-1  DEGRADED  0  0  0
  16845419496358185252  OFFLINE  0  0  0  was /dev/gptid/72edaf24-2119-11e5-bd2c-d0509964a848.eli
  gptid/737add30-2119-11e5-bd2c-d0509964a848.eli  ONLINE  0  0  0

errors: No known data errors

  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0h0m with 0 errors on Tue Aug  1 03:45:57 2017
config:

  NAME  STATE  READ WRITE CKSUM
  freenas-boot  ONLINE  0  0  0
  gptid/a29f936c-ce61-11e4-be8b-d0509964a848  ONLINE  0  0  0

errors: No known data errors
 
Last edited by a moderator:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,466
Is there a way to verify what I'm seeing is truly a mirror of a mirror
No, there's no such thing in ZFS. You do have two mirrors striped. What's the output of zpool list?
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
In addition to what danb35 said, no, you cannot remove the 2nd mirror without detroying your pool.

We'll wait to see the results of what zpool list shows.
 

raidoh

Dabbler
Joined
Jul 2, 2015
Messages
12
Thanks danb35 and gpsguy for the zpool list command. zpool list verifies it's striped and the expected size. I replaced the ada3 disk, which was going bad and prompted this inspection.

Code:
NAME		   SIZE  ALLOC   FREE  EXPANDSZ   FRAG	CAP  DEDUP  HEALTH  ALTROO
T																			 
FileCabinet   5.44T  2.30T  3.14T		 -	39%	42%  1.00x  ONLINE  /mnt
freenas-boot  14.9G  5.64G  9.23G		 -	  -	37%  1.00x  ONLINE  -	
 
Last edited by a moderator:
Status
Not open for further replies.
Top