Maciej Jan Broniarz | 1 Sep 16:04 2009
Picon

zfs on gmirror slice

Hi,

Is is a bad ida to create a zfs pool from a gmirrored slice?
zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
the filesystem failes consistency check.

Regards,
mjb

--

-- 
[ -----< Maciej Jan Broniarz || gausus <at> gausus.net >------ ]
| Siamo qui \ sotto la stessa luce \ sotto la sua croce \ |
| cantando ad una voce \ E l'Emmanuel Emmanuel, Emmanuel, |
[ ---------------< E l'Emmanuel, Emmanuel >-------------- ]
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Freddie Cash | 1 Sep 17:32 2009
Picon

Re: zfs on gmirror slice

On Tue, Sep 1, 2009 at 7:04 AM, Maciej Jan Broniarz <gausus <at> gausus.net>wrote:

> Is is a bad ida to create a zfs pool from a gmirrored slice?
> zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
> the filesystem failes consistency check.
>
> You could, but the question is ... why would you?

ZFS includes support for RAID0 (stripe), RAID1 (mirroring), RAID5 and RAID6
(raidz1/raidz2), and (soon in OpenSolaris) RAID7 (raidz3).  Why would you
want to build a pool out of devices that are already RAID'd together?

Just use the bare disks, or slices on disks, or partitions even.

--

-- 
Freddie Cash
fjwcash <at> gmail.com
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Pete French | 1 Sep 17:56 2009

Re: zfs on gmirror slice

> ZFS includes support for RAID0 (stripe), RAID1 (mirroring), RAID5 and RAID6
> (raidz1/raidz2), and (soon in OpenSolaris) RAID7 (raidz3).  Why would you
> want to build a pool out of devices that are already RAID'd together?

Because gmirror type RAIDing is more appropriate for your application
than ZFS RAID ? I am not the original poster, but I can easily
see why one would want to do do this. For example making a gmirror
of a local drive and a remote drive - you can ask gmirror to prefer
reads on the local disc, but there isn't a way to specify that
in ZFS that I know of. Also gmirror on top of ggate behaves nicely if
the remote drive fails. ZFS does not behave nicely at all - or it didn't
when I ran tests. I havent tried on the latest version I admit.

But ZFS as a filesystem still has many significant advantages, so
runnng it on top of gmirror is actually a worthwhile thing to do.

-pete.
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Richard Mahlerwein | 1 Sep 18:01 2009
Picon

Re: Fatal Trap 12 in various processes always at address 0x3030313a

--- On Sun, 8/30/09, Gavin Atkinson <gavin <at> FreeBSD.org> wrote:

> From: Gavin Atkinson <gavin <at> FreeBSD.org>
> Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
> To: "Richard Mahlerwein" <mahlerrd <at> yahoo.com>
> Cc: "FreeBSD-Stable" <freebsd-stable <at> FreeBSD.org>
> Date: Sunday, August 30, 2009, 3:47 PM
> On Sat, 29 Aug 2009, Richard
> Mahlerwein wrote:
> 
> > (Sorry, update to subject to be <something>)
> > 
> > 3 weeks ago:
> > I upgraded from 7.1-PRELEASE to -stable and all seemed
> fine
> > until I rebooted out of single user mode after doing
> make
> > installworld and mergemaster.  At that point, near
> the
> > end of the boot sequence I got a core dump,
> apparently
> > triggered by devd.
> > 
> > ****
> > Fatal trap 12: page fault while in kernel mode.
> > cpu id = 0; apic id = 00
> > fault virtual address = 0x3030313a
> > fault code = supervisor write, page not present
> > [snip]
> > current process = 355 (devd)
(Continue reading)

Maciej Jan Broniarz | 1 Sep 18:04 2009
Picon

Re: zfs on gmirror slice

2009/9/1 Thomas Backman <serenity <at> exscape.org>:
> On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
>
>
> I'm not familiar with gmirror, but it'd be a way better idea to mirror it
> using ZFS if possible - that way you get self-healing and stuff like that,
> which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
> single slice.
>

I would like to do so. I have to disks (ad4 and ad5). Is it possible
to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
Then to create gmirror on ad4s1, install freebsd on it so it would
boot from it. Then, after having my system running to create zfs
mirror from ad4s2 and ad5s2?

mjb

--

-- 
[ -----< Maciej Jan Broniarz || gausus <at> gausus.net >------ ]
| Siamo qui \ sotto la stessa luce \ sotto la sua croce \ |
| cantando ad una voce \ E l'Emmanuel Emmanuel, Emmanuel, |
[ ---------------< E l'Emmanuel, Emmanuel >-------------- ]
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Freddie Cash | 1 Sep 19:10 2009
Picon

Re: zfs on gmirror slice

On Tue, Sep 1, 2009 at 9:04 AM, Maciej Jan Broniarz <gausus <at> gausus.net>wrote:

> 2009/9/1 Thomas Backman <serenity <at> exscape.org>:
> > On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
> > I'm not familiar with gmirror, but it'd be a way better idea to mirror it
> > using ZFS if possible - that way you get self-healing and stuff like
> that,
> > which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
> > single slice.
>
> I would like to do so. I have to disks (ad4 and ad5). Is it possible
> to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
> Then to create gmirror on ad4s1, install freebsd on it so it would
> boot from it. Then, after having my system running to create zfs
> mirror from ad4s2 and ad5s2?
>
> Yes, this is definitely doable.

You can use entire drives (ad4), single slices (ad4s1), or individual
partitions (ad4s1d) with ZFS.

Create two slices; install to and use s1 on both drives for the gmirror
RAID1; and use s2 on both drives for a ZFS RAID1.

--

-- 
Freddie Cash
fjwcash <at> gmail.com
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
(Continue reading)

Miroslav Lachman | 1 Sep 19:10 2009
Picon

Re: zfs on gmirror slice

Maciej Jan Broniarz wrote:
> 2009/9/1 Thomas Backman <serenity <at> exscape.org>:
> 
>>On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
>>
>>
>>I'm not familiar with gmirror, but it'd be a way better idea to mirror it
>>using ZFS if possible - that way you get self-healing and stuff like that,
>>which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
>>single slice.
>>
> 
> 
> I would like to do so. I have to disks (ad4 and ad5). Is it possible
> to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
> Then to create gmirror on ad4s1, install freebsd on it so it would
> boot from it. Then, after having my system running to create zfs
> mirror from ad4s2 and ad5s2?

Yes, I am using it this way:

root <at> cage ~/# gmirror status
        Name    Status  Components
mirror/gms1  COMPLETE  ad4s1
                        ad6s1

root <at> cage ~/# zpool status
   pool: tank
  state: ONLINE
  scrub: none requested
(Continue reading)

Václav Haisman | 1 Sep 19:13 2009
Picon
Picon

GCC -m32 option on FreeBSD/AMD64 7.2

Hi,
is C++ + GCC -m32 option officially supported by FreeBSD/AMD64 7.2? I am
getting the following errors for simplest input:

shell::wilx:~/tmp> cat >m32.cxx
#include <iostream>
shell::wilx:~/tmp> g++ -c m32.cxx
shell::wilx:~/tmp> g++ -m32 m32.cxx
In file included from /usr/include/c++/4.2/ext/new_allocator.h:37,
                 from /usr/include/c++/4.2/bits/c++allocator.h:39,
                 from /usr/include/c++/4.2/bits/allocator.h:53,
                 from /usr/include/c++/4.2/memory:54,
                 from /usr/include/c++/4.2/string:48,
                 from /usr/include/c++/4.2/bits/locale_classes.h:47,
                 from /usr/include/c++/4.2/bits/ios_base.h:47,
                 from /usr/include/c++/4.2/ios:48,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from m32.cxx:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t'
(Continue reading)

Thomas Backman | 1 Sep 18:15 2009

Re: zfs on gmirror slice

On Sep 1, 2009, at 6:04 PM, Maciej Jan Broniarz wrote:

> 2009/9/1 Thomas Backman <serenity <at> exscape.org>:
>> On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
>>
>>
>> I'm not familiar with gmirror, but it'd be a way better idea to  
>> mirror it
>> using ZFS if possible - that way you get self-healing and stuff  
>> like that,
>> which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only  
>> sees a
>> single slice.
>>
>
> I would like to do so. I have to disks (ad4 and ad5). Is it possible
> to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
> Then to create gmirror on ad4s1, install freebsd on it so it would
> boot from it. Then, after having my system running to create zfs
> mirror from ad4s2 and ad5s2?
Why not go ZFS all the way? ZFS on root is well supported these days  
(well, not by sysinstall, but it works great if you do it manually) -  
you don't even need UFS /boot anymore.
Again, not familiar with gmirror, but my guess (that will be corrected  
or confirmed by someone ;) is that your way would work too.

Regards,
Thomas
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
(Continue reading)

Thomas Backman | 1 Sep 17:07 2009

Re: zfs on gmirror slice

On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:

> Hi,
>
> Is is a bad ida to create a zfs pool from a gmirrored slice?
> zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
> the filesystem failes consistency check.
>
> Regards,
> mjb
I'm not familiar with gmirror, but it'd be a way better idea to mirror  
it using ZFS if possible - that way you get self-healing and stuff  
like that, which you won't if ZFS doesn't have a mirror/RAIDZ setup,  
but only sees a single slice.

Regards,
Thomas
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"


Gmane