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,544
questions
8
votes
1
answer
1k
views
Offline uncorrectable sectors in SSDs being used for ZFS L2ARC?
I have two enterprise-grade SSDs that I've been using for L2ARC in an OpenZFS pool for a few years. Workflow during this time has been fairly heavy, with lots of reads and writes, serving up video to ...
2
votes
2
answers
949
views
ZFS replace disks in freebsd, how and when
I have the following zpool configuration:
zpool status
NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
da1 ...
-3
votes
1
answer
751
views
Freebsd shutdown privileges
I need to create a user and deny them permission to turn off the machine.
DO SOMEONE KNOW HOW TO CHANGE THE PERMISSIONS OF A NORMAL USER TO NOT ALLOW ME TO TURN OFF?
3
votes
1
answer
119
views
How do I configure ZFS to panic on da (SCSI) disk failure?
Situation: two redundant FreeBSD machines using CARP to share a primary IP, running a frontend proxy (E.G. HAproxy or nginx)
Primary machine experiences a loss of SCSI disk (E.G. disk failure, SAN ...
1
vote
1
answer
824
views
I can not compile samba
I can not compile samba,I make the command "./configure" and it returns this error "Samba AD DC and --enable-selftest requires lmdb 0.9.16 or later"
1
vote
0
answers
390
views
DKIM - how to account for different hostnames for the mail host (sendmail, FreeBSD 10.3)
I'm trying to use DKIM on a FreeBSD 10.3 box using "stock" sendmail.
I followed this tutorial: https://www.dan.me.uk/blog/2016/06/01/add-dkim-signing-to-freebsd-servers and now DKIM "works" -- ...
1
vote
1
answer
2k
views
Routing troubles on secondary FIB/routing table on FreeBSD
I have a need for a secondary routing table on this machine. I've got everything mostly set up, but I'm having an issue getting the default route working on the secondary fib.
In most information I ...
0
votes
1
answer
2k
views
How can I clear freebsd caсhe
I used scp to copy a file from another system. After copy has finished I want to clear the cache.
My os is FreeBS 9.2.
Can I do this and how should I do this?
Thanks
1
vote
1
answer
1k
views
Mount a partition from a VM disk ZFS snapshot in FreeNAS
I have a KVM image running on a Zvol in linux that is a block device containing an ext4 partition. It is snapshotted regularly and pushed to a FreeNAS box for backup. If I ever need to recover a ...
5
votes
0
answers
2k
views
FreeBSD networking setup for multiple jails - interface clones or aliases
While setting up multiple jails on a FreeBSD machine, I also (naturally) need to set up the networking for each jail. It seems to me there are two ways of achieving the same goal
setting up multiple ...
1
vote
0
answers
2k
views
How to reinstall boot loader on FreeBSD?
I'm planning to use rsync to clone an entire FreeBSD server to another machine, overwriting the files of the existing old FreeBSD OS (minus /etc/hostid and a few others)
But that would break the boot ...
3
votes
0
answers
795
views
NFS share group permission not respected
I have a linux client and freebsd nfs server (NAS4free actually)
NFS share is mounted by fstab this way:
server:/mnt/disk/ZHomeData on /data type nfs (rw,nosuid,relatime,vers=3,rsize=32768,wsize=...
0
votes
1
answer
243
views
Unable to connect postfix to amavisd in FreeBSD-11 jail
Attempting to send a message through Postfix on a jailed instance of FreeBSD-11 results in the following error when amavisd is configured:
/usr/local/sbin/amavisd[47180]: (!)DENIED ACCESS from IP 127....
1
vote
1
answer
3k
views
swap_pager: indefinite wait buffer
I am using ZFS to receive some datasets around 60GB:
bzip2 -c -d mail.bz2 | zfs receive -F tank/jails/mail
Almost before finishing I start to get this error multiple times:
swap_pager: indefinite ...
0
votes
1
answer
728
views
iocage jail with different subnet cannot ping network
I have a FreeBSD 11.1 iocage jail on a different subnet than the host and I want it to reach other hosts on the same subnet as the host.
Host IP: 192.168.0.10 (interface re0)
Default GW: 192.168.0.1
...
-5
votes
1
answer
204
views
Stuck at setting up Postfix correctly with my own list of domains [closed]
I'm setting up Postfix + PostgreSql on FreeBsd to host my email server. I'm about 50% done.
I'm confused with several *.cf files and can't figure out which I should use for this.
I own several ...
1
vote
1
answer
1k
views
Unable to start OpenVpn on FreeBsd 11, it asks for --dev which I've already specified
My /etc/rc.conf in FreeBsd 11:
hostname="abcd"
sshd_enable="YES"
static_routes="linklocal"
ifconfig_vtnet0="DHCP"
ifconfig_vtnet0_ipv6="inet6 accept_rtadv"
ipv6_activate_all_interfaces="...
0
votes
1
answer
130
views
migrate stopped mariadb server to new one
Hi I'm running a freenas system where I have two jails. One jail is broken in a way that I cannot start the mariadb server anymore due to userland and kernel version mismatch. So I created a new jail ...
1
vote
1
answer
691
views
Plan for hot replacing damaged RAID-1 drive in freebsd 9.0
i have System FreeBSD 9.0 with RAID configuration
# mfiutil show config
mfi0 Configuration: 2 arrays, 2 volumes, 0 spares
array 0 of 2 drives:
drive 4 ( 558G) ONLINE <SEAGATE ...
0
votes
1
answer
561
views
Move Let's Encrypt from Ubuntu+Nginx to FreeBSD+Nginx
I have been running Let's Encrypt's certbot utility with NGINX on Ubuntu Server 17.10 for a while now, and while it has been working well, I prefer FreeBSD. Until recently (Feb 2018), the nginx plugin ...
1
vote
0
answers
533
views
problems getting openvpn to start: segmentation fault 11
I am having some trouble getting open vpn to start on FreeBSD
I am doing this in a Freenas Jail and trying to follow the guide at
https://forums.freenas.org/index.php?threads/how-to-install-openvpn-...
0
votes
2
answers
574
views
carp single wan address
I try to put in place 2 freebsd routers with carp interfaces.
since I have only one wan address, lets say : 1.2.3.4
I'd like to use private range ips to do carp jobs :
10.0.0.1(router1) alias (1.2.3....
1
vote
1
answer
2k
views
set umask 000 on Windows?
Sorry if this sounds like a dumb question, but don't have a lot of experience with NFS and Windows together. I have a user on a Win10 ENT box, connected up to a FreeBSD server. And with the Macs, when ...
1
vote
1
answer
343
views
CPU Total is wrong displayed for a process in monit
I am using Monit, and I am monitoring a few processes.
I have 12 vCPUS, and system is around 20% usage. Yet M/Monit shows some processes to go up to 100%. Well they actually do but just a single CPU.
...
2
votes
0
answers
1k
views
Access denied for all users after MariaDb upgrade
I discovered this morning that MariaDb had been removed from my server in the process of upgrading from FreeBSD 10.3 to 11.1. After getting the database engine reinstalled, and resolving the problems ...
3
votes
1
answer
234
views
Sendmail process crashes as soon as STARTTLS is received
I just upgraded my server from FreeBSD 10.3 to 11.1. It's now running Sendmail 8.15.2 and OpenSSL 1.0.2k-freebsd 26 Jan 2017.
Since the upgrade, sending mail to my server is failing. I cranked up ...
11
votes
2
answers
2k
views
How can I determine what permissions my user is missing for receiving a ZFS dataset?
I have a FreeNAS (11.1-U1) and a FreeBSD (11.1-RELEASE-p6) machine. On the FreeNAS I'd like to zfs receive recursive snapshots as a non-root user with delegated privileges. This appears to work well ...
1
vote
4
answers
7k
views
How to automatically restart a process after a crash or reboot in FreeBsd 11?
What's the idiomatic way? I'd prefer the most standard and yet simple way with fewer additional dependencies. Something like an alternative to systemd of Linux.
1
vote
1
answer
1k
views
need to reset dirty bit on usb flash memory stick
We have a usb memory stick that FreeBSD-11 will not mount because its file system is not clean. It is not clean because it was removed from an extension cable while it was mounted on a FreeBSD-11 ...
0
votes
1
answer
1k
views
How to fix inode 2 on a FreeBSD ufs filesystem
My FreeBSD 11.1 system keeps panic-ing with this:
kernel: panic: ufs_dirbad: /mnt: bad dir ino 2 at offset 0: mangled entry
For such an error most forums suggest an older article (http://phaq....
129
votes
11
answers
18k
views
FreeBSD: Directory called ^C (really!) - how to remove?
I made a typo:
$ history
169 9:34 la /usr/local/etc/
170 9:35 sudo mkdir ^C
171 9:36 sudo mkdir /usr/local/etc/dnsmasq.d
Now I have a file that is called ^C (ctrl+C)!!
When I use ls I just ...
1
vote
1
answer
4k
views
sshd matching user config not working
On server i have only ssh auth, but for one user I need to add a specific folder and password based auth. So I created a user
sudo adduser myuser
then in /etc/ssh/sshd_config file I added:
Match ...
0
votes
1
answer
262
views
Does using jails in FreeBSD count as having a switch?
My network administrators don't like when I plug switch into the building network to fan-out to multiple computers. They want single link drop per physical NIC. Previously the blocked those MACs on ...
0
votes
0
answers
29
views
How to enable users to manage certain groups on file server
Let's assume we are in a business environment and we want to configure a *nix/*BSD file server. The business does work for several customers, thus the folder structure has the clients' names on the ...
1
vote
0
answers
792
views
php-fpm (PHP-7.1) cannot serve content to nginx on FreeBSD
I am trying to install nginx and php-fpm following this guide on a FreeBSD 11.1 system on a raspberrypi-B+.
Everything behaves as described in the guide up to point 14, which involves
opening a php ...
1
vote
1
answer
2k
views
doas on FreeBSD does not respect 5 minute timeout
I've setup doas to run on FreeBSD 11.1 as per these instructions and added the following line to my doas.conf:
permit persist :wheel
I've noticed that I need to insert my password every time I run ...
2
votes
0
answers
3k
views
What to set uwsgi uid and gid to?
I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs:
2017/12/12 11:34:04 [...
3
votes
1
answer
834
views
FreeBSD gateway between two private networks - NAT required?
I have two networks: 10.0.0.0/24 and 10.1.1.1/24.
Default gateway to the Internet is 10.1.1.1 and my gateway system gets assigned 10.1.1.20 on the external interface and has 10.0.0.1 on the internal ...
1
vote
2
answers
554
views
FreeBSD unecpected shutdown/power off
My digital ocean droplet have some unecpected shutdowns in the last days.
The droplet ist off and i have to power it on again. If the system requested a power down then a log entry should exist. But ...
-1
votes
2
answers
405
views
How can I adjust the name of a process I run?
I have a rack/ruby application on a server. I run it as follows:
nohup rackup -o 0.0.0.0 -p 1234 &
In the output of "top" command it appears as simply "ruby"
PID USERNAME THR PRI NICE ...
1
vote
1
answer
610
views
3-drive RAID-1 on pfSense box
I have a pfSense box with a 2-drive RAID-1 using gmirror. Recently, a drive failed, and I replaced the drive, and the RAID-1 is now back to normal. But this incident also made me interested in ...
0
votes
1
answer
447
views
Freebsd ssh gives no prompt
I'm trying to connect to a FreeBsd machine via ssh, but get no prompt in a client. I have changed these options in sshd_config:
Port 253
PermitRootLogin no
PasswordAuthentication yes
It is possible ...
2
votes
0
answers
734
views
Allowing Incoming Traffic over IPv6 with PF on FreeBSD
This is my current pf.conf on FreeBSD 11.1-RELEASE. It allows incoming connections from OpenVPN/UDP and SSH, as well as allows everything on the private/vpn networks (vtnet1 and tun0 respectively). ...
1
vote
1
answer
1k
views
Samba, FreeBSD, ZFS: Group permissions are ignored
I am running Samba 4.6 on FreeBSD 11 with ZFS. Each user belongs to the fileserver group. In addition, there are additional groups for each department, such as sales group.
And here comes my problem....
1
vote
1
answer
378
views
FreeBSD equivalent for Linux configuration of OpenVPN
I'm following a tutorial (https://snikt.net/blog/2016/12/01/openvpn-over-https/) regarding OpenVPN via SSL on Linux machines.
At one point it states:
We modify /etc/default/openvpn to automatically ...
2
votes
2
answers
692
views
How to fix zpool detach hanging the entire pool?
When trying to replace a disk in a zpool on a FreeBSD 10.3-RELEASE-p20 system yesterday, the zfs filesystems became unresponsive after issuing the zpool detach srv gpt/d0 command. The server acts as ...
4
votes
3
answers
1k
views
check if two ZFS filesystems are identical
I would like to verify that two ZFS filesystems (in this case on different pools) are identical. Is there a best practice way to do this?
1
vote
0
answers
1k
views
BTX halted error on FreeBSD
I understand there are a few threads about this out there but my issue seems particular.
Recently my boot disk, an SSD, failed and I have just rebuilt it. Given the opportunity, I thought I might go ...
0
votes
1
answer
434
views
Bhyve + IPv6 can't ping from guest to host until host ping guest
Both host/guest are using FreeBSD 11.1, I created the VM using vm-byhbe.
This is host configuration in /etc/rc.conf
ifconfig_igb0_ipv6="inet6 2a01:4f8:150:84ec::1 prefixlen 64"
...
2
votes
0
answers
432
views
Configure Munin to monitor multiple instances on one node
I need to configure Munin to monitor multiple instances of a server daemon that run on a single host.
I've tried creating a different named symlink for each instance, but unless I also pass an env ...