Other gpart restore

Hello,

I have a raidz2-0 array with 5 drives + 1 spare.

The case has 8 HD slots.

After one of the drives failed, I have installed a new, larger drive in one of the empty slots, and did gpart backup ada0 > ada0.backup and then gpart restore -l ada3 < ada0.backup before removing the failing drive. I have also added bootcode to the new drive.

I have 2 pools on this array and both of them are restored after zpool replace.

I then replaced another one of the old drives with the same procedure, and both pools are fine.

However, only now noticed that gpart restore of course restored the label as well, and now labels on the 6 disks look like this:

Code:
# gpart list | grep label
   label: (null)
   label: disk0
   label: data0
   label: (null)
   label: disk1
   label: data1
   label: (null)
   label: disk0
   label: data0
   label: (null)
   label: disk3
   label: data3
   label: (null)
   label: disk4
   label: data4
   label: (null)
   label: disk0
   label: data0

Although the computer boots from the zroot pool and everything else seems to be working fine, I'm wondering what kind of trouble am I getting into by having the same labels on different disks?
 
As long you do not reference the labels, none. E.g. I have referenced to partition labels in my fstab(5):
Code:
/dev/gpt/DUMP                    none        swap                sw        0 0
zpool(8) labels the disks with portable EFI labels, when given whole disks. Otherwise, you can of course label the individual disks & partitions differently to your taste, e.g. to contain the slot # in the array, or a # or name that you glue on them with a paper label. Use gpart modify -l label or glabel(8), and understand the difference between the two & filesystem labels; these are 3 different types of labels. Do not use the historic disklabel(8)... AFAIK, it is ok to label a device (volume) provided by ZFS, but you must not overwrite ZFS's own label on (whole) disks provided to ZFS.
 
Great! Then feel free to mark this thread as "solved", to give others who search the forum an indication that this thread contains a solution: On the 1st post, click "..." -> "edit thread" -> prefix: "solved"
 
Back
Top