Thread: glabels and GPT
View Single Post
  #8   (View Single Post)  
Old 27th January 2010
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

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
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote