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

2
votes
2answers
19 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
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%...
0
votes
1answer
190 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
110 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
25 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 ...
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 ...
3
votes
0answers
79 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
7k 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
791 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
29 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
30 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 ...
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 ...
5
votes
4answers
13k 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
148 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
31 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
43 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
13
votes
4answers
24k 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? ...
1
vote
0answers
51 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 ...
9
votes
5answers
22k 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?
0
votes
2answers
2k views

Mysql is not running

In my opinion this happens only because of rackspace build (Freebsd 9.1) root@office:/root # uname -a FreeBSD office 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #1: Fri Jun 21 04:11:23 UTC 2013 root@...
6
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 ...
10
votes
2answers
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 ...
1
vote
0answers
119 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 - 1) setting up ...
0
votes
1answer
31 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
0answers
139 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 ...
1
vote
0answers
123 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=...
1
vote
1answer
519 views

mysql swap file crash on freebsd

I have a low memory VPS that mysql and the swap file crash out every morning at exactly 0300. There are no cronjobs on the system that have been configured. The server is a basic LAMP development ...
0
votes
1answer
290 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 ...
2
votes
2answers
2k views

SVN via SSH not working on Windows with Tortoise SVN

I have SSH access to a FreeBSD machine which has svnadmin (and the rest of the necessary utilities) installed. svn is version 1.7.9 (r1462340). I am on Windows 7 x64, using Tortoise SVN 1.7.7. I have ...
1
vote
2answers
2k views

How to block MAC address in pf firewall

I want to block particular MAC address on PF firewall. I know PF firewall works on the Layer 3 i.e it operates on the IP addresses rather than MAC address.But is there any way to block the MAC address ...
5
votes
3answers
11k views

ZFS: How can I stop a zpool replace that's currently in progress?

A few days ago, I noticed that the ZFS pool on my home server had started reslivering a disk by itself but was no longer making any progress. The disk had some SMART errors (but did not consider ...
0
votes
2answers
83 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....
0
votes
1answer
305 views

Setting up SSH so that FreeNAS can connect to a Mac without a password

I would like to send a ZFS dataset to a Mac running OpenZFS. I have been able to replicate a FreeNAS dataset to a Mac running OpenZFS using the terminal. I did this using SSH password authentication. ...
-5
votes
1answer
73 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 ...
0
votes
0answers
93 views

FreeBSD Postfix Dovecot Roundcube - unable to login from Roundcube

i'm recieving such error : IMAP Error in /usr/local/www/apache24/data/roundcube/program/lib/Roundcube/rcube_imap.php (196): Login failed for test1@example.com from 1.2.3.4. AUTHENTICATE PLAIN: * OK ...
0
votes
1answer
124 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
1answer
95 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....
0
votes
1answer
109 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
1answer
143 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="...
1
vote
1answer
60 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 ...
1
vote
1answer
1k views

File name too long mount_nfs

I have a FreeBSD Vagrant box that looks like this: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "...
3
votes
2answers
813 views

BSD nc (netcat) does not terminate on EOF

Host A: tar cf - stuff | dd | nc -N -l 12987 Host B: nc a.example.com 12987 | dd | tar tf - On host A dd prints its summary after tar completes. Thus it is clear, that tar closes the pipe/file -...
41
votes
6answers
11k 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 ...
0
votes
1answer
175 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 ...
0
votes
3answers
526 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
0answers
83 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-...