FreeBSD is an advanced operating system for a variety of architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley; and is developed and maintained by a large team of individuals. It is a complete Operating System, including the kernel, drivers, ...
80
votes
4answers
88k views
FreeBSD performance tuning. Sysctls, loader.conf, kernel
I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf
/ KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx)
presentation about FreeBSD tuning up to ...
31
votes
1answer
1k views
I am going to chop the FreeBSD automounter into little pieces and boil them in oil
I am trying to expose a hierarchy of home directories to a number of FreeBSD jails. The home directories are configured such that each is a unique ZFS dataset. The jails are used for development ...
23
votes
6answers
22k views
FreeBSD vs Linux performance? [closed]
I know that FreeBSD is famous for being highly stable, secure and of course open source. So I am going to try it on one of my servers. However, I am wondering what are the pros and cons of Using ...
20
votes
4answers
2k views
ZFS on FreeBSD: recovery from data corruption
I have several TBs of very valuable personal data in a zpool which I can not access due to data corruption. The pool was originally set up back in 2009 or so on a FreeBSD 7.2 system running inside a ...
15
votes
10answers
3k views
I just did a chmod -x chmod
So I did a chmod -x chmod. How I can fix this problem? How do I give execute rights back to chmod?
14
votes
4answers
723 views
Historical Question: Why does slice C or slice 2 cover the entire disk
Something that I was discussing with a couple of friends and we were unable to figure it out. In FreeBSD and OpenSolaris/Solaris when you partition a drive a partition is created that covers the whole ...
11
votes
3answers
758 views
Log every command executed from root
I want to give access to my root server to an external system administrator, but i want to be sure to double check what he is doing to my server, e.g. copying data i don't want them to do and so on. I ...
11
votes
4answers
2k views
How do you manage and deploy FreeBSD's ports in a large environment?
I'm curious to how people are deploying FreeBSD's ports in their environment. I assume that most people using FreeBSD are indeed using Ports (and often portupgrade for upgrading with binaries). I am ...
10
votes
7answers
3k views
Cloud Providers that support FreeBSD? [closed]
NOTE: Even though I've accepted an answer for this, if you have a better one, please put it below. Thanks!
I'm looking for recommendations from the wise and all-knowing Server Fault community on ...
9
votes
6answers
2k views
OpenBSD, FreeBSD: your update philosophy?
I've used FreeBSD for about 5 years - server/Desktop - and I've tended to take my apt-get/yum upgrade everything habits along with me ( I admin Debian/RHEL/Cent boxes as well -- I know, I know ...
8
votes
3answers
412 views
FreeBSD 8.2, deleted /bin/sh, can't boot
I made a really bad decision on one of my servers.
I deleted /bin/sh. I restarted the server and the server won't run because it needs /bin/sh to start the rc scripts. I can't access single user mode ...
8
votes
2answers
506 views
zfs and future expandability
I want to build a server using freebsd 9 and zfs. I have some old hardware (intel quad core with 8 gb ram) lying around, and I am willing to purchase two or three 1 TB disks. I also have a dlink RAID ...
8
votes
2answers
916 views
Is it safe to replicate from Solaris ZFS to FreeBSD ZFS?
Is it safe to replicate from a Solaris 10 ZFS v22 to a FreeBSD 8.3 ZFS v28?
Are there someone that have done this with specific versions of ZFS, where it worked perfectly?
7
votes
4answers
1k views
ZFS and non Sun OS's
Is there any other Unix like distros that can read and write to ZFS filesystems. I know its currently unstable in FreeBSD :( The reason I am asking is I love ZFS but don't get on so well with Solaris.
...
7
votes
4answers
6k views
ZFS Sync over unreliable, slow WAN. ZFS replication, or rsync?
I've been tasked with making an off-site backup work over the WAN. Both storage boxes are FreeBSD based NAS boxes running ZFS.
Once or twice a week, 15-60 gigs of photography data gets dumped to the ...
7
votes
2answers
300 views
FreeBSD ports: remove build dependencies after installing port
Is there any way to remove build dependencies of the port after installing it?
Many ports use exotic tools for building and these tools are not used anymore when port is builded and installed.
7
votes
2answers
958 views
cpulimit for FreeBSD
Does any one know of an equivalent of the GNU/Linux utility cpulimit for FreeBSD?
I'm not talking about process niceness or setting limits on a user account, but actually limiting the percentage of ...
7
votes
1answer
475 views
Why change net.inet.tcp.tcbhashsize in FreeBSD?
In virtually every FreeBSD network tuning document I can find:
# /boot/loader.conf
net.inet.tcp.tcbhashsize=4096
This is usually paired with some unhelpful statement like "TCP control-block hash ...
7
votes
2answers
1k views
Xen vs KVM: Which will have likely better support (read:bugfixes) in the future?
I don't care about GUI or tools, but I do care about stability and performance. If I'm running a FreeBSD firewall and a Opensolaris file server as guests, will I get better stability or performance ...
7
votes
3answers
732 views
“zpool replace” hangs and locks up the pool
Given my four disk RAIDZ1, one disk has become physically noisy, not producing errors yet, but not sounding healthy either. So I've chosen to pre-emptively replace it.
I have done:
zpool offline ...
7
votes
3answers
181 views
Permissions are not taking effect with Kerberised NFSv4 on FreeBSD
I'm currently trying to set up an NFSv4 server on FreeBSD. I have extensive experience with doing this on other Unices (Solaris and Linux), but I'm fairly new to FreeBSD.
My goal is to achieve the ...
6
votes
6answers
2k views
How to Find a file in FreeBSD
I'm trying to locate all copies of example.filename on my FreeBSD server. What's the best / easiest / most efficient way to do this?
6
votes
4answers
1k views
Why can't I ping an address on the loopback device under FreeBSD?
From Wikipedia:
The most commonly used IP address on the loopback device is 127.0.0.1
for IPv4, although any address in the range 127.0.0.0 to
127.255.255.255 is mapped to it.
This is not ...
6
votes
3answers
2k views
FreeBSD ZFS RAID-Z2 performance issues
I'm trying to build my own network attached storage based on FreeBSD+ZFS+standard components, but there are strange performance issues.
The hardware specs are:
AMD Athlon II X2 240e processor
ASUS ...
6
votes
8answers
5k views
Simple web-frontend for remote svn administration?
We run a SVN repository. Some of our more advanced users need to be able to perform some SVN administration without relying on the system administrator.
They need to be able to do things like create ...
6
votes
5answers
4k views
FreeBSD jails vs virtualization performance
I'll soon buy myself a nice server (something like the quad-cpu HP DL585) for personal use (home related stuff, data-mining projects, web server and some cron jobs), and I wonder how to separate all ...
6
votes
3answers
757 views
OpenBSD/FreeBSD Firewall w/ GUI that is compatible with Intel 82574L Gigabit LAN NICs
I recently purchased a server to run m0n0wall or pfSense but I've learned since then that both of these firewall products are based on versions of FreeBSD which weren't yet compatible with the NICs in ...
6
votes
1answer
489 views
zfs pool not automatically mounted
I recently installed freebsd 8 on a file server and created a raidz-pool from 4 drives. It works fine, except the filesystems are not mounted automatically on boot. zpool status and zfs list shows ...
6
votes
1answer
130 views
How to start netcat in listening mode from another host?
I have a script where I would like to start nc in listening mode on 10.10.10.11, but I would like to do it from 10.10.10.10, where I have this script
ssh -n 10.10.10.11 nc -l 8023 | mbuffer -s 128k ...
6
votes
2answers
190 views
Freebsd Secondary Group not allowing folder deletion
TLDR: I have a user that is a member to a group as a secondary group. This user can delete files with 664 perms as a secondary user, but not directories with perms of 775.
Details: I have a user. ...
6
votes
1answer
91 views
Freebsd jail for an small company - checklist - what shouldn't forget
Looking for an checklist for an "small company freebsd/jail server".
Having pretty common starting point:
FreeBSD jail (remote/headless) for the company:
public web, email, ftp server, and
private ...
6
votes
2answers
448 views
FreeBSD Host ZFS on Root Running VirtualBox with Windows Server 2003 Guests Very Slow HD Speeds
Here is my setup: I am running a Dual Quad Core Xeon 2.0Ghz with 16GB of Ram and 2 x 2TB WD Green drives with FreeBSD 7 that has ZFS on root. The Hard Drives are in a ZFS Mirror. I am running ...
6
votes
3answers
443 views
Why is there less latency on loopback than on a carp interface?
Stack Overflow Careers is served up something like so:
user -> internet -> our fw -> nginx -> haproxy -> web farm
FreeBSD is the operating system in use
no firewalling or QoS is in ...
5
votes
4answers
988 views
ZFS on top of Hardware Mirroring, or just mirror in ZFS?
I have an IBM x346 with dual 3.2Ghz Xeons and 2x36GB 15k SCSI disks. I'm running an entirely ZFS-based install of FreeBSD 8.1.
I can configure the bios to mirror the two disks, and then put ZFS on ...
5
votes
5answers
2k views
ZFS on OpenSolaris or FreeBSD
I have no real experience with ZFS, and very limited experience with Solaris & FreeBSD. After reading numerous articles about ZFS, I'm pretty convinced ZFS is something I want to use for my home ...
5
votes
1answer
1k views
Does ZFS replace the need for hardware/software RAID?
I want to provide protection against data loss on my servers.
Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS.
Is it correct that ZFS itself provides RAID 1 or 5 like data ...
5
votes
5answers
1k views
Where is the central ZFS website now?
Oracle dumped OpenSolaris in Fall 2010, and it is unclear if Oracle will continue to publicly release updates to ZFS, except maybe after they release their next major version of Solaris.
FreeBSD now ...
5
votes
2answers
267 views
Which BSD best suited to run as VMware guest?
I want to deploy a VM to serve DNS and files (via NFS) to other *nix systems in my infrastructure.
Due to reasons beyond my control, I need a very light OS, so I naturally choose the *BSD family.
...
5
votes
3answers
237 views
What is the ZFS ACL limit?
Does anyone know how many user ACL's ZFS can handle?
With other words: for how many users can I set ACL's like this one for the same directory?
setfacl -m user:test1:rwxpDdaARWcCos:fd----:allow ...
5
votes
3answers
2k views
PAM: Execute a command before pam_mkhomedir?
When a user logs into a system and there is no home directory, we would like to to create the user's home directory using pam_mkhomedir. This is a common practice. Here's a quick description of ...
5
votes
3answers
2k views
Why does ifconfig reset the default gateway route?
In FreeBSD, an ifconfig call seems to delete the default gateway route, even when given the same IP-address (e.g. when updating the netmask only). Is it a bug or a feature?
As fas as I remember Linux ...
5
votes
1answer
201 views
How can I get FreeNAS and pfSense to report more using SNMP?
I have two servers which run variants of FreeBSD: One is a pfSense router and one is a FreeNAS 8 server. Both these servers run SNMP, and I am collecting and graphing their information using a third ...
5
votes
1answer
132 views
Identify which process is responsible for heavy disk i/o under FreeBSD
I wonder how I can monitor which process takes out all my IO bandwith.
The only command i know is gstat but it shows cumulative info.
Is there any tools i can use to inspect the running processes for ...
5
votes
2answers
181 views
Portable firewall rules for Linux and Free/Net/Open/DragonFlyBSD
I need apply the same rules (lists of IPs with allow and drop rules) in firewalls of Linux and *BSD. Do you know some application (CLI) for to convert a list of rules in the specific format of each ...
5
votes
1answer
151 views
Router advertisement for ipv6 is advertising link-local adress
I have the following situation: I configured a FreeBSD 9.1 machine as the endpoint of a heartbeat SixXS tunnel on a gif0 interface. It works so far, and I can ping6 via IPv6.
I assigned to another ...
5
votes
1answer
189 views
Block Google requests to 16k using pf firewall
I'd like to block access to Google search using PF after the threshold of 17500 requests (connection established) in 24h, from a host running FreeBSD 9.
What I came up with, after reading pf-faq is ...
5
votes
1answer
522 views
“route add default -iface em1” in rc.conf on FreeBSD
I have two NICs on my FreeBSD server, which are set up like this in rc.conf:
ifconfig_em0="10.0.0.1 netmask 255.255.255.0" # LAN NIC
ifconfig_em1="DHCP" ...
5
votes
1answer
2k views
Is there a tool for managing FreeBSD jails that knows about ZFS?
ZFS under FreeBSD lets one assign filesystems to a jail, such that an account in the jail with the appropriate privileges can access the filesystem, create new subordinate filesystems, and so forth. ...
5
votes
1answer
1k views
Why won't FreeBSD reboot after a kernel crash?
Once in a while I get my server running FreeBSD 8.0 amd64 fail due to bad memory (incompatible with motherboard) modules. Each time it happens, the box stalls with the last note saying that it will ...
5
votes
1answer
456 views
Does kern.hz still have any relevance in FreeBSD if “dynamic tick mode” is enabled?
I'm running a FreeBSD 9.0 setup as a virtual machine in a KVM setup. In previous versions of FreeBSD it was common to force the kern.hz setting to a lower value so that the virtual machine does not ...