Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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, ...

-1
votes
0answers
14 views

transfer raid 0 array from freenas to windows

I have three disks in raid 0 with some data on it (not mission critical). This pool was created on a freenas installation and I was wondering if there is a way to re-mount the same raid 0 array in ...
0
votes
0answers
2 views

One set of ipfilter rules - several interfaces

Is there a canonical way to apply one set of ipfilter rules to several NICs, and is lagg (link aggregation) appropriate for that? Note the freebsd tag.
1
vote
1answer
34 views

Why do SSH keys work for users `root` & `freebsd` but not `postgres` (database owner)?

I have been using FreeBSD running an a virtual machine at DigitalOcean.com. I use Secure Shell (SSH) from my Mac to remote into a console session on the VM. I used ssh-keygen to create the pair of ...
0
votes
0answers
11 views

Where to find logs from Postgres 11.1 on FreeBSD 11.2?

Having built Postgres 11.1 on my FreeBSD 11.2 machine, where might I find the logs output from Postgres. Specifically, when attempting to start Postgres for the first time, I get an error message ...
2
votes
2answers
53 views

ZFS dataset doesn't automatically mount

Running on a FreeBSD 12.0 system, a dataset (my home directory) does not mount automatically at system boot. Manually mounting it (i.e. via zfs mount zroot/usr/home/username) works correctly. This ...
1
vote
2answers
2k views

FreeBSD: how to syncronize the system clock with the hardware clock in bash?

I am writing a script that synchronizes the system clock with the hardware clock (aka RTC, or CMOS clock) assuming that no Network Time Protocol (NTP) daemon is running. I am running in a virtual ...
0
votes
2answers
31 views

Get list of users in a group in FreeBSD

How to get a list of usernames assigned to a group in FreeBSD 11.1? This Question asks for a list of users or a list of groups. This Question asks for users who happen to be members of multiple ...
2
votes
1answer
53 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 ...
0
votes
0answers
13 views

Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)

When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”....
1
vote
1answer
3k views

FreeBSD VMware and CAM status: SCSI Status Error

I'm running a FreeBSD 10.1-RELEASE-p19 on a VPS (VMware). My ISP is experience a rapid data growth, and these messages spontaneous started to show up in our logs a week ago. Sep 25 09:00:50 srv03 ...
0
votes
0answers
20 views

PF source address masking similar to dummynet

I'm looking for a way to implementing traffic shaping in a way that dynamically shares a connection among all users while preventing any one user from monopolizing the bandwidth. Ideally all users who ...
8
votes
1answer
13k views

How to change default shell in FreeBSD?

The default shell in FreeBSD is sh and I really can't stand it: autocomplete is very limited, and rehash commands kill me. I feel like a one armed and one legged man... How can I change the shell ...
11
votes
3answers
9k views

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases: If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I format ...
0
votes
0answers
18 views

Exim & Postgrey with UNIX socket on FreeBSD

I'm configuring Exim to cooperate with Postgrey on FreeBSD 12.0-RC1 and everything work's very well when MTA connecting via inet, but when I change to UNIX socket there is no reaction even if I run ...
1
vote
1answer
642 views

Docker on freebsd11

I am trying to build a python application on freebsd11 and docker i have installed docker as per https://wiki.freebsd.org/Docker and all seems to work fine. my Dockerfile is like FROM python:2-slim ...
1
vote
1answer
31 views

How to correctly attach a disk to a zpool to create a mirror? - zpool attach says no such pool or dataset

Yesterday one of my pools which is a mirror was degraded - one of two 2TB disks failed. I replaced the failed one with another disk 4TB (ada3). Now I want to add another 4TB disk (ada1) to enlarge the ...
1
vote
1answer
3k views

mysql won't start on FreeBSD

We recently picked up a client that has a site hosted on a FreeBSD box. The stack is FAMP. Things were chugging along just fine until recently mysql seems to have stopped running. There is no mysql ...
1
vote
1answer
49 views

FreeBSD/ZFS disk in pool and not in a pool at the same time

I have following status: $ zpool status pool: cs01 state: DEGRADED status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to ...
0
votes
1answer
2k views

GPT partition errors on boot - ZFS FreeBSD

My system appears to be running fine and I'm just trying to clean up errors. That said... On boot, I get the following errors for all drives in a 24 disk storage enclosure: GEOM: diskid/DISK-%20%20%...
6
votes
5answers
16k 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? ...
4
votes
0answers
88 views

FreeBSD major update broke vpnc connectivity, incoming ESP traffic doesn't appear unencrypted on interfaces

I updated a FreeBSD box from 10.4 to 11.2-RELEASE-p4 recently and it seems to have broken the vpnc VPN connectivity. Here's the vpnc.conf: IPSec gateway 10.1.0.1 IPSec ID vpnuser IPSec secret ...
3
votes
2answers
2k views

ntpd daemon doesn't start automatically in FreeBSD

I wanted to setup ntpd the right way - so not with a crontab entry. I followed the guide in the FreeBSD docs: create an entry with ntpd_enable="YES" in /etc/rc.conf checked that everything works ...
0
votes
1answer
93 views

Installing a WD Red NAS drive on a bare metal Freebsd 11.2 machine with ZFS

WD Red NAS drives come with built in firmware (NASware 3.0). If the drive is not going to be used in a conventional NAS device, such as a Synology or FreeNAS machine, are there any special procedures ...
0
votes
1answer
34 views

shutdown -h now: FreeBSD server won't power down [closed]

I'm not a sysadmin, but got a used dell poweredge r320 anyway. A problem I've been having with it is that after issuing the shutdown -h now command in FreeBSD the system goes through the init system ...
0
votes
2answers
30 views

SED to search for and delete ip with a partial match

I have various bash scripts that run, they scan log files for folks who try and make mischief, spam us and so on. I have been struggling with this for some days trying to figure this out. I have a ...
1
vote
1answer
330 views

Proper permissions on FreeBSD with nginx and php for multiple users

I am trying to set up a multi-user FreeBSD server using nginx. Here are my steps so far: In my /usr/local/etc/nginx/nginx.conf file I set user www www; so that nginx acts as the www user, part of ...
13
votes
5answers
25k 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? ...
8
votes
1answer
13k views

How to NFSv4 share a ZFS file system on FreeBSD?

Using FreeBSD 9, and created a ZFS file system like so zfs create tank/project1 zfs set sharenfs=on tank/project1 There are many howto's on setting up NFSv3 on FreeBSD on the net, but I can't find ...
7
votes
0answers
59 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
4
votes
2answers
2k views

Linux alternative for FreeBSD systat tool

I'm looking for a Linux alternative for systat tool that is avalaible only for FreeBSD. What do you recommend?
7
votes
1answer
415 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 ...
0
votes
0answers
12 views

FreeBSD printing logmsg in cycle

my mistake probably overload system. I configured syslog client (maybe server too). After boot on console in cycle printing "logmsg: pri 2, flags 17, from Device". How I must solve this problem? ...
2
votes
2answers
47 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 ...
0
votes
1answer
228 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 ...
1
vote
1answer
177 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 ...
-2
votes
1answer
53 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?
2
votes
2answers
121 views

How to suppress compilation output when using ports in FreeBSD?

Is it possible to configure the FreeBSD ports system to suppress the compilation output (like brew does in OS X)? The output is mostly useless for me and can be a waste of bandwidth (when working over ...
3
votes
0answers
86 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 ...
4
votes
4answers
2k views

Creating you own FreeBSD ami in EC2

I'm running XVM on my laptop. XVM has got FreeBSD installed with all the required ports to run APACHE/PHP. I want this .vdi file to be imported into an EC2 instance. Is it possible to import a ...
7
votes
4answers
8k views

How to check if RAM is running in ECC mode?

I updated this post since I replaced the processor, but the core of my question (and unfortunately the results as well) are the same. I built my first FreeNAS box and wanted to use ECC RAM since I ...
2
votes
2answers
811 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 ...
0
votes
0answers
51 views

How to create a user that has a password that expires

how to create a user that has a password that expires, I am using samba4 as AD DC and I need to create a user and make his password expire admemas I need to change his password at his first login, I ...
0
votes
0answers
77 views

Bridge networking in ubuntu guest on freebsd host using vm-bhyve

i'm a little less learned on bridging thus need help in guest networking. I've setup 2 ubuntu guest on a freebsd vm-bhyve. created a single switch public which has 2 tap insterfaces namely tap0 and ...
5
votes
4answers
14k views

linux : netstat listeting queue length

Is there a way to view queue length on listening socket under linux, the same way as netstat -L outputs for freebsd? I.e. you can see X/Y/Z in netstat -L output, but netstat under linux doesn't ...
1
vote
1answer
220 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
0answers
61 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" -- ...
0
votes
1answer
51 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
0answers
111 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 ...
7
votes
3answers
5k 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 ...
1
vote
1answer
1k views

FreeBSD 10.3 SSSD AD integration issues

I'm having a lot of issues with FreeBSD 10.3 I'm finding the binary packages are fairly useless. I've had to build nearly everything to make things "work". I like using the adcli tool to join to a ...