Re: ZFS and gmirror

From: Dmitry Morozovsky <marck_at_rinet.ru>
Date: Mon, 25 Jun 2007 13:35:34 +0400 (MSD)
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_at_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_at_gwp:~> swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/m0b   1048572        0  1048572     0%
marck_at_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_at_rinet.ru ***
------------------------------------------------------------------------
Received on Mon Jun 25 2007 - 07:35:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC