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

2
votes
1answer
929 views

FreeBSD CPU serial number

I trying to read out CPU serial number information from a server which has FreeBSD. I tried these with no effort: sysctl dmesg cpucontrol These utility is not exists on the system: Dmidecode ...
2
votes
2answers
298 views

Reporting historical system activity in FreeBSD

I'd like to record data about system activity under FreeBSD for future analysis. If I were running a SysV system, I'd just sar and its related utilities, but that doesn't exist in the BSDs. (And ...
2
votes
1answer
523 views

mysql on freebsd makes 1GB binary log files every 20 minutes filling free disk space very fast

I have a problem with MySQL on FreeBSD. It makes a lot of 1GB binary files every 20 minutes and it's filling free disk space rapidly. -rw-rw---- 1 mysql mysql 1073741982 2013-09-14 18:26 ...
2
votes
1answer
395 views

ZFS configuration opinions [closed]

Currently, I'm tasked with progressively building a ZFS store. IOPS are not the priority, data security and capacity are. In essence what we have is one brute of a machine, that contains an OS ...
2
votes
1answer
588 views

nslookup fails inside freebsd jail

I posted on the freebsd forums. I've been trying all night and I've made some progress but still I can't connect to the internet from my freebsd jail. Please just give me a hint here. I get the ...
2
votes
1answer
402 views

Managing multiple linux\freebsd server? [closed]

I currently have 5 FreeBSD servers that I'm handling on my own. I just bought 10 more servers and I want to start using some centralized configuration system like Puppet. I was wondering if there ...
2
votes
1answer
479 views

ipfw strange rules after reboot

I set this lines in my rc.conf: firewall_enable="YES" firewall_type="/etc/ipfw.rules" cat /etc/ipfw.rules add 02020 deny ip from table(10) to any add 02030 deny ip from table(11) to any ...
2
votes
1answer
339 views

How to apply patches to phantomjs port in FreeBSD 9?

I have installed FreeBSD 9 and I need to install phantomjs. It is available in /usr/ports/lang/phantomjs but the version is 1.0 while I need a more recent version. There is a patch to update to ...
2
votes
2answers
169 views

How do I find out my CD ROM hardware specifics on FreeBSD?

I can usually use dmesg soon after bootup to display hardware info that my kernel loads. After my system has been up for a while however, dmesg no longer produces anything of value concerning ...
2
votes
3answers
1k views

Are there any PCIe SSD cards compatable with OpenIndianna (OpenSolaris) and/or FreeNAS (freebsd) 8+?

Has anyone had any success at all with any PCIx SSD cards around the 200GB+ mark under FreeNAS 8 or OpenIndiana? Specifically either of these platforms because of ZFS support for which we'd be using ...
2
votes
2answers
472 views

How much does FreeBSD differ from Linux?

I was trying to setup a NAS box for my ESXi server using linux, I was going to install ZFS and iSCSI and I thought everything was going to be awesome. I was wrong... ZFS on Linux is not the most ...
2
votes
1answer
277 views

FreeBSD Jail Authentication and Commands

I have setup a jail on FreeBSD-8.2 following the manual. After the setup, I copied these files rc.conf, /etc/passwd from base to jail. And this is what I did in order: jexec id passwd (to change the ...
2
votes
1answer
3k views

Using two network interfaces for FreeBSD VM

How do I turn on/off one network interface without affecting the other in FreeBSD? I have a FreeBSD 8.2 virtual machine (Virtual Box 4.1.4), with two network interfaces, one bridged to my Ethernet ...
2
votes
1answer
222 views

Move data from root ZFS into child filesystem

I have a zpool (pool verion 13, FS version 3, called tank0) with about 2.5TB of data in the root of the pool (i.e. directly in /mnt/tank0). OS is FreeBSD, actually FreeNAS version 0.7.2. I would like ...
2
votes
1answer
199 views

Email Address Generator

I'm developing a service which requires me to generate a new email for every "sign up." For example, person000@name.com, person001@name.com, person002@name.com, and so forth. My first attempt was ...
2
votes
1answer
927 views

pipe multiple files, single ssh connection, remote commands

I'd like to pipe several files to a remote server, piped as input to commands run on the remote server, over ssh, but only one ssh connection/command is permitted. (In the remote authorized_keys file, ...
2
votes
2answers
290 views

Сan I configure FreeBSD to use DHCP or a static IP depending on the detected ssid?

I have a FreeBSD 8 machine which can use several wireless access points. I want it to use the first available network and automatically use DHCP or a static address as required. Is it possible under ...
2
votes
1answer
1k views

rsync to remote server that does not have the same users setup as local server produces permission error

I'm setting up a backup of my linux-based webserver to a NAS running FreeBSD. I've created a backup user on the FreeBSD box and ran rsync as root on the local (web server) box using the following ...
2
votes
1answer
1k views

Protecting against UDP flood

One of my servers is being flooded with udp packets on random ports. 12:11:54.190442 IP 182.48.38.227.60173 > localhost.51523: UDP, length 1 12:11:54.190447 IP 182.48.38.227.60173 > ...
2
votes
1answer
171 views

Running script when FreeBSD boots, but changing cwd first

I want to run a script when FreeBSD boots. I tried symlinking to it from /usr/local/etc/rc.d, but the script itself (myscript.sh) uses paths such as ./init-site.sh. These don't resolve correctly when ...
2
votes
1answer
4k views

nss_ldap: could not search LDAP server - Server is unavailable

I have an OpenLDAP server installed on FreeBSD 8.x. I am getting this error: Mar 25 16:11:45 ldap2 slapd[1268]: nss_ldap: could not search LDAP server - Server is unavailable I have included my LDAP ...
2
votes
1answer
658 views

Booting FreeBSD from whole-disk ZFS pool?

I have a FreeBSD fileserver configured with one ZFS pool created from whole disk devices. That is, the pool was created like this: zpool create pool0 raidz ada0 ada1 ada2 This means the disks have ...
2
votes
1answer
738 views

Where do ack-only sent packets come from (on FreeBSD)?

I run the systat -tcp command on a moderately loaded system and see something like this for a 5 second window: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average ...
2
votes
4answers
1k views

FreeBSD tcsh and terminal window size

When I'm working on my FreeBSD server's ssh, it always assume that terminal width is 80 columns. E.g. man pages show up in one thin column and all programs that use COLUMNS and LINES environment ...
2
votes
1answer
3k views

'pargs' command in FreeBSD or Linux

What's the FreeBSD (or Linux) equivalent to the 'pargs' command, available in Solaris? Many times I want to know what are the environment variables for a given process space, with no help from these ...
2
votes
1answer
410 views

Binary won't execute when run with a path. Eg >./program won't work but >program works fine

I'm getting some weird behaviour for a binary file I'm trying to run. I'm using Mac OSX snow leopard, and the binary itself is part of labkey software .. built from source. If I try to run the file ...
2
votes
1answer
126 views

What is the best way to convert a block number to a file name in FreeBSD?

Today I found the following message in the daily log mail I get from a FreeBSD server: ad2c: hard error reading fsbn 1081249272 of 540624636-540624639 (ad2 bn 1081249272; cn 1072667 tn 14 sn 54) ...
2
votes
2answers
388 views

How to enable gjournal on FreeBSD after upgrade from 6.x?

We have one server that was upgraded via buildworld etc. from FreeBSD 6.4 to 7.2. As you know one of the best new features in 7.* freebsd's branch is gjournal, but it seems to me that it is impossible ...
2
votes
1answer
435 views

zfs pool failing import with online disks and status

While preparing to move a zfs pool to another server chassis I did an 'zfs export' while in multi-user mode. Hindsight I should have have done this from a rescue disk. After the export, which ...
2
votes
2answers
410 views

Why does zfs fail to cache this workload when “normal” filesystems cache it completely?

Update: because recordsize defaults to 128k, the amount of data read by the test program is much larger than the ARC on an 8GB system and still slightly larger than the ARC on a 16GB system. Reducing ...
2
votes
2answers
1k views

Shared object “libarchive.so.5” not found, required by “pkg”

I just updated my FreeBSD from 9.x to 10.0 (using freebsd-update) and now my pkg isn't working. # pkg Shared object "libarchive.so.5" not found, required by "pkg" # I know I can use pkg-static ...
2
votes
1answer
115 views

How to fix geometry of two identical disks?

I have two identical HDD. First has geometry 3876021/16/63 and second has geometry 3876018/16/63. First disk's capacity is 50% already. I want to add second disk to mirror (first disk is master). How ...
2
votes
1answer
359 views

Update FreeBSD ports to specific version/time [duplicate]

I know that i can use the command Portsnap fetch update in order to update the ports tree. My issue rises because i have 2 servers, one running php 5.2 (server a) and the other running 5.3 (server b) ...
2
votes
1answer
861 views

FreeBSD 2 network cards

We have server with 2 network cards with FreeBSD on it. 1 card used for internet (works fine) and another one for local network connection (to 192.168.227.0/24 net). When i try to ping gateway of ...
2
votes
3answers
617 views

Shared authentication across FreeBSD Jails

I am using FreeBSD with ZFS to run several jails. For jail management I'm using ezjail, and I have a template jail which I use for provisioning. I want to share passwd, groups, and authentication ...
2
votes
1answer
361 views

Running commands on FreeBSD Live CD

I'm running FreeBSD 9.1-PRERELEASE on a vps running on XEN virtualization, I tried to update it to 9.1-RELEASE but mergemaster toasted my /etc/master.passwd and /etc/passwd so what i have now is a ...
2
votes
1answer
3k views

How I can create a FTP-only account, in FreeBSD?

I created an account to be used only for FTP sessions: # adduser Username: test Full name: Uid (Leave empty for default): Login group [test]: Login group is test. Invite test into other groups? []: ...
2
votes
2answers
578 views

recursively mounting ZFS filesystems?

I'm aware this more of a beginners question, but manpages, google and FreeBSD Handbook provided no solution. I'm using ZFS Version 28 on a 8.2 Stable FreeBSD and my problem is the following: When I ...
2
votes
1answer
586 views

php5.4 + freebsd8.3+nginx can't get errors

I have a confusing behaviour. I can't get any error into log file or screen. I made a file index.php with content like this: "<?php a();".Normally, I will get message like this: "Call to ...
2
votes
1answer
520 views

How can I make exim deliver a single incoming mail to multiple local maildirs?

I'm maintaining an IMAP server running FreeBSD which uses exim 4.80 as its MTA. Right now I try to create an email alias so that I can address all users of the system for informing them about ...
2
votes
1answer
689 views

Apache httpd processes in lockf state

We run Apache on a FreeBSD system, it has multple web apps on it (Wordpress, Magento, custom PHP). As the traffic increases, we see more and more httpd processes in status "lockf" (using 'top'). The ...
2
votes
1answer
281 views

FreeBSD - monitor aggregate bandwidth of individual local network devices

I'm looking for ways to monitor the Internet usage - the total amount of data transferred - of individual devices on my network. I'm using FreeBSD 9.0-RELEASE with pf for filtering and NAT. I'm not ...
2
votes
1answer
433 views

Moving data from linux mirrors into freebsd ZFS

I got an 3 years old computer with 4GB RAM Dualcore/Intel, and 4 hotswapable SATA HDD's (500GB each, 2+2 in LINUX RAID-1 configuration - so i have 2 500GB mirrored volumes). Each volume is full of ...
2
votes
1answer
917 views

HP NC107i (BCM5723) on freebsd 9

We've purchased 3 hp proliant dl120 servers. They come with 2 integrated network adapters - HP NC107i PCIe Gigabit Server Adapter which is based on BCM5723. After Freebsd 9 installation I've ...
2
votes
3answers
2k views

Port-Forward for all IPs on an interface

I'm running a java-based web server as a non-privileged user. Therefore it listens on ports 8080 and 8443 instead of 80 and 443. Right now I'm using the following pf rules to forward the ports ...
2
votes
1answer
740 views

Keeping freebsd up to date with only binary packages

Here's what I want: I want to install RELEASE-8.2, and want to keep the system and packages up to date with security patches only. I want to avoid ports b/c I do not want my machines to start ...
2
votes
1answer
84 views

Apache PATH very long with duplicate entries

When showing phpinfo() the sheet show that Apache PATH enviroment variable is very very long and with duplicate entries? Why is that? And how to fix? ...
2
votes
2answers
2k views

FreeBSD: OpenLDAP, SASL, and GSSAPI

I've run into some problems getting OpenLDAP on FreeBSD (8.2-STABLE) to authenticate using Kerberos tickets. I hope I've just had a brain glitch, so please feel free to let me know that I've missed ...
2
votes
1answer
1k views

Horrible PostgreSQL locking performance

I recently noticed a very horrible PostgreSQL locking performance drop after running the DB server for a couple month. The load of the website increased a lot these weeks but the speed is getting ...
2
votes
1answer
477 views

I cannot use screen stuff command from cron, but I can from a shell script (same user)

I have a shell script on FreeBSD that sends a few screen stuff commands to a running screen session (which runs a Minecraft server). The commands work when I execute it manually. But if I put the ...