Date: Mon, 25 Jun 2007 13:35:34 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: "Axel S. Gruner" <liste@encephalon.de> Cc: freebsd-current@freebsd.org, pjd@freebsd.org Subject: Re: ZFS and gmirror Message-ID: <20070625133238.M68481@woozle.rinet.ru> In-Reply-To: <467F861A.3070004@encephalon.de> References: <467F861A.3070004@encephalon.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Jun 2007, Axel S. Gruner wrote:
ASG> #zpool create zusr raidz da0 da1 da2
[snip]
ASG> Now i have on da0 a free da0s1d. Ok, i can use this with zfs:
Hmm, I see collision here - you said you use all da0 for zpool?
ASG> But, is there a way to mirror my /dev/da0s1a? Can i use gmirror to
ASG> mirror /dev/da0s1a with /dev/da0s4a?
ASG> Also, mirroring swap /dev/da0s1b with /dev/da0s4b would be nice. Yes
ASG> data is in a raidz mirror, but / is a single point of failure right now.
ASG>
ASG> And also, i could create a zfs mirror with da0s1d and da4s1d.
ASG>
ASG> Another question:
ASG> If i got only 2 disks, how about using ZFS here? Using just /boot on UFS
ASG> should work as i read, but can i mirror that one with gmirrror and use
ASG> the rest of the the two disks with ZFS as an ZFS mirror?
ASG> I stuck at that problem right now.
Booting from gmirror should not be a problem - most of my servers
(RELENG_6) use gmirrored SATA partitions including swap:
marck@gwp:~> mount
/dev/mirror/m0a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/mirror/m0e on /usr (ufs, local, soft-updates)
/dev/mirror/m0f on /var (ufs, local, soft-updates)
/dev/mirror/m0g on /lh (ufs, local, soft-updates)
/var/obj on /usr/obj (nullfs, local, noclusterw)
/dev/md0 on /tmp (ufs, asynchronous, local)
marck@gwp:~> swapinfo
Device 1K-blocks Used Avail Capacity
/dev/mirror/m0b 1048572 0 1048572 0%
marck@gwp:~> gmirror status
Name Status Components
mirror/m0a COMPLETE ad4a
ad6a
mirror/m0b COMPLETE ad4b
ad6b
mirror/m0e COMPLETE ad4e
ad6e
mirror/m0f COMPLETE ad4f
ad6f
mirror/m0g COMPLETE ad4g
ad6g
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070625133238.M68481>
