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, ...

learn more… | top users | synonyms

111
votes
4answers
152k views

FreeBSD performance tuning: Sysctl parameter, 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 ...
38
votes
1answer
2k 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 ...
35
votes
5answers
8k 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 ...
23
votes
10answers
5k 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?
17
votes
4answers
6k 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 ...
16
votes
4answers
50k views

Check OpenSSH version and update instructions on FreeBSD system

On a FreeBSD system (8.1), I am looking for instructions on how to check the running version of OpenSSH and also instructions on the best way to download install an update of OpenSSH
14
votes
5answers
34k views

How can I tell how much RAM is installed on a FreeBSD server?

As per the title: How can I tell how much RAM is installed on a FreeBSD server? Thanks!
14
votes
3answers
2k 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 ...
14
votes
4answers
2k views

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 ...
13
votes
6answers
4k 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 ...
11
votes
7answers
5k 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 ...
11
votes
3answers
5k views

How can I scroll back the output in FreeBSD's console without Scroll Lock?

I've installed FreeBSD inside a VM on a laptop. As it turns out, the laptop keyboard has no Scroll Lock key, which is used for scrolling the screen back in FreeBSD's console. How can I scroll back the ...
10
votes
4answers
6k views

Can I trust that ZFS is consistent between Linux and FreeBSD?

I'm planning to build a FreeNAS box sometime soon, but if ZFS on Linux eventually proves to be reliable, I might want to switch, just to have a more familiar OS. So I'm wondering if I can trust that ...
10
votes
1answer
5k 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 ...
10
votes
1answer
2k views

FreeBSD link aggregation no faster than single link

We put a 4 port Intel I340-T4 NIC in a FreeBSD 9.3 server1 and configured it for link aggregation in LACP mode in an attempt to decrease the time it takes to mirror 8 to 16 TiB of data from a master ...
9
votes
2answers
13k views

Need to replace disk in zpool … confused

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows pool: raid-5x3 state: ONLINE scrub: scrub completed after 15h52m with 0 errors on Sun Mar 30 13:52:46 2014 config: ...
9
votes
2answers
4k views

FreeBSD: How to know real file size on zfs with compression on?

I'm using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size. Surely I can walk over the directory and count every file size with ...
9
votes
5answers
7k 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 ...
9
votes
1answer
529 views

Freebsd change default Internet channel route

I have two Internet channel and Gateway on freebsd. When I switch channel with the command route change default chan2, the command netstat -nr shows changed default route. But traceroute shows that ...
8
votes
5answers
2k 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 ...
8
votes
3answers
10k views

Dovecot user lookup fails when using username@domain format

I have Dovecot v2.0.11 installed on a FreeBSD server and the user lookups for incoming email addresses are failing, but lookups for system users is successful. Dovecot is setup to use system users, ...
8
votes
5answers
12k 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 ...
8
votes
3answers
1k 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
4answers
4k 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 ...
8
votes
9answers
11k views

Simple web-frontend for remote svn administration? [closed]

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 ...
8
votes
4answers
6k views

Possible to disable “You have new mail in /var/mail/root”?

I would like to disable the mailcheck in FreeBSD 9.1. My login shell is BASH, so I have tried to add unset MAILCHECK in /root/.bashrc and /root/.profile, but I still get those messages. Question ...
8
votes
1answer
2k views

FreeBSD: periodic(8) is too noisy. How can I control the noise level?

FreeBSD & MacOSX ship with the the periodic(8) utility, which is a neatly organized set of utilities to periodically run system functions like ZFS filesystem checks, security checks, checking for ...
8
votes
1answer
570 views

FreeBSD `freebsd-update` automation?

freebsd-update command prints updating entries after it downloaded. But it shows them with more. So I have to press some spaces to continue. Is there a way to avoid this behavior? I want to execute ...
8
votes
2answers
859 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
4answers
2k 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 ...
8
votes
1answer
7k views

NOQUEUE: reject: RCPT from on freebsd and postfix

I am building a server using this config -> http://www.purplehat.org/?page_id=4 and when trying to test basic email capabilities I get -> NOQUEUE: reject: RCPT from when try to send a test email. ...
8
votes
1answer
2k views

What Emacs package should I install for command-line on FreeBSD?

I'm newbie on BSD. I installed FreeBSD with minimal configuration, so there's no package installed. I tried pkg_add -r emacs, the command tried installing many of X11 related packages (not sure, but ...
8
votes
2answers
1k 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?
8
votes
1answer
503 views

ELK Stack (Logstash, Elasticsearch and Kibana) with concurrent remote syslog server?

I'm building a log analyser service to start monitoring mainly our pfSense Firewalls, XenServer Hypervisors, FreeBSD/Linux servers and Windows servers. There's a lot of documentation on the internet ...
8
votes
1answer
1k 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
6answers
14k 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?
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
1answer
2k views

FREENAS: Why isn't mv command instant within a RAIDZ1 volume?

I'm currently 'reorganizing' file structure within a RAIDZ1 volume. Moving directories from one dataset to another, which are both contained on the same volume. SSH'ed into the machine and did a ...
7
votes
3answers
16k views

How do I recover from a faulted zpool where one device is OK, but was temporarily offline?

I have a zpool with 4 2TB USB disks in a raidz config: [root@chef /mnt/Chef]# zpool status farcryz1 pool: farcryz1 state: ONLINE scrub: none requested config: NAME STATE READ ...
7
votes
3answers
190 views

SFTP with chroot depending on public key of connecting user

I want to build a server (running Debian or FreeBSD) that receives backups from different clients via sshfs. Each client should be able to read and write its own backup data, but not the data of any ...
7
votes
1answer
1k 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 ...
7
votes
2answers
100 views

Setting timezone to UTC in unattended install

In FreeBSD, I'd like to set the timezone to UTC in an unattended way. If I run tzsetup, and select "yes" and "a" in the dialogs, for choosing UTC, I see that there are no /etc/localtime files present. ...
7
votes
2answers
1k 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
2answers
8k views

Need to identify disk in zpool … how?

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca UNAVAIL 0 0 0 cannot open How do I find the serial # of that disk? ...
7
votes
2answers
811 views

Does speed of ZFS snapshot rollback depend on number of files?

I have tested a 10Gbit connection between two hosts to be able to read a 10GB file from host1 and write it to host2 using netcat, where the speed was 410MB/s. When I ZFS send/receive again with ...
7
votes
3answers
874 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 ...
7
votes
2answers
1k 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 ...
7
votes
2answers
2k 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
1answer
177 views

Disk size addressable by the OS

I have a 3ware 9550SXU-12 storage controller and 750G disks connected to it. The disks are configured as single units (not JBOD). I've been running some performance tests, mainly to see the impact of ...
7
votes
2answers
417 views

FreeBSD's ng_nat stopping pass the packets periodically

I have FreeBSD router: #uname 9.1-STABLE FreeBSD 9.1-STABLE #0: Fri Jan 18 16:20:47 YEKT 2013 It's a powerful computer with a lot of memory #top -S last pid: 45076; load averages: 1.54, 1.46, ...