Date: Mon, 29 Mar 2010 21:10:42 +0100 From: krad <kraduk@googlemail.com> To: =?KOI8-R?B?5M3J1NLJyiDixcjUxdLF1w==?= <dbehterev@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Create GMIRROR only one slice Message-ID: <d36406631003291310x15025173l5cb34e7aee9371ba@mail.gmail.com> In-Reply-To: <7aaa60421003291119s53e21ff6reb2b39e0690b65c3@mail.gmail.com> References: <7aaa60421003250703hf24d3c1icae624982210c094@mail.gmail.com> <7aaa60421003291119s53e21ff6reb2b39e0690b65c3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/3/29 =E4=CD=C9=D4=D2=C9=CA =E2=C5=C8=D4=C5=D2=C5=D7 <dbehterev@gmail.c= om> > ---------- =F0=C5=D2=C5=D3=CC=C1=CE=CE=CF=C5 =D3=CF=CF=C2=DD=C5=CE=C9=C5 = ---------- > =EF=D4 =CB=CF=C7=CF: =E4=CD=C9=D4=D2=C9=CA =E2=C5=C8=D4=C5=D2=C5=D7 <dbeh= terev@gmail.com> > =E4=C1=D4=C1: 25 =CD=C1=D2=D4=C1 2010 =C7. 19:03 > =F4=C5=CD=C1: Create GMIRROR only one slice > =EB=CF=CD=D5: freebsd-geom@freebsd.org > > > Hello all! > I have problem with creating GMIRROR on select slice. So, I have two slic= e: > ls /dev | grep ad4 > ad4 > ad4s1 > ad4s1a > ad4s1b > ad4s1c > ad4s2 > ad4s2p1 > > 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: > <UNUSED> > The data for partition 4 is: > <UNUSED> > > On first slice I created ufs slice and on second - ZFS pool (I build it > with > glabel): > mount > /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 > kern.geom.debugflags=3D16). > MY OS: FreeBSD 7.3 Stable. > What should I do to do this? > Thanks all. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Dont boot into the os, create the gmirror from the fixit mode of a cd, or build a usb stick with freebsd on. You will need to newfs the gmirror devic= e after that so backup the data currently on /, then copy it back afterwards. I have to ask, as you are using zfs why not just do a zfs root? If you do decide to go for this option, use gpart to create gpt layouts, as you wont run into partition size limitations if you upgrade the drives to big ones i= n the future
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406631003291310x15025173l5cb34e7aee9371ba>