FreeNAS 11.2 does not allow replacing a disk in a Pool

Status
Not open for further replies.

OltreXR4

Dabbler
Joined
Aug 14, 2018
Messages
14
Hello,

After an error message I have substituted physically the failing disk of a Pool, following the instruction for this version of FreeNas I have put offline the disk, substitute it and then tried to replace.
From the GUI I get this message:
Code:
Select a valid choice. da47 is not one of the available choices

From the command line I have first checked which are the DA for the new disk then which was the gptid and then run the command :
Code:
# zpool replace -f Pool-2 /dev/gptid/440095da-a217-11e8-bf5f-e41f13e5b4c8 /dev/da47
cannot replace /dev/gptid/440095da-a217-11e8-bf5f-e41f13e5b4c8 with /dev/da47: no such pool or dataset

Of course the Pool name is correct

The gptid was retrieved from the zpool status:
Code:
			gptid/c86354be-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/ca154ea4-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			11930542730379889181						OFFLINE	  0	 0	 0  was /dev/gptid/440095da-a217-11e8-bf5f-e41f13e5b4c8


But as you can see I am not able to replace it.

Tried to google and tested several solutions .... no way.

I have read several posts about ata disks but I have not found specific information for scsi disk.

Could you please help me?

Thanks
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Can you get us screenshots of the GUI?
 

OltreXR4

Dabbler
Joined
Aug 14, 2018
Messages
14
In the while I have done some additional commands:
Code:
# dmesg | grep disk20
GEOM_MULTIPATH: disk20 created
GEOM_MULTIPATH: da47 added to disk20
GEOM_MULTIPATH: da47 is now active path in disk20
GEOM_MULTIPATH: da46 added to disk20

from gpart show:
Code:
=>	   63  879097904  multipath/disk20  MBR  (419G)
		 63  879097904					- free -  (419G)

Then I run:
Code:
zpool replace Pool-2 /dev/gptid/440095da-a217-11e8-bf5f-e41f13e5b4c8 multipath/disk20

now it seems it is resilvering ....
Code:
# zpool status Pool-2
  pool: Pool-2
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
		continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Wed Aug 29 16:51:59 2018
		1.92T scanned at 854M/s, 1.20T issued at 533M/s, 1.92T total
		30.3G resilvered, 62.40% done, 0 days 00:23:39 to go
config:

		NAME											STATE	 READ WRITE CKSUM
		Pool-2										  DEGRADED	 0	 0	 0
		  raidz2-0									  ONLINE	   0	 0	 0
			gptid/b91e246e-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/2696dd85-a5f0-11e8-9265-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/bc7c598d-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/be2b66a2-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/bfd73ce8-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/c18b1015-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
		  raidz2-1									  DEGRADED	 0	 0	 0
			gptid/c357238b-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/c5080709-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/744a778d-a5f0-11e8-9265-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/c86354be-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/ca154ea4-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			replacing-5								 OFFLINE	  0	 0	 0
			  11930542730379889181					  OFFLINE	  0	 0	 0  was /dev/gptid/440095da-a217-11e8-bf5f-e41f13e5b4c8
			  multipath/disk20						  ONLINE	   0	 0	 0
		logs
		  mirror-2									  ONLINE	   0	 0	 0
			gptid/cc2b104e-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
			gptid/cc77c45f-f0cc-11e5-885e-e41f13e5b4c8  ONLINE	   0	 0	 0
		cache
		  gptid/167c8afe-f0cd-11e5-885e-e41f13e5b4c8	ONLINE	   0	 0	 0

errors: No known data errors


The question is if this is the right command ....

gpart show is not visualizing any information for disk20 now while for another disk used in the pool I get:
Code:
=>		34  3907029100  multipath/disk24  GPT  (1.8T)
		  34		  94					- free -  (47K)
		 128	 4194304				 1  freebsd-swap  (2.0G)
	 4194432  3902834696				 2  freebsd-zfs  (1.8T)
  3907029128		   6					- free -  (3.0K)


Thanks
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Woah, multipath? That's an important detail you shouldn't leave out. Unfortunately, I have approximately zero experience with that...
 
D

dlavigne

Guest
Please create a report at bugs.freenas.org so we can verify if the UI/middleware is doing the right thing.
 
Status
Not open for further replies.
Top