Re: Setting up gmirror

2008-11-06 Thread Gabriel Lavoie
As I asked in another thread, what is the problem with the load algorith?

Thanks

2008/11/6 Volodymyr Kostyrko [EMAIL PROTECTED]

 Carl wrote:

  What are the considerations in choosing between load, prefer,
 round-robin, and split balance algorithms?


 load is currently not good at high loads, pr's pending...

 --
 Sphinx of black quartz judge my vow.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]




-- 
Gabriel Lavoie
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-11-06 Thread Volodymyr Kostyrko

Gabriel Lavoie wroted:

As I asked in another thread, what is the problem with the load algorith?


I've already pointed you in the other tread to 
http://www.freebsd.org/cgi/query-pr.cgi?pr=113885 :)


--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-11-06 Thread Volodymyr Kostyrko

Carl wrote:

What are the considerations in choosing between load, prefer, 
round-robin, and split balance algorithms?


load is currently not good at high loads, pr's pending...

--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-11-06 Thread Wojciech Puchar


What are the considerations in choosing between load, prefer, 
round-robin, and split balance algorithms?


load is currently not good at high loads, pr's pending...



so change it to round-robin?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-23 Thread Wojciech Puchar
I thought the -s option was only applicable when using -b split for the 
balancing algorithm. Does round-robin not mean simply alternating 
between the two disks without ever splitting requests?


no. it means for example with -s 65536 and 1MB request - it will split this 
request on 2 disks




So there is no difference between split and round-robin algorithms then?


looks there is. i never used split balance. always round-robin or load.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


re: Setting up gmirror

2008-10-22 Thread Wojciech Puchar
disk will be overwritten).  Add another disk to this mirror, so it 
will

be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one request 
on 2 disks.


I thought the -s option was only applicable when using -b split for the 
balancing algorithm. Does round-robin not mean simply alternating between 
the two disks without ever splitting requests?


no. it means for example with -s 65536 and 1MB request - it will split 
this request on 2 disks

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-22 Thread Carl

Wojciech Puchar wrote:


disk will be overwritten).  Add another disk to this mirror, so 
it will

be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one 
request on 2 disks.


I thought the -s option was only applicable when using -b split for 
the balancing algorithm. Does round-robin not mean simply 
alternating between the two disks without ever splitting requests?


no. it means for example with -s 65536 and 1MB request - it will split 
this request on 2 disks




So there is no difference between split and round-robin algorithms then?

Carl / K0802647
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


re: Setting up gmirror

2008-10-21 Thread Carl

Wojciech Puchar wrote:
 Andrew Falanga wrote:

Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

Create a mirror on disk with valid data (note that the last sector of the
disk will be overwritten).  Add another disk to this mirror, so it will
be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one request 
on 2 disks.


I thought the -s option was only applicable when using -b split for 
the balancing algorithm. Does round-robin not mean simply alternating 
between the two disks without ever splitting requests?


What are the considerations in choosing between load, prefer, 
round-robin, and split balance algorithms?


Carl / K0802647
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Wojciech Puchar

Hi,

I've just finished setting up a new web server, and if I get my DNS
stuff correct hopefully an e-mail server too, for my church.
Originally, the intention was to use RAID1 on the MOBO.  However, the


do not ever use hardware RAID0/1/10 on motherboard.
first it's not hardware, it's purely software, second there is nothing to 
be accelerated by hardware on RAID0/1/10.


use gmirror/gstripe/gconcat everywhere.


make any mention of gmirror(8).  It seems like gmirror is rather easy


gmirror is easy to set up and works excellent.

Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

Create a mirror on disk with valid data (note that the last sector of the
disk will be overwritten).  Add another disk to this mirror, so it will
be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one request 
on 2 disks.


except this - all right.


   gmirror insert data da1
Though in my case, da0 and da1 will be ad4 and ad5.  This seems to be
the one I'm looking for, I'm just scared of wiping out more than I
bargain for.


assuming you already have system on say ad4, make gmirror on ad5, copy 
everything, make sure it's bootable (bsdlabel -B ...), boot from it, if 
all works, add ad4 to the mirror effectively overwriting things.


add in loader.conf

vfs.root.mountfrom=ufs:mirror/dataa - assuming your system is on 
partition a of your mirror.



HINT - you DO NOT have to mirror whole drive. you may mirror a 
partition(s), living some of them unmirrored.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Jeremy Chadwick
On Tue, Sep 30, 2008 at 10:34:53PM -0600, Andrew Falanga wrote:
 I've just finished setting up a new web server, and if I get my DNS
 stuff correct hopefully an e-mail server too, for my church.
 Originally, the intention was to use RAID1 on the MOBO.  However, the
 RAID controller on the MOBO consistently tried to make the SATA DVD
 drive part of the RAID array and wouldn't boot the FreeBSD boot disk.
 So, at the suggestion of another respondent here, I've decided to use
 gmirror.

Stay away from BIOS-level RAID.  If you want evidence of why, especially
with regards to Intel MatrixRAID, here you go:

http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting

And yes, these are FreeBSD problems, but the severity is so high that
there is a very good chance you will lose your data in the case of a
failure.  Simply put, don't risk it.

Stick with gmirror or ZFS, unless you have reason to use ccd (it's old,
but it does still work).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Wojciech Puchar

with regards to Intel MatrixRAID, here you go:

http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting

And yes, these are FreeBSD problems, but the severity is so high that
there is a very good chance you will lose your data in the case of a
failure.  Simply put, don't risk it.


BIOS RAIDs are software RAIDs. FreeBSD driver for this is software RAID 
too, just like gmirror but worse and less portable.


simply doesn't make sense.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Jeremy Chadwick
On Wed, Oct 01, 2008 at 09:22:20AM +0200, Wojciech Puchar wrote:
 with regards to Intel MatrixRAID, here you go:

 http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting

 And yes, these are FreeBSD problems, but the severity is so high that
 there is a very good chance you will lose your data in the case of a
 failure.  Simply put, don't risk it.

 BIOS RAIDs are software RAIDs. FreeBSD driver for this is software RAID 
 too, just like gmirror but worse and less portable.

 simply doesn't make sense.

And what exactly do you classify controllers such as the Promise TX4310
and the Promise S150 SX4 as?  The TX4310 could be classified as
software RAID, but a few of the features are offloaded onto the
controller.  The SX4 is the same way, but has actual on-board cache.

You like to declare everything as software RAIDs, while I like to
discern the difference between them using (what I believe to be) more
accurate terminology:

BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; chipset RAID)
OS-based RAID (gvinum, ccd, etc.)
Hardware RAID (LSI Logic, 3Ware, Areca controllers)

There is always a certain degree of software (specifically,
processing/work done on the main system's CPU) in all of those, since
there is always a driver involved for interfacing with the cards -- even
ones with dedicated CPUs like the Intel IOP/XScale.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Wojciech Puchar

And what exactly do you classify controllers such as the Promise TX4310
and the Promise S150 SX4 as?  The TX4310 could be classified as
software RAID, but a few of the features are offloaded onto the
controller.  The SX4 is the same way, but has actual on-board cache.


si it do something by hardware. anyway - i don't think it will actually 
make it faster under FreeBSD (contrary to windoze).


it's simply not worth money.


You like to declare everything as software RAIDs, while I like to
discern the difference between them using (what I believe to be) more
accurate terminology:

BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; chipset RAID)
OS-based RAID (gvinum, ccd, etc.)


what are the difference between 1 and 2?

there are none.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Jeremy Chadwick
On Wed, Oct 01, 2008 at 11:19:01AM +0200, Wojciech Puchar wrote:
 And what exactly do you classify controllers such as the Promise TX4310
 and the Promise S150 SX4 as?  The TX4310 could be classified as
 software RAID, but a few of the features are offloaded onto the
 controller.  The SX4 is the same way, but has actual on-board cache.

 si it do something by hardware. anyway - i don't think it will actually  
 make it faster under FreeBSD (contrary to windoze).

 it's simply not worth money.

 You like to declare everything as software RAIDs, while I like to
 discern the difference between them using (what I believe to be) more
 accurate terminology:

 BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; chipset RAID)
 OS-based RAID (gvinum, ccd, etc.)

 what are the difference between 1 and 2?

 there are none.

With regards to Intel MatrixRAID, you're correct -- all the feature does
is provide disk pairing features via the southbridge, and provide an
option ROM which configures and manages metadata on the disks for the OS
to read and make use of.  All the I/O operations still have to go
through the CPU, and nothing is off-loaded.

The reason I discern the difference is because if you tell a user yes,
your Intel MatrixRAID is software RAID, they become confused, since the
feature is provided on a dedicated chip (ICHx).  But software RAID is
done in the operating system, like gvinum!

There is also one difference which you're forgetting: booting.

FreeBSD has a long-standing history of not being able to boot off of
most anything other than UFS and gmirror; I believe gvinum might work,
but I've only been able to find confirmation that gmirror does.  I'm
under the impression gstripe doesn't, and ZFS definitely does not.

By using an additional (lower) layer that the OS has no control over
(e.g. MatrixRAID), you can get around this limitation, because the OS
considers the disks a single device (e.g. /dev/ar0).

Of course, you run into other problems using MatrixRAID on FreeBSD,
specifically when a disk fails (see my Wiki page), and the negatives
there easily outweigh the positives.

If you have a RAID-0 configuration you want to boot from, I've no idea
what will work.

If you have a RAID-1 configuration you want to boot from, gmirror is a
good choice.

If you have a RAID-5 or other configuration you want to boot from, a
software or hardware RAID controller would be sufficient (see above).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Wojciech Puchar

There is also one difference which you're forgetting: booting.


for me there is no problem. simply put /boot at the beginning of mirror or 
small partition


it's that simple
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread Dino Vliet
Wednesday, October 1, 2008 6:34 AM




From: 

Andrew Falanga [EMAIL PROTECTED]



To: 
freebsd-questions@freebsd.org freebsd-questions@freebsd.org


Hi,

I've just finished setting up a new web server, and if I get my DNS
stuff correct hopefully an e-mail server too, for my church.
Originally, the intention was to use RAID1 on the MOBO.  However, the
RAID controller on the MOBO consistently tried to make the SATA DVD
drive part of the RAID array and wouldn't boot the FreeBSD boot disk.
So, at the suggestion of another respondent here, I've decided to use
gmirror.

Now, it seems that gmirror is, perhaps, newer to FreeBSD than the
software RAID stuff in the Handbook.  That mentions ccd(4) and doesn't
make any mention of gmirror(8).  It seems like gmirror is rather easy
to work with, and more important, easy to recover from is hardware
fails.  In any event, I want to make sure I'm understanding the manual
page correctly because I don't have anything else to test this on
except the churches computer.  We have two Seagate 250gb SATA drives.
Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

     Create a mirror on disk with valid data (note that the last sector of the
     disk will be overwritten).  Add another disk to this mirror, so it will
     be synchronized with existing disk:

       gmirror label -v -b round-robin data da0
       gmirror insert data da1


Though in my case, da0 and da1 will be ad4 and ad5.  This seems to be
the one I'm looking for, I'm just scared of wiping out more than I
bargain for.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

**
 
Hi Andy,
 
Although I assume you can't start from scratch, I think the article on this 
topic by the famous Dru Lavigne is very good:
 
http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html
 
This is what I've used to do it.
Now I did a google search and found:
 
http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=2
 
And gmirror is in the handbook, if found it in:
 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html
 
So these sources will give you a lot of knowledge.
 
I swear by gmirror, I had very good experience with it and will use it in the 
future again. I just need to find some time to attach the two identical HDD's 
to my via c7 system.
 
Brgds
Dino




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-01 Thread koberne [EMAIL PROTECTED]
Hello,

 I swear by gmirror, I had very good experience with it and will use it in the 
 future
 again. I just need to find some time to attach the two identical HDD's to my 
 via c7 system.

Actually, you don't need two identical HDD to make a gmirror. It's just 
important, that
the one, you add to the already created array, is not smaller. Some would also 
argue that
having two identical drives makes the array more prone, since they may fail 
identically.
This also happened to me once, and I lost data.

Bye,
Nejc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Setting up gmirror

2008-09-30 Thread Andrew Falanga
Hi,

I've just finished setting up a new web server, and if I get my DNS
stuff correct hopefully an e-mail server too, for my church.
Originally, the intention was to use RAID1 on the MOBO.  However, the
RAID controller on the MOBO consistently tried to make the SATA DVD
drive part of the RAID array and wouldn't boot the FreeBSD boot disk.
So, at the suggestion of another respondent here, I've decided to use
gmirror.

Now, it seems that gmirror is, perhaps, newer to FreeBSD than the
software RAID stuff in the Handbook.  That mentions ccd(4) and doesn't
make any mention of gmirror(8).  It seems like gmirror is rather easy
to work with, and more important, easy to recover from is hardware
fails.  In any event, I want to make sure I'm understanding the manual
page correctly because I don't have anything else to test this on
except the churches computer.  We have two Seagate 250gb SATA drives.
Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

 Create a mirror on disk with valid data (note that the last sector of the
 disk will be overwritten).  Add another disk to this mirror, so it will
 be synchronized with existing disk:

   gmirror label -v -b round-robin data da0
   gmirror insert data da1


Though in my case, da0 and da1 will be ad4 and ad5.  This seems to be
the one I'm looking for, I'm just scared of wiping out more than I
bargain for.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]