Using glabel together with fdisk and bsdlabel should work without issues, since only glabel is actually writing to the providers last sector.
The problem comes when you try to combine glabel with gpart and gmirror for example
- I've tried labeling a disk and then slicing it with gpart, but then I lose the labels.
- I've tried labeling the filesystem with the -L flag of newfs, when I create the filesystem, but when I use them with gmirror to create a raid-1, then I lose the entries in /dev/ufs
You can label the partitions using gpart, this way:
Code:
# gpart add -s <size> -t freebsd-ufs -l <your-label> <provider>
And then the labels go to /dev/gpt, but if you then use again those labels with gmirror again, you lose the labels.
Currently I cannot think of a good and clean way to put those labels in place, without losing them, after re-using them with gmirror of other GEOM tool.
Regards,
DNAeon