I have mirrored two disks which present their hw-serial numbers as diskid labels. When I stop this mirror, it is immediately picked up again via the labels. When I stop that instance of the mirror, it is immediately picked up via the main providers: root@hex:/ # gmirror status Name Status Components mirror/m2 COMPLETE ada4 (ACTIVE) ada6 (ACTIVE) root@hex:/ # gmirror stop m2 root@hex:/ # gmirror status Name Status Components mirror/m2 COMPLETE diskid/DISK-9XF0GDQ7 (ACTIVE) diskid/DISK-9SP13XMP (ACTIVE) root@hex:/ # gmirror stop m2 root@hex:/ # gmirror status Name Status Components mirror/m2 COMPLETE ada4 (ACTIVE) ada6 (ACTIVE) Workaround: `gmirror configure -h m2` configures the provider name in the gmirror metadata and prevents this.
(In reply to Poul-Henning Kamp from comment #0) > I have mirrored two disks which present their hw-serial numbers as diskid > labels. > > When I stop this mirror, it is immediately picked up again via the labels. > > When I stop that instance of the mirror, it is immediately picked up via the > main providers: Yeah, someone has designed this automatic tasting and called this as feature :) > Workaround: `gmirror configure -h m2` configures the provider name in the > gmirror metadata and prevents this. Also you can use `gmirror destroy` or just disable unneeded/unused glabel types.
I met this many years ago and it was really annoying "feature". I think this problem exist with gjournal too. It would be really nice if this auto-tasting can be disabled by some sysctl. I stopped using labels because of this feature/bug.