zpool storage oddity

Status
Not open for further replies.

PL4R

Cadet
Joined
Nov 5, 2018
Messages
3
Hi,

I'm experiencing an oddity within a zpool which I have never seen before;

I have a zpool called "RAID5" (which is actually RAIDz) which has a single disk showing as striped, as per;

upload_2018-11-5_11-26-39.png


The device ada3p2 is supposed to be a hot standby, with devices ada0p2, ada1p2 & ada2p2 in a RAIDz.

From the output of `zpool status RAID5` I see this:

Code:
root@freeman:~ # zpool status RAID5
  pool: RAID5
 state: ONLINE
  scan: scrub repaired 0 in 0 days 07:54:31 with 0 errors on Sun Nov  4 07:54:32 2018
config:

	NAME											STATE	 READ WRITE CKSUM
	RAID5										   ONLINE	   0	 0	 0
	  raidz1-0									  ONLINE	   0	 0	 0
		gptid/2590b744-9e42-11e7-8a66-00fd45fcb204  ONLINE	   0	 0	 0
		gptid/263c660d-9e42-11e7-8a66-00fd45fcb204  ONLINE	   0	 0	 0
		gptid/26e40728-9e42-11e7-8a66-00fd45fcb204  ONLINE	   0	 0	 0
	  gptid/fcd695d7-a207-11e7-ac26-00fd45fcb204	ONLINE	   0	 0	 0


I'm in need of some guidance/help to figure out exactly whats going on here & how to fix it moving forward.

I'm running Freenas 11.1-U4.

Any help would be gratefully received and appreciated.
 

Attachments

  • upload_2018-11-5_11-23-43.png
    upload_2018-11-5_11-23-43.png
    233.8 KB · Views: 253
Joined
Jul 3, 2015
Messages
926
It looks to me like you have two vdevs in your zpool, 3 disk Z1 and 1 disk stripe. This means if that one disk was to fail you would loose your entire pool. If it were a spare it should show the word 'spares' above the vdev itself. Sorry buddy.

PS: To fix it you need to backup your data, blow your pool and start again buddy.
 
Last edited:

PL4R

Cadet
Joined
Nov 5, 2018
Messages
3
It looks to me like you have two vdevs in your zpool, 3 disk Z1 and 1 disk stripe. This means if that one disk was to fail you would loose your entire pool. If it were a spare it should show the work 'spares' above the vdev itself. Sorry buddy.

Thanks for the reply. The more I looked at it, the more it started to look like this was the case; I'm thankful for the confirmation (more for my sanity sake, than anything else).

Ahh well, I feel a data copy, zpool recreation & data restore is in my future ;)
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
Ahh well, I feel a data copy, zpool recreation & data restore is in my future
Yes, sorry, I don't know how it got that way, but it is the only fix. You have to be careful when you build it. In this situation though, it would be better to just build it as a RAIDz2 instead of building it as a RAIDz1 and have a hot-spare. In RAIDz2, the data is already present on the disk and no rebuild is needed. If you have the disk as a hot-spare, then your pool would be degraded while the rebuild happens, only after the hot-spare is called into service.
 

PL4R

Cadet
Joined
Nov 5, 2018
Messages
3
Yes, sorry, I don't know how it got that way, but it is the only fix. You have to be careful when you build it. In this situation though, it would be better to just build it as a RAIDz2 instead of building it as a RAIDz1 and have a hot-spare. In RAIDz2, the data is already present on the disk and no rebuild is needed. If you have the disk as a hot-spare, then your pool would be degraded while the rebuild happens, only after the hot-spare is called into service.


I'll definitely rethink the strategy when I re-create the zpool; if I'm going through the trouble of copying data off and starting from scratch, may as well do it right.
 
Status
Not open for further replies.
Top