rslocalhost
Dabbler
- Joined
- Jan 1, 2018
- Messages
- 29
(FreeNAS 11.1 Release)
Having lots of drives, I'd like more descriptive names that ada10p2, so I can figure out which drive is in which bay easily without referring to the sheet I made. Reading up on this, gpt labels seem to be the answer. But apparently I'm doing something wrong. Can anyone spot why I'm getting the error?
I start by naming a partition:
Now to check it really worked:
OK, it's there. Now to use it, to say attach to existing mirror in the pool named system.
What am I missing? If I use the gptid of the partition (edited out of the gpart list command above), it works.
Background if anyone cares:
I want to do this for two reasons:
However, with mirrors, I can also attach a third disk to the mirror (not from the gui near as I can tell, has to be command line). I have both originals online while the new disk gets resilvered and less risk if one of the original disks decides to give me errors. Once the resilver is complete, I can then detach one of the originals and repeat. (Or just do the 2nd new disk before detaching the 2 originals.)
The problem is this involves typing in the gptid. Have you seen that? Easy to make a mistake. Bay numbers are easier to type, and type correctly. Yes, I understand I must make sure the labels are unique. Right now I'm trying this out on a test machine.
Having lots of drives, I'd like more descriptive names that ada10p2, so I can figure out which drive is in which bay easily without referring to the sheet I made. Reading up on this, gpt labels seem to be the answer. But apparently I'm doing something wrong. Can anyone spot why I'm getting the error?
I start by naming a partition:
Code:
[root@freenas ~]# gpart modify -i 1 -l disk10 /dev/ada10 ada10p1 modified
Now to check it really worked:
Code:
[root@freenas ~]# gpart list ada10 |less Geom name: ada10 scheme: GPT ... Providers: 1. Name: ada10p1 ... label: disk10 ....
OK, it's there. Now to use it, to say attach to existing mirror in the pool named system.
Code:
[root@freenas ~]# zpool attach system gptid/6b5a6b36-ecab-11e7-8382-080027f18fef gpt/disk10 cannot open 'gpt/disk10': no such GEOM provider must be a full path or shorthand device name
What am I missing? If I use the gptid of the partition (edited out of the gpart list command above), it works.
Background if anyone cares:
I want to do this for two reasons:
- It is recommended by the authors of the ZFS book. I figure they know better than me at this point.
- I am starting to upgrade my mirrors to larger drives.
However, with mirrors, I can also attach a third disk to the mirror (not from the gui near as I can tell, has to be command line). I have both originals online while the new disk gets resilvered and less risk if one of the original disks decides to give me errors. Once the resilver is complete, I can then detach one of the originals and repeat. (Or just do the 2nd new disk before detaching the 2 originals.)
The problem is this involves typing in the gptid. Have you seen that? Easy to make a mistake. Bay numbers are easier to type, and type correctly. Yes, I understand I must make sure the labels are unique. Right now I'm trying this out on a test machine.
Last edited by a moderator: