How to rename device in pool to its gptid?

Status
Not open for further replies.

4M8l93

Cadet
Joined
Jan 16, 2016
Messages
4
Hi,

currently my pool consists of three devices which zpool status shows as
gptid/$firstid
gptid/$secondid
ada3p2

I want to reconfigure my pool such that it also uses ada3p2 by it's gptid, i.e. I want zpool status to show
gptid/$firstid
gptid/$secondid
gptid/$thridid
in the end.

I have googled a bit but unfortunately I haven't found any solution. There might be an old post in this forum stating that this is just not possible (I cannot recall the details). Is this really not possible?
 

4M8l93

Cadet
Joined
Jan 16, 2016
Messages
4
Thanks m0nkey_, now I remember that I tried
zpool offline pool ada3p2
zpool online pool gptid/$thridid
but there was some error message saying something like gptid/$thridid is not a device in this pool.

What will happen if I do zpool replace pool ada3p2 gptid/$thridid? Will ZFS realize that ada3p2 and gptid/$thridid are just two different names for the same thing - or will it do a full resilver?
 
Status
Not open for further replies.
Top