Create GMIRROR only one slice

Дмитрий Бехтерев dbehterev at
Mon Mar 29 18:48:46 UTC 2010

---------- Пересланное сообщение ----------
От кого: Дмитрий Бехтерев <dbehterev at>
Дата: 25 марта 2010 г. 19:03
Тема: Create GMIRROR only one slice
Кому: freebsd-geom at

Hello all!
I have problem with creating GMIRROR on select slice. So, I have two slice:
ls /dev | grep ad4

fdisk /dev/ad4
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 29350692 (14331 Meg), flag 80 (active)
    beg: cyl 0/ head 1/ sector 1;
    end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 29350755, size 595786590 (290911 Meg), flag 0
    beg: cyl 1023/ head 255/ sector 63;
    end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
The data for partition 4 is:

On first slice I created ufs slice and on second - ZFS pool (I build it with
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local)
tank on /tank (zfs, local)
tank/usr on /usr (zfs, local)
tank/var on /var (zfs, local)

glabel list
Geom name: ad4s2p1

I want GMIRROR'ing /dev/ad4s1:
gmirror label -v -b round-robin gm0 /dev/ad4s1
but I get error "Operation not permitted" (although I set sysctl
MY OS: FreeBSD 7.3 Stable.
What should I do to do this?
Thanks all.

More information about the freebsd-questions mailing list