republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM
AuthorAll Replies


koitsu
Premium,MVM
join:2002-07-16
Mountain View, CA
kudos:20

reply to scrummie02

Re: FreeBSD 9 - ZFS - iSCSI

Have you looked at the past 3-4 months worth of conversations on the following mailing lists?

* freebsd-fs
* freebsd-stable
* freebsd-questions

You will find people discussing both of these subjects -- ZFS on FreeBSD and iSCSI on FreeBSD -- at great lengths. Particularly, all the bugs/problems people have with them both. The problems are all over the board, but they're all real.

I can assure you, repeatedly, that if you want to use ZFS you should use IllumOS or OpenIndiana. The ZFS implementation on FreeBSD, remember, is a port -- the code is similar in some regards but very different in others. If you want stability and the "turn it on and it just works" ability, go with IllumOS or OpenIndiana.

I have no experience with iSCSI (this is the 2nd time I've seen it mentioned in the past 24 hours -- no joke) so I cannot help there, but I have absolutely zero interest in it on FreeBSD given the problem reports that keep coming to light with it. I have no idea how iSCSI behaves/performs/works/etc. on Solaris and its open-source derivatives.

P.S. -- If you go with ZFS on either OS, I would strongly recommend you consider putting in more RAM, especially since you're already using a MCH that supports/works with more than 8GB. And on FreeBSD, try to make as much use of ZFS as possible (OS disk being used for UFS is fine), as there are known "memory contention" problems/fighting that happens if you have a system doing heavy I/O with UFS and heavy I/O with ZFS at the same time (i.e. copying from UFS to ZFS, or vice-versa).

P.P.S. -- You will run into problems with FreeBSD 9 being installed on an SSD. The partition management utility that comes with 9.0-RELEASE does not properly align partitions for either 4KByte sector MHDDs (should be aligned to 4096-byte) or SSDs (should be aligned to 1MByte). You will need to partition the disk yourself by hand. You will need to use gpart(8) to do this, and will also need to use the GPT scheme (not MBR; you won't be able to achieve alignment with MBR properly). If you want a script that does this, let me know and I can post the very short one I use/wrote.

P.P.P.S. -- Make sure you disable soft update journalling on your filesystems on the OS drive. FreeBSD enables it by default and it's known to be horribly broken (causing data loss in some cases, and in others known problems when taking UFS filesystem snapshots / using dump -L). You can leave soft updates on, just disable journalled soft updates.
--
Making life hard for others since 1977.
I speak for myself and not my employer/affiliates of my employer.


scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
Reviews:
·Verizon FiOS
·Comcast

Thanks. I can manually partition so I'll take that into account. I already have it installed with a disk pool running. I'm running tests right now and plan to do the same with openindiana today or tomorrow. I'll post the results of my tests.

I'm aware the iscsi implementation ported from NetBSD isn't that great. So I'm using the istgt port and it seems to be okay.

I'm running tests with hdparm and dd along with running multiple installs of CentOS and Windows to see my performance hits.

I haven't trolled the lists that long, I'm usually on the OpenBSD lists and don't really pay attention to the FreeBSD ones as much.

PS. The ZFS versions on OpenIndiana/Illumos are the same as FreeBSD. So I'm aware of only one thing not being available on FreeBSD and that is the ability to export the ZFS volume to iSCSI directly from ZFS. Not that it makes a difference, Comstar seems to the "go to" pkg for iSCSI on the opensolaris based distributions.
--
"He's a politician. It's like being a hooker. You can't be one unless you can pretend to like people while you're f*cking them."
General Welfare



koitsu
Premium,MVM
join:2002-07-16
Mountain View, CA
kudos:20

I understand. The ZFS versions -- as in the metadata version and on-disk formats -- are the same, but the code and how ZFS actually behaves on FreeBSD is not the same. This comes up on the freebsd-fs list quite often when people have issues, who then go and install IllumOS using the same disks/pool and the issue is gone. There are other known idiocies in FreeBSD's ZFS implementation, such as how dedup and compression are handled and how they destroy system interactivity, which are not a problem on Solaris, OpenSolaris, OpenIndiana, or IllumOS (and the root cause/reason is known -- again, the FreeBSD code is not the same).

I look forward to reading about your encounters with iSCSI and ZFS on FreeBSD, but as I said, check the mailing lists for the past 3-4 months. Topics come up there quite often about problems with both technologies, and in some cases problems when both are used together.
--
Making life hard for others since 1977.
I speak for myself and not my employer/affiliates of my employer.



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
Reviews:
·Verizon FiOS
·Comcast

Okay, as for performance they're about the same.

With a 1gig NIC and a zfs mirror with 2x SATA2 drives I'm getting an average of about 105-110 MB/s write and about the same for read.

This is using dd on both read and write operations. I have three VM's operating on the LUN, two CentOS and one Windows 2008R2. With Windows update running on the WIndows server, software updates to the CentOS desktop and running dd on the CentOS server I'm achieving a lot of the same performance stats.

I will post more detail on that later.

I was expecting a little better performance with Comstar and Openindiana (OI) though, kind of disappointed really. The only issue's I've run into is I lost my iSCSI connection from the ESX host to the OI host a couple of times that caused corruption in the guest OSes. This kind of concerned me. I also noted RAM usage was higher for OI than FreeBSD.

To be fair, at first I left the defaults for ZFS in place for OI and had to tune a little bit such as setting the arc min and arc max. Here is the ZFS variables I changed on both installs:

vfs.zfs.prefetch_disable=0

vfs.zfs.arc_min="1024M"

vfs.zfs.arc_max="3584M"

On OI the settings similar and are set in /etc/system/

I'm going to leave the FreeBSD running overnight because with the OI install I got checksum errors on my zpool today after testing last night and this morning.
--
"He's a politician. It's like being a hooker. You can't be one unless you can pretend to like people while you're f*cking them."
General Welfare



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA

reply to koitsu
Oh, forgot to mentioned, LZJB compression enabled on both ZFS pools.


Wednesday, 19-Jun 09:21:15 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics