I am trying to understand how to create gmirror with a GPT partition table. All of the how-tos in the whole internet starting from [cmd=]gmirror label gm0 ada0 ada1[/cmd] which is totally incorrect, because of replacing failed hard disk will be impossible if size of new hard disk will be bit smaller than size of mirror.
The correct way with slices was [cmd=]gmirror label gm0s1 ada0s1 ada1s1[/cmd], with size of slices reduced by 10-20 MB of hard disk size, but GPT doesn't have slices. Another way is creating separate mirrors for each GPT partition. This way is wrong too, cause after emergency reboot or power down all that mirrors will try rebuild simultaneously. While rebuilding performance of server storage system will be reduced dramatically or even halt until rebuild completed.
So, which is the correct way to user gmirror with GPT-like slices? I know about zfs, but I can't set it up at the moment, because of low memory on my servers.
The correct way with slices was [cmd=]gmirror label gm0s1 ada0s1 ada1s1[/cmd], with size of slices reduced by 10-20 MB of hard disk size, but GPT doesn't have slices. Another way is creating separate mirrors for each GPT partition. This way is wrong too, cause after emergency reboot or power down all that mirrors will try rebuild simultaneously. While rebuilding performance of server storage system will be reduced dramatically or even halt until rebuild completed.
So, which is the correct way to user gmirror with GPT-like slices? I know about zfs, but I can't set it up at the moment, because of low memory on my servers.