To upgrade the version of Perl installed on a FreeBSD server: vi /etc/make.conf Add this line (adjust for Perl version): DEFAULT_VERSIONS+=perl5=5.22 Execute on command line (adjust for Perl version): pkg…
Category: FreeBSD
All Things FreeBSD
FreeBSD ZFS Settings On i386 Hardware
[ad 3] AMD64 Kernel FreeBSD machines are good about autotuning. i386, on the other hand, needs to be adjusted manually. 1. Rebuild your kernel a. Disable/wipe all drivers you are…
FreeBSD LAGG rc.conf
[ad 3] This is what your rc.conf should contain to configure LAGG with FreeBSD: ### LAGG NFS Interface ### ifconfig_bce3="mtu 9000 up" ifconfig_bce0="mtu 9000 up" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto roundrobin laggport bce3…
ZFS Replication on FreeBSD
[ad 3] This script will replicate a ZFS pool to another FreeBSD machine. The sync process is quick, after the initial copy, and depending upon how much data changed. Download…
ZFS + List all snapshots
zfs list -t snapshot Example Output: nas1# zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT nfs/datastore@rep-init-20110113013713 18K - 21K - nfs/datastore@rep20110113013825 311M - 311M - nfs/datastore@rep20110113015314 0 - 68K…
FreeBSD LAGG / LACP Uneven Distribution
If you have setup LAGG on FreeBSD and are noting that one NIC is getting all of the traffic. Switch to roundrobin and check results. The primary ("MASTER") NIC will…
FreeBSD + HAST + CARP + NFS
FreeBSD recently introduced a disk replication setup: HAST. This is FreeBSD's answer to DRDB for Linux. Some very good blog posts, with scripting, can be found here: FreeBSD + HAST…
spamass-milter + FreeBSD
exit 255 at /usr/local/bin/spamd line 2588. /usr/local/etc/rc.d/sa-spamd: WARNING: failed to start spamd The above error can be resolved by typing: sa-update [ad 3]
FreeBSD: Proper buildworld technique
[ad 3] Follow all these steps in this exact order...this is from hard-won experience!!! 1. cvsup the correct /usr/src - example cvsup files can usually be found in /root/sup. Normally…
FreeBSD: Aliasing IPs
[ad#Google Adsense] Edit /etc/rc.conf The primary IP of the machine will be defined by a line that looks similar to this: ifconfig_rl0="inet 192.168.1.2 netmask 255.255.255.0" To add additional IPs you…