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
0
votes
1
answer
97
views
Copying one 16TB folder onto several consecutive 8TB drives on a standalone Freebsd
I have a very old server that stores 16Tb of data. It is running FreeNAS (freebsd). Network cards are physically damaged and the server is on its last breath.
I have 2 8TB NTFS external hard drives. ...
1
vote
2
answers
2k
views
Mount /dev/shm in FreeBSD jail
I would like to mount /dev/shm in a freebsd jail. Every time I attempt to, I get these errors:
[root@gaming /]# mount -t tmpfs tmpfs /dev/shm
mount: /dev/shm: No such file or directory
[root@gaming /]...
0
votes
1
answer
239
views
How to delete inaccessible data on root ZFS dataset?
I have a mirrored ZFS array on a FreeBSD that I used for home NAS, consisting of a 6TB internal drive and a 8TB external USB drive. I have 2TB of space occupied that should not be occupied, but I ...
0
votes
2
answers
1k
views
Under FreeBSD, can a VLAN interface have a smaller MTU than the primary interface?
I have a system with two physical interfaces, combined into a LACP
aggregation group. That LACP channel has two VLANs, one untagged (the
"native vlan") and one using VLAN tagging. This gives us:
...
0
votes
1
answer
804
views
CARP + IPV6 failover
I am using a vSwitch from Hetzner with an IPv6 network, I have configured CARP and works as expected, but the problem that I have noticed is that either because my IPv6 configuration or the vSwitch, ...
4
votes
5
answers
8k
views
Installing and setting up SVN on FreeBSD Server
Firstly thank you to everyone who responded to my earlier question - https://stackoverflow.com/questions/1393827/setting-up-svn-web-based-services-vs-your-own-svn-server
As much as I would prefer to ...
1
vote
1
answer
243
views
Cannot stop Postgresql in FreeBsd Jail
I installed postgresql in a jail, it starts automatically after adding postgresql_enable="YES" to /etc/rc.conf), but now I can't stop it.
I tried /usr/local/etc/rc.d/postgresql stop, but I've got:
...
0
votes
1
answer
1k
views
M0n0wall won't pass traffic on different LAN subnets unless "Bypass firewall rules" is checked
I have a working configuration, but a question is bugging me.
The question centers around having multiple subnets on a single
interface.
LAN: 10.10.10.1/24
OpenVPN Server LAN IP: 10.10.10.250
...
0
votes
1
answer
1k
views
MIT Kerberos renew lifetime does not work
I am trying to figure out why my tickets only get a renewable life of 0 instead of 7 days as I specified.
I tried setting both the max_renewable_life (as indicated in another question) as well as ...
1
vote
0
answers
215
views
How can I capture traffic for a daemon listening on a cloned loopback IP address?
I have a daemon listening on a virtual IP address attached to a cloned loopback interface (lo1) on FreeBSD 11.x.
Inbound traffic for that daemon could arrive on several different physical interfaces, ...
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 ...
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
376
views
What is a recommended way of thransferring am iocage jail from one host to another
Source iocage thick jail running on FreeBSD-12.0p12
Destination FreeBSD-12.1p1
Both hosts are using zfs.
What is the recommended method to transfer an existing iocage thick jail from the source to ...
0
votes
2
answers
738
views
Time is going too fast on FreeBSD 12 on compute engine
I have created a FreeBSD VM on Google cloud engine. The image is installed with ntpd configured and is running:
$service ntpd status
ntpd is running as pid 4950.
But date is in the future, the time ...
1
vote
2
answers
7k
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 ...
0
votes
0
answers
48
views
Control lamp from FreeBSD
I have a webcam connected to a FreeBSD server that I want to collect and email an image on a schedule via a cron job. The room it is in may not always be lit. I am hoping to find some solution where a ...
3
votes
2
answers
22k
views
SERVERFAIL error while doing nslookup on server itself. FreeBSD
I am using FreeBSD to setup a DNS server.
I have install BIND and setup everything in resolv.conf and named.conf file.
This is the ip address of my DNS server 192.168.10.100.
in resolv.conf I added ...
1
vote
1
answer
2k
views
Within FreeBSD jail – setting global environment vars
I need to set a systemwide environment variable (i.e. NODE_ENV=production) in a FreeBSD jail.
I did try setting it in /etc/profile, but when I sourced it
root@www:/ # source /etc/profile
I got
...
3
votes
1
answer
2k
views
How to change GELI passphrase on FreeBSD 11 Root-On-ZFS system with mirror RAID?
How to change GELI passphrase on FreeBSD 11 Root-On-ZFS system with mirror RAID?
Swap devices are also mirrored and ancrypted.
I have /dev/ada0p5.eli /dev/ada1p5.eli and /dev/mirror/swap.eli devices....
1
vote
1
answer
904
views
LACP and VLAN routing correct network setup
I am trying to understand the correct way to do LCAP with a VLAN and have all the routing be correct.
Hardware
OS:FreeNAS-11.2-U7
Server:(2) Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
128GB ...
2
votes
0
answers
89
views
Recovering a concatenated disk (ccd)
I need to recover data from an old filesystem, which was located on two small (by today's standards) drives -- using a concatenated disk driver (known as ccd in FreeBSD).
I have the drives online (no ...
2
votes
3
answers
817
views
freebsd 7.2 kern.threads.max_threads_per_proc doesn't change after reboot
I have some multithread apps on my server machine based on FreeBSD 7.2, so because of this I need to increase kern.threads.max_threads_per_proc to 4000 (default value is 1500).
I changed it using "...
4
votes
1
answer
4k
views
Force ZFS to ignore checksum errors without removing the offending disk
EDIT: (see the end of this question) after more digging this appears to be a system USB issue and not ZFS that's causing the drives to be kicked. I'll leave this question up for posterity, because I'...
2
votes
1
answer
5k
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
1
answer
168
views
Dragonfly mailer configuration with STARTTLS
We are trying to get a dragonfly mta (dma) client to use STARTTLS with our mailhub. We created a self-signed certificate and key using openssl
openssl req -new -newkey rsa:4096 -x509 -sha256 -...
2
votes
1
answer
132
views
Troubleshooting ZFS storage pool
I am looking for advice on how to identify performance issues with a ZFS storage server. The server is a prototype that I have built as a proof of concept for a NAS device that will allow me to ...
0
votes
2
answers
426
views
FreeBSD-12 IOCage modifying a jail's /root directory
What is the reason that copying .bash_profile from the host system into the /root directory of an iocage thin jail does not create a file that is visible to the root user when logged on to that jail?
...
2
votes
1
answer
248
views
Why can't I manually seed the FreeBSD random number generator?
Years ago, I could manually seed the random number generator in FreeBSD by setting:
sysctl -w kern.random.sys.seeded=0
... and then if I deleted my SSH keys (on purpose) and restarted sshd, I would ...
0
votes
2
answers
2k
views
Sending syslog from jail to host fails
I'm trying to send logs from a jail to the host system on FreeBSD 10.
I think everything is setup correctly but I can't get it working.
Sending logs directly from Nginx 1.7 works but not sending ...
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 ...
4
votes
1
answer
7k
views
How can I recover my ZFS pool, which suddenly went offline and reports that it was "last used by another system"?
tl;dr: I am running a FreeBSD 11.2 NAS server with ZFS on a server with 16GB ECC memory. I've discovered that my main pool has disappeared. ZFS can see the pool, but reports fault ZFS-8000-EY and ...
4
votes
0
answers
191
views
How can I stop Freenas from assigning two disks from different SATA controllers the same device number?
I have Freenas running in a VM in XCP-NG. I've followed the guides and I've dedicated a SATA controller to it using PCI-passthrough. Freenas correctly discovers its boot disk, which is virtual, and ...
11
votes
3
answers
29k
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 ...
5
votes
0
answers
404
views
How to share a ZFS pool between Debian and FreeBSD?
I am having a setup of a dual boot PC running FreeBSD 12 and Debian 10. There is a three disk zraid in the system created by FreeBSD which I would like to use as a common storage pool for both ...
1
vote
1
answer
4k
views
Why are my ZFS pools "unavailable"?
I just replaced a hard-drive, that was part of two different redundant pools, and now both pools are unavailable...
Details:
There are four drives: 2x4TB (da0 and ada1) and 2x3TB (da1 and da2).
One ...
1
vote
1
answer
2k
views
FreeBSD jail with IPFW with loopback - unable to connect loopback interface
I am trying to configure a one IP jail with loopback interface, but I am unsure how to configure the IPFW rules to allow traffic to pass between the jail and the network card on the server.
I have ...
1
vote
0
answers
174
views
Poor disk performance on FreeBSD
We have IO issues with our servers on FreeBSD and I am wondering if FreeBSD is the cause.
Server:
FreeBSD (our environment runs in a jail)
i7 8 cores (utilized around 10 - 20 %)
64 GB RAM (utilized ...
1
vote
1
answer
386
views
ZFS reports wildly different sizes from Windows and what should be available
Before we start, yes i know the setup is not optimal, but we're working on a plan to setup everything from scratch. I inherited this from a part time student that doesn't work here anymore.
This is a ...
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
0
answers
71
views
VMWare-hosted FreeBSD 12 server DHCP resets, won't route again without running /etc/rc.d/routing restart
My cloud host provider has an issue where DHCP keeps being reset. They say they're working on it. It results in a short network blip. I have the same problem if I reset DHCP myself using the command /...
5
votes
0
answers
2k
views
How to mount a fuse-sshfs file system inside a FreeBSD-12.0p10 jail
I wish to mount a remote data source locally as a fuse file system. This is listed as supported by lsvfs:
lsvfs
Filesystem Num Refs Flags
-------------------------------...
22
votes
1
answer
12k
views
FreeBSD Jails or Docker instances [closed]
What are the main differences between jails on FreeBSD and Docker on Linux? Is one considerably more secure or more performant than the other? Jails are way older than Docker instances so the code ...
-1
votes
1
answer
8k
views
Installing pfSense on amazon ec2 instance [closed]
I was searching for AMI's with pfsense but seems like they are all vanished somehow.
How can I install pfsense on a FreeBSD ec2 instance besides creating a local image and then converting into raw ...
16
votes
5
answers
29k
views
Can I change a user password in Linux from the command line with no interactivity?
I have a specific use case where I would really like to be able to change a user's password with a single command with no interactivity. This is being done in a safe fashion (over SSH, and on a system ...
0
votes
2
answers
2k
views
PF blocking out Flags [FP.]
On a FreeBSD 12 server, I started to notice that pf is blocking out having Flags [FP.], the logs are flooded with something like this:
00:00:00.000004 rule 2/0(match): block out on bge0: 213.59.241....
0
votes
2
answers
686
views
FreeBSD-12.0 PF firewall default rule is blocking when more specific rule allowing is ignored
Our PF firewall contains this:
. . .
scrub in all fragment reassemble no-df max-mss 1440
### em1 ipv4 = 123.12.3.234
nat log on $ext_if \
from $net_nat \
...
0
votes
1
answer
158
views
FreeBSD and pf - packet filtering based on OpenVPN usernames
I have an OpenVPN server which authenticates the users using an Active Directory server. I need to limit the bandwidth of each user based on their usernames, and I also want to be able to do some ...
0
votes
1
answer
509
views
vsftpd TLS file transfers of more than a few KBs hang at 0%
We've deployed a new FreeBSD cloud server and configured it identically to our older ones, but it doesn't do vsftpd TLS file transfers well. Files of more than a few KBs hang at 0% on every client. ...
25
votes
6
answers
62k
views
How can I tell how much RAM is installed on a FreeBSD server?
As per the title:
How can I tell how much RAM is installed on a FreeBSD server?
Thanks!
0
votes
1
answer
289
views
Require or use in setkey.conf of Freebsd racoon config?
What is the reason to using "require" instead of "use" for the setkey configuration that is used for racoon in Freebsd?
For example:
spdadd 169.254.1.2/30 169.254.1.1/30 any -P out ipsec esp/...