Questions tagged [freebsd]
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, and userland utilities such as shells.
1,545
questions
7
votes
2
answers
22k
views
How to use nginx PAM module?
I would like to use nginx PAM module to authenticate a site with existing users on a FreeBSD system. I tried to use pam_unix.so, but no luck. It's just not let me in with my usr/psw pair. :(
nginx ...
7
votes
2
answers
930
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
3
answers
23k
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
1
answer
3k
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
2
answers
4k
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 ...
7
votes
4
answers
13k
views
PXE boot FreeBSD iso from pxelinux server
I'm using FOG as a TFTP / PXE server and would like to be able to boot a FreeBSD LiveCD (specifically pfSense, but it could be any LiveCD, really); I've found HOWTOs for booting a "netboot" BSD but ...
7
votes
1
answer
7k
views
Install Java 9, 10, 11, or 12 on FreeBSD 11.1
When I look to my up-to-date Ports collection:
cd /usr/ports/java && ls -d openjdk*
… I see only versions 6, 7, and 8 of Java in the OpenJDK releases:
openjdk6 openjdk6-jre openjdk7 ...
7
votes
2
answers
2k
views
Reducing ZFS stream size for offsite backup
NOTE: My understanding of this question has changed significantly since I first asked it (see Edit 2 below) but I've left the original version intact.
We've put together an offsite backup system (...
7
votes
3
answers
2k
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
2
answers
2k
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
2
answers
2k
views
How to put FreeBSD configuration under Revision Control?
I heard once that in Linux it's possible to put whole /etc/ directory into repository. In fact i already done too much crap on server and I quite disoriented what exactly is setup in there at all.
...
7
votes
2
answers
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
1
answer
262
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
2
answers
721
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, 1....
7
votes
3
answers
47k
views
PAM_LDAP Authentication failure with correct credentials on freebsd
I need to get our freebsd servers to auth via AD, but it is giving me problems.
Environment:
AD backend (Win 2k8r2). This works with other linux hosts which auth via SSSD
FreeBSD 9.1 for client ...
7
votes
2
answers
8k
views
PXE Boot FreeBSD ISO from a Linux PXE server
I have a working PXE boot server running on CentOS 5.5 that works perfectly for any flavor of Linux. I'm trying to add FreeBSD to the install options as a ISO memdisk, but so far nothing is working ...
7
votes
2
answers
2k
views
How to set up two-factor authentication with OTP on FreeBSD?
I have a FreeBSD server that I like to be able to get to from anywhere. Normally I use SSH publickey to log in, or if I don't have my SSH private key available then I might use regular password over ...
6
votes
13
answers
16k
views
Network monitoring tool for FreeBSD [closed]
I am using FreeBSD 6.1 as router.
Now I looking for Network Traffic Monitoring software to see what's happening with internet link.
I have two installed LAN cards in my system, one for lan and other ...
6
votes
2
answers
23k
views
Determine the motherboard/chipset type on FreeBSD box
I need to know what chipset / motherboard type for a FreeBSD box.
Is there a quick way to do that without ports ?
Thanks
6
votes
5
answers
18k
views
Free space on ZFS file system unexpectedly missing
Going to completely rephrase this question since it's still an outstanding production issue several months later.
I have a FreeNAS 0.7.2 box, based on FreeBSD 7.3-RELEASE-p1, running ZFS with 4x1TB ...
6
votes
2
answers
609
views
Is there a good guide to using "The DJB Way" with FreeBSD?
I'm rapidly becoming a FreeBSD convert (from Linux). I'm also intrigued by djb's software. Is there a good guide to replacing the standard set of FreeBSD utilities with their djb equivalent? It would ...
6
votes
2
answers
12k
views
ZFS over iSCSI high-availability solution
I am considering a ZFS/iSCSI based architecture for a HA/scale-out/shared-nothing database platform running on wimpy nodes of plain PC hardware and running FreeBSD 9.
Will it work? What are possible ...
6
votes
1
answer
4k
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 ...
6
votes
4
answers
6k
views
Serial Over LAN on FreeBSD with SuperMicro X9-SCM-F
How can I setup Serial-Over-Lan (SOL) on FreeBSD with a SuperMicro X9-SCM-F motherboard? There are a few resources out there but they contradict each other, are unclear, and don’t actually allow me to ...
6
votes
3
answers
11k
views
Dropping Cached Memory on FreeBSD
i use FreeNAS server which is built on OS version FreeBSD 8.2-RELEASE-p6.
I use ZFS file system with 13TB HDD on my 8GB physical ram installed box.
It almost uses all of RAM installed while ...
6
votes
2
answers
8k
views
How do I automatically start supervisor on boot in FreeBSD?
Is there a pre-existing startup script for supervisord on FreeBSD? If not, is there a good guide for writing rc.d scripts for FreeBSD? I'm pretty new to the platform.
Thanks.
UPDATE:
I now have the ...
6
votes
3
answers
13k
views
ZFS on enterprise RAID pass-through, and ZFS on FreeBSD root
We've been running ZFS on top of a single hardware RAID on dell poweredge for years. I know most people are against this, but the snapshot/clone, compression and flexible partition of ZFS served us ...
6
votes
2
answers
782
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.
...
6
votes
2
answers
808
views
Conflicting information about the running kernel version in FreeBSD
I asked a related question about uname before and now want to ask from another angle, because the following simple yet obvious conflicting outputs may mean there is something many people did not think ...
6
votes
2
answers
30k
views
How often should I defrag ZFS pools?
I ZFS scrub once a month which takes ~24 hours for the 72TB. For what I can find about how often I should scrub is:
very busy pools, once per week
not so busy pools, once per month
or run a scrub, ...
6
votes
5
answers
5k
views
How do I spamtrap with Postfix?
How do I setup spamtraps with Postfix so clients that send to trapped addresses are prevented from sending me more spam?
6
votes
3
answers
16k
views
Minimum hardware requirements of a loadbalancer?
I'm going to use a FreeBSD system as a loadbalancer which routes 1gbps public traffic to back-end webserver cluster. What are the minimum hardware specs for this job?
Thanks.
6
votes
2
answers
915
views
Migrate FreeBSD Jails to Linux
we are running some jails in FreeBSD 10 and the decision has been made to decommission the FreeBSD server and migrate all the jails to Linux environment Red Hat 6 or 7.
Is there a straight forward ...
6
votes
2
answers
11k
views
How to log every login (SSH) on FreeBSD
I want to log every SSH login attempts, both successful and not, to my FreeBSD server to a file, and daily mail this log to root.
I could accomplish something like this by parsing /var/log/auth.log, ...
6
votes
3
answers
1k
views
Is MINFREE (percentage of disk space reserved for the root user) old hat?
On FreeBSD systems, and presumably a bunch of others, there is an amount of space reserved for root which is MINFREE% of the total capacity. With multi-terabyte filesystems, the default of 8% is a ...
6
votes
2
answers
2k
views
(Why) does FreeBSD 'net.inet.tcp.always_keepalive' violate RFC1122?
While working on a server application that runs on FreeBSD and uses TCP, I noticed that TCP keepalive probes get
sent even though my application explicitly disables SO_KEEPALIVE on TCP sockets.
...
6
votes
2
answers
4k
views
How to grant su access to wheel without asking for password on FreeBSD?
I would like to grant users of the wheel group (other sysadmins) su access without being asked for password.
I know how to do it with pam in linux, but the question now is for FreeBSD. I am not ...
6
votes
1
answer
3k
views
Resize zfs pool
We are using Digital Oceans block storage feature on our FreeBSD system.
When we add a new block storage we get:
da0 at vtscsi0 bus 0 scbus0 target 0 lun 1
da0: <DO Volume 1.5.> Fixed Direct ...
6
votes
1
answer
6k
views
Understanding PAM authentication procedure on FreeBSD with security/sssd
I'm trying to understand what's behaving errantly on my PAM configuration on FreeBSD 10.0
The machine is configured with two different authentication realms, one is the default Unix authentication ...
6
votes
1
answer
3k
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
2
answers
911
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
2
answers
25k
views
Header set Access-Control-Allow-Origin not working with mod_rewrite + mod_jk
My first question on here on SF so please forgive me if I manage to bork the post. :)
Anyways, I'm using mod_rewrite on one of my machines with a simple rule that redirects to a webapp on another ...
6
votes
2
answers
3k
views
Easy multi-level authentication for sudo
I have a FreeBSD server with password-based SSH enabled. I would like to enable sudo, but I do not want a potential attacker to be one password away from root access. My current solution is logging ...
6
votes
1
answer
2k
views
pf slows traffic extremely down
I am running a web and mail server on FreeBSD 9.1. The system is installed on a KVM vServer. Everything works fine - until I enable pf(4). My weblog becomes unconscionably slow. So does all the other ...
6
votes
2
answers
1k
views
Symbolic Links and Multiple Mount Points
I am sure this may seem like a simple question, but I cannot seem to ask Google the correct question for the life of me. In short, I am having trouble understanding how symbolic links function when a ...
6
votes
2
answers
4k
views
How can I make bash to log shell commands to syslog?
Bash 4.1 is able to log the history to syslog. However I can't seem to make it work under FreeBSD 8.
I've tried re-compiling bash from ports with -DWITH_SYSLOG= but to no avail. Has anyone managed to ...
6
votes
3
answers
4k
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. ...
6
votes
1
answer
3k
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 ...
6
votes
5
answers
15k
views
How to find out the memory cost of each mysql connection?
I want to find out the memory cost of each mysql process. Right now, I have 800+ mysql connections but I have no idea when will the system start swapping. I use FreeBSD.
6
votes
1
answer
4k
views
FreeBSD IP aliases in different subnets and default outgoing IP address
I have a FreeBSD VPS that until recently had assigned 3 public ip addresses in a /29 subnet. When making outgoing connections, the IP address used was always the non aliased one ".20", however now I ...