Date: Thu, 8 Jan 2009 21:42:40 +0100 From: "Koen Smits" <kgysmits@gmail.com> To: "Brooks Davis" <brooks@freebsd.org> Cc: freebsd-geom@freebsd.org Subject: Re: mirror a GPT partition, what label? Message-ID: <b072dc420901081242x32cf6090h196d1e38a28523bc@mail.gmail.com> In-Reply-To: <20090108202122.GA72107@lor.one-eyed-alien.net> References: <b072dc420901081135k9e19e6dsca199dd778abdf9b@mail.gmail.com> <20090108202122.GA72107@lor.one-eyed-alien.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 8, 2009 at 21:21, Brooks Davis <brooks@freebsd.org> wrote: > On Thu, Jan 08, 2009 at 08:35:25PM +0100, Koen Smits wrote: > > Hi, > > > > My new NAS will have the following disk layout: > > ad0 -> 2gb CF > > ad4 -> 1TB WD Green > > ad6 -> 1TB WD Green > > > > The CF will boot the rig, the 2 1TB disks will be mirrored with ZFS. No > > problem there, did it before. > > The problem lies in the swap space, which I want to place at the first > > gigabyte of the 1TB disks. The disks will use GPT layout. I want to > gmirror > > the first 1GB partition on both disks. How should I accomplish this? Is > it > > sufficient to label both partitions 'freebsd'? According to man 8 gpart > > 'freebsd' should not be used when using GPT. Any insight would be > > appreciated. > > gmirror shouldn't care what the underlying type is though using freebsd > may confuse future tools that expect to find a bsdlabel on the partition. > That being said, I'd be pretty surprised if mirroring your swap > partition did anything other than causing pain and preventing coredumps. > You can have quite a number of swap partitions so why not just add both > and have twice as much (plus the chance to successfully produce a core > dump if you need to debug something). > > -- Brooks > Well, the theory was that if I lose a disk, the system wouldn't go flat on its face because the swap space suddenly disappeared. So there is no recommended procedure for using GPT partitions for gmirror/gstripe?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b072dc420901081242x32cf6090h196d1e38a28523bc>