Page 2 of 9 FirstFirst 123456 ... LastLast
Results 11 to 20 of 86

Thread: Guide: How to Build FreeNAS (Part 2: Install and Build FreeNAS)

  1. #11
    Senior Member
    Join Date
    Aug 2011
    Location
    San Diego, CA
    Posts
    314
    Yeah, on the motherboard that I'm using in this NAS amd64 is not an option. The CPU is a Via C7 which only does x86. But I'm replacing that motherboard because of other problems (AHCI time-outs) which I do not have with FreeNAS7 on the same board.

    Anyways, I agree the KVA_PAGES thing is strange. They should make it easier to configure the kernel so it can use more memory though a sysctl instead of a compile time option.

    The box is however very stable with just using the very small kmem map. It's just not very fast. I did tweak the loader.conf to set vm.kmem_size and vm.kmem_size_max both to 512MB. Before that the machine would crash under high loads.

    Still seems like a waste of 4 gigs of RAM right now

  2. #12
    Senior Member joeschmuck's Avatar
    Join Date
    May 2011
    Location
    Dark Side of the Moon
    Posts
    1,355
    I'd like to know how you make out with your build. If it's stable and the benefits are there, maybe that could be incorporated into the FreeNAS 8.1 i386 builds, or at least a variant.
    FreeNAS 8.3.1-Release-p1 w/MiniDLNA Plugin + MiniDLNA Automatic Scan Fix
    Gigabyte P45T-ES3G | Intel E8500 (3.2GHz) CPU | 16GB DDR3 1066 RAM
    Six WD Red WD20EFRX NAS Hard Drives (RAIDZ2, 7.3TB usable space)
    Adata PD7 USB Flash Drive (4GB) for OS | 1GB Patriot Xporter USB Flash Drive for Scripts & Plugins
    APC Back-UPS Pro BR1000G

  3. #13
    Senior Member
    Join Date
    Aug 2011
    Location
    San Diego, CA
    Posts
    314
    Yeah, I'll let you know how it works out. Probably going to take a little time as my main priority is actually getting amd64 on this NAS since it has the time-out issues *and* it's "production".

    I did read the do_build.sh and the nanobsd.sh scripts and I do have support for the "force" option. I have kicked it off with options to "build kernel, don't clean, don't build world":

    # build/do_build.sh -f -n -w

    Oh and also based on this reading of the scripts, the correct file to modify to set kernel options is not FreeBSD/src/sys/i386/conf/GENERIC, but nanobsd/FREENAS.i386. This file gets copied into the aforementioned directory by nanobsd.sh.

    So now we wait .
    Last edited by Durkatlon; 09-08-2011 at 02:20 PM.

  4. #14
    I get an "illegal option -b" error when trying to run the build script as described in step 3d.

  5. #15
    Senior Moderator ProtoSD's Avatar
    Join Date
    Jul 2011
    Location
    San Diego, California
    Posts
    3,362
    I usually just edit the do_build.sh script, search for the -b, and # comment out the whole 'IF" statement, it's like 3 or 4 lines.

    Works like a charm every time.
    I've decided to take a break from the forums for an undetermined amount of time and am *VOLUNTARILY* banning myself as a means to force myself to leave this site. Things have gotten out of hand here and behind the scenes on a lot of levels and I'm fed up with the BS. Since I'm banning myself, that means I won't be able to reply to any PM's either. If I've shared my email with you, please feel free to keep in touch.

    -- Proto

  6. #16
    Senior Member joeschmuck's Avatar
    Join Date
    May 2011
    Location
    Dark Side of the Moon
    Posts
    1,355
    I'm sorry, I haven't updated my original posting since the developers made some changes in the build process. I've updated my posting and added the new script.
    FreeNAS 8.3.1-Release-p1 w/MiniDLNA Plugin + MiniDLNA Automatic Scan Fix
    Gigabyte P45T-ES3G | Intel E8500 (3.2GHz) CPU | 16GB DDR3 1066 RAM
    Six WD Red WD20EFRX NAS Hard Drives (RAIDZ2, 7.3TB usable space)
    Adata PD7 USB Flash Drive (4GB) for OS | 1GB Patriot Xporter USB Flash Drive for Scripts & Plugins
    APC Back-UPS Pro BR1000G

  7. #17
    Senior Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    236
    Great guide, thank you very much!

    Just one small addition: Before being able to build the iso, I also had to install cdrtools with "pkg_add -r cdrtools".
    FreeNAS-8.3.1-RELEASE-p1-x64 (r12686+99c3e76) | Fractal Design R2
    Zotac NM10-DTX WiFi Intel Atom D525 1.8 Ghz | 4 GB DDR2
    4x 2TB Western Digital Caviar Green
    1x 2TB Samsung EcoGreen F4
    0x 2TB Hitachi Deskstar (head crash)
    1x 2TB Seagate Barracuda Green
    1x 250GB Western Digital Scorpio Black

  8. #18
    Senior Member joeschmuck's Avatar
    Join Date
    May 2011
    Location
    Dark Side of the Moon
    Posts
    1,355
    Hum... At one time that was already added during the build then it was removed and I was told it was added again, maybe not. I'll update the guide to reflect adding cdrtools again.

    Thanks.

  9. #19
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Having problems with compiling the latest build, here's the error:

    01:50:29 ## customize "add_port_net_netatalk"
    01:50:29 ### log: /usr/local/freenas/trunk/obj.amd64/_.cust.add_port_net_netatalk
    do_build.sh: ERROR: FreeNAS build FAILED; please check above log for more details

    Any help is much appreciated, thanks.

  10. #20
    I'm getting the exact same error, here's the last lines from the logfile (_.cust.add_port_net_netatalk):

    Code:
    ===>  Building package for netatalk-2.2.1,1
    tar: bin/add_netatalk_printer: Cannot stat: No such file or directory
    tar: bin/showppd: Cannot stat: No such file or directory
    tar: libexec/etc2ps.sh: Cannot stat: No such file or directory
    ....
    tar: libexec/tfwpap: Cannot stat: No such file or directory
    tar: libexec/tfwpaprev: Cannot stat: No such file or directory
    tar: share/netatalk/pagecount.ps: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors.
    pkg_create: make_dist: tar command failed with code 256
    *** Error code 1
    
    Stop in /usr/ports/net/netatalk.
    Judging from the rest of the log, the package seems to have compiled just fine.

    Edit: Just did an svn update and tried do build again, this time the build fails in "add_pkg_devel_dbus". Here's the log:
    Code:
    + cd /usr/ports/packages/All
    + pkg_add -F dbus-1.4.6.tbz
    pkg_add: could not find package kbproto-1.0.5 !
    pkg_add: could not find package xproto-7.0.16 !
    pkg_add: could not find package libXdmcp-1.0.3 !
    pkg_add: could not find package libXau-1.0.6 !
    pkg_add: could not find package libxcb-1.7 !
    pkg_add: could not find package libX11-1.3.6,1 !
    Last edited by Hi-Liter; 10-12-2011 at 10:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •