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.
91
questions
12
votes
2
answers
20k
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:
...
17
votes
5
answers
43k
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, ...
16
votes
3
answers
4k
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 ...
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?
133
votes
4
answers
184k
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 100,000-...
29
votes
10
answers
14k
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?
12
votes
23
answers
27k
views
Best practices to block social sites
In our company we have around 100 workstations with Internet access, and the day-to-day situation is getting worse and worse from the perspective of using
Internet access for the purpose of doing ...
11
votes
5
answers
18k
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 ...
11
votes
4
answers
9k
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 ...
8
votes
3
answers
7k
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 ...
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 ...
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
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
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 ...
3
votes
2
answers
10k
views
What username for Login to Console on a Digital Ocean Droplet running FreeBSD 12
As an alternative to making an ssh connection to your Droplet on DigitalOcean, they offer a "Console" which is a VNC connection, akin to plugging a monitor and keyboard into your virtual server.
When ...
2
votes
1
answer
1k
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 ...
0
votes
4
answers
633
views
How to make proxy on nginx?
How would I set my webservers to work in way described below?
Http request: mypublic.com ---> handled normally by nginx as it is set up already (listen 80;)
Http request: myprivate.com ---> handled ...
0
votes
1
answer
185
views
Setup SunFire 440 Raid Configuration
How can I setup Internal Hard disk RAID5 configuration?
I have SunFire 440 machine with 4 internal hard disk. I have never worked on Sun systems except for now and I am exploring google for the above ...
48
votes
6
answers
13k
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 ...
28
votes
3
answers
25k
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 ls,...
25
votes
6
answers
53k
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 ...
19
votes
4
answers
7k
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 ...
19
votes
6
answers
8k
views
Backing up a MySQL database via ZFS snapshots
I've found a number of sites talking about doing exactly this, but I'm missing a few important details. The general steps are
Run FLUSH TABLES WITH READ LOCK
Take the ZFS snapshot
Run UNLOCK TABLES
...
19
votes
6
answers
52k
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?
...
14
votes
7
answers
62k
views
ZFS import unable to find any pools
I had a ZFS pool -- a mirror containing 2 vdevs -- running on a FreeBSD server. I now have only one of the disks from the mirror, and I am trying to recover files from it.
The ZFS data sits in a GPT ...
12
votes
3
answers
26k
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.
...
11
votes
1
answer
4k
views
Newsyslog wildcards - rotate all logs in a directory
I am running FreeBSD 8.1. I am trying to make newsyslog rotate logs defined by a dynamic path:
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/path/logs/*....
11
votes
1
answer
4k
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 ...
11
votes
5
answers
17k
views
FreeBSD Ports: How can I see all dependencies for a port, and all subdependencies for those dependencies?
I'm trying to build a port which depends on apache-ant.
I thought I could run make build-depends-list to see all dependencies required by this port:
# make build-depends-list
/usr/ports/devel/apache-...
10
votes
5
answers
30k
views
How to integrate Active Directory with FreeBSD 10.0 using security/sssd?
What are the required steps to authenticate users from an Active Directory running on Windows Server 2012 R2 in FreeBSD 10.0 using sssd with the AD backend with Kerberos TGT working?
10
votes
1
answer
69k
views
How to print list of users and groups on FreeBSD?
How to print list of users and groups on FreeBSD?
9
votes
6
answers
12k
views
Recommendations on ZFS on FreeBSD as a NAS box?
Please note that the answers on this page are from 2009, and should not be relied on as gospel. If you have a specific question about zfs then please click the Ask a Question button and ask a specific ...
9
votes
4
answers
5k
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 ...
8
votes
6
answers
30k
views
Identify Disks on SuperMicro server running FreeBSD
I am running on a SuperMicro 2U server with 6 disks in a ZPool. I want to identify each drive bay using the Drive Carrier LED from running a command from a tool in FreeBSD. Is there a way to do this?
...
8
votes
1
answer
3k
views
ZFS vdevs accumulate checksum errors, but individual disks do not
I'm running a vendor-specific derivative of FreeNAS 9.3.
My trouble started when I installed a new JBOD chassis to add two new vdevs into my pool, and the chassis had a bad board. During this time, I ...
8
votes
1
answer
2k
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
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
4
answers
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
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
3
answers
3k
views
FreeBSD server - certified compatible hardware? [closed]
I am looking for recommendations for hardware that is "certified" with FreeBSD (8+)
I suspect I am looking for a small server manufacturer that will build me a server that "just works".
I have 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 ...
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
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
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
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
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 ...
5
votes
1
answer
4k
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
2
answers
3k
views
ZFS Reporting (on FreeBSD and Linux via ZoL)
As a longtime mdadm user is was just experiencing a disk error and remembered that I configured a Auto Mail reporting for mdadm on disk errors.
Therefore i just had to insert my Mail address inside /...
5
votes
2
answers
7k
views
How can I adjust subversion repository file permissions automatically for use w. Apache/DAV?
I've set-up a subversion server accessible with Apache/DAV and after screwing up the repositories file permissions a couple of days ago I started wondering if there's a better way to do this than the ...
5
votes
3
answers
3k
views
httpready problem on Apache httpd restart on FreeBSD?
I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this:
accf_http_load="YES"
accf_data_load="YES"
That works great when the ...