Hi fellows,
only gMirror seems not being able to stop mirror if mirror was setup/configured with GPT partitions. Here is the code for reproducing the bug:
Prepare Devices:
Set up / configure the mirror:
^^ Huh? shows ada1p1 insted of label ... hmmm maybe thats wanted?!
Stoping the mirror:
^^ Huh? Test mirror didn't stop as expected ;/ but it switched from its regular dev name to its label (as actually originally configured ...?!) This switching arround will happen as many times as one may run the "gmirror stop" command ... till eternity
Olny workaround I figured thus far:
As mentioned above already - ONLY gMirror seems to b!tch around when configured with GPT partitions. Havn't had any issues using gconcat and GPT partitions.
P.S.: this does not only happen when configured with labels:
only gMirror seems not being able to stop mirror if mirror was setup/configured with GPT partitions. Here is the code for reproducing the bug:
Prepare Devices:
Code:
FreeBSD [~]# gpart destroy -F ada1
ada1 destroyed
FreeBSD [~]# gpart destroy -F ada2
ada2 destroyed
FreeBSD [~]#
FreeBSD [~]#
FreeBSD [~]# gpart create -s GPT ada1
ada1 created
FreeBSD [~]# gpart create -s GPT ada2
ada2 created
FreeBSD [~]#
FreeBSD [~]#
FreeBSD [~]# gpart add -l 'Storage' -t freebsd-ufs ada1
ada1p1 added
FreeBSD [~]# gpart add -l 'StorageParity' -t freebsd-ufs ada2
ada2p1 added
Set up / configure the mirror:
Code:
FreeBSD [~]# gmirror label -b round-robin Test gpt/Storage gpt/StorageParity
FreeBSD [~]# gmirror status
Name Status Components
mirror/Test COMPLETE ada1p1 (ACTIVE)
ada2p1 (ACTIVE)
Stoping the mirror:
Code:
FreeBSD [~]# gmirror stop Test
FreeBSD [~]# gmirror status
Name Status Components
mirror/Test COMPLETE gpt/StorageParity (ACTIVE)
gpt/Storage (ACTIVE)
Olny workaround I figured thus far:
Code:
FreeBSD [~]# gmirror deactivate Test gpt/Storage
FreeBSD [~]# gmirror deactivate Test gpt/StorageParity
FreeBSD [~]# gmirror status
FreeBSD [~]# gmirror clear gpt/Storage
FreeBSD [~]# gmirror clear gpt/StorageParity
As mentioned above already - ONLY gMirror seems to b!tch around when configured with GPT partitions. Havn't had any issues using gconcat and GPT partitions.
P.S.: this does not only happen when configured with labels:
Code:
FreeBSD [~]# gmirror label -b round-robin Test ada1p1 ada2p1
FreeBSD [~]# gmirror status
Name Status Components
mirror/Test COMPLETE ada1p1 (ACTIVE)
ada2p1 (ACTIVE)
FreeBSD [~]# gmirror stop Test
FreeBSD [~]# gmirror status
Name Status Components
mirror/Test COMPLETE gpt/StorageParity (ACTIVE)
gpt/Storage (ACTIVE)