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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
515 views

Server suddenly stops responding and then resumes an hour later

My FreeBSD server had been perfectly working for over 2 years without any major changes to the system. Recently I installed SSL certificate using Apache's mod_ssl, and after 10 days of running fine ...
0 votes
0 answers
647 views

FreeBSD routing for multiple subnets

I have to access a network 10.1.0.0/16 through a gateway 10.4.0.2. I issue the command: route add -net 10.1.0.0/16 10.4.0.2 The machine's IP address where I doing this is 10.4.0.22 and it's default ...
9 votes
0 answers
4k views

Unix nslcd login with sAMAccountName and/or userPrincipalName from Active Directory

I'm trying to setup authentication from Active Directory in FreeBSD 10.0 using nslcd (nss-pam-ldapd-sasl package) and would like to allow both sAMAccountName and userPrincipalName as valid login ...
3 votes
1 answer
864 views

How to recover root password?

I have a FreeBSD box which I forgot the root password to. I do have physical access, so I can reboot the box if I need to. How do I reset my password?
4 votes
1 answer
98 views

what exactly does fsck do under the covers (for UFS)?

If a computer crashes then the filesystem is an inconsistent state. What exactly is fsck(8) doing to restore to a usable filesystem? Is there a backup table? Is it cross-checking metadata? ...
1 vote
1 answer
189 views

FreeBSD pkg query by automatic flag?

You can do a pkg set -A ... to set the automatic flag, but how do you do a pkg query for all packages with that automatic flag set? I see you can do pkg query -e '%#r != 0', but that's surely not the ...
1 vote
1 answer
523 views

ZFS booting troubles

I have FreeBSD 8.0, and rebooting arise while zfs scrub was runing. Now when system booting it frezee at moment with ZFS version and ZFS pool version. I can't even login. The question : Is the scrub ...
1 vote
1 answer
610 views

configure single /32 ip address to FreeBSD server

Our upstream provider assigned us a single /32 ip address. How can we configure our FreeBSd server to use it? So far we have this in /etc/rc.conf: ifconfig_em0="inet a.b.c.d/32 netmask 255.255.255....
0 votes
1 answer
697 views

WARNING: failed to start git_daemon

I follow this http://bin63.com/how-to-setup-a-git-repository-on-freebsd tutorial to the letter and edit: /etc/rc.conf with: git_daemon_enable="YES" git_daemon_directory="/git" #git_daemon_flags="-...
1 vote
1 answer
817 views

VMDK File Growing After copying it using CP?

Using FreeBSD and a mounted NetApp NFS Share. I'm trying to copy a file FROM: localdisk/something.vmdk (size 527776 kilobytes) TO: nfsmount/copy-something.vmdk (size 533168 kilobytes) But it seems ...
5 votes
1 answer
7k views

where does uname get version number in FreeBSD RELEASE?

I installed FreeBSD 9.1-RELEASE, after binary upgrading to 9.2-RELEASE using freebsd-update, all files I checked are correctly in 9.2-RELEASE-p4. For example: the kernel contains the new version: # ...
1 vote
1 answer
407 views

Moving MRTG Installation

We have an MRTG installation that has been working for the last 3 years, I noticed that after 18 or so months the data would start recording a fresh. Now I wanted to transfer the installation and all ...
1 vote
1 answer
3k views

Why's Tomcat not responding, but looks normal?

I don't have much info to go on here, looking for ideas as I've run out. I did a server certificate update on our tomcat box (FreeBSD 9.2). After reboot, any connections to it fail immediately (page ...
-1 votes
1 answer
404 views

How to install GNU on FreeBsd 10? [closed]

i have error configure: error: GNU make is required! and i have error $ cd /usr/ports/devel/gmake/ cd: /usr/ports/devel/gmake/: No such file or directory How to install GNU on FreeBsd 10?
2 votes
1 answer
2k views

FreeBSD pkg database deleted

after resolving repeated crashes on startup with fsck I noticed some files were removed, one of them was the sqlite pkg database, so now when I run for example pkg install somepackage I get this erro: ...
1 vote
2 answers
4k views

Can I automatically create a passworded user with pw adduser on freebsd?

Can I automatically create a passworded user with pw adduser on freebsd? pw useradd [name] [switches] -V etcdir alternate /etc location -C config configuration file ...
1 vote
1 answer
2k views

FreeBSD (pfSense) Routing - Can't find the default route

I have been banging my head against the wall on this for a couple of days now - thought I had tried everything, but obviously not... I have the following networking scenario... ISPs Router Edge (21....
0 votes
2 answers
2k views

FreeBSD Established Connections Maxing out at 300

We've previously had issues in our environment where it seemed we were reaching FreeBSDs max connection limit. We took action demonstrated by http://nginx.org/en/docs/freebsd_tuning.html and bumped up ...
5 votes
2 answers
8k views

How can I determine what RAIDZ level my volume is using?

I am looking at a ZFS volume on FreeBSD system, and I have no idea what RAIDZ level it is configured at. How can I find out using the ZFS command line or other? I tried "zpool status" already, and ...
3 votes
1 answer
4k views

How do I remove Apache if I installed it from the source tarball?

I installed Apache 2.4 from a source tar, and there seems to be no "make deinstall" or "make uninstall" options in the makefile in the extracted directory. How can I remove the installed Apache server ...
2 votes
4 answers
3k views

FreeBSD tcsh and terminal window size

When I'm working on my FreeBSD server's ssh, it always assume that terminal width is 80 columns. E.g. man pages show up in one thin column and all programs that use COLUMNS and LINES environment ...
7 votes
1 answer
262 views

Disk size addressable by the OS

I have a 3ware 9550SXU-12 storage controller and 750G disks connected to it. The disks are configured as single units (not JBOD). I've been running some performance tests, mainly to see the impact of ...
1 vote
0 answers
73 views

emulate shared hosting load

I want to emulate some shared-hosting activity in testing environment. Is particularly interested I/O performance. Need to emulate: many sql queries, http queries, and some additional activity, ...
1 vote
2 answers
848 views

How to make my FreeBSD machine visible automatically on Mac within same local network?

The Mac machines within a local network is visible automatically to the other Macs. They're visible on Finder and can be accessed with their names via console. As I know this is multicast-local-DNS. ...
2 votes
1 answer
5k views

FreeNAS: "swap_pager: I/O error - pagein failed"

Our FreeNAS server log is constantly filling up with Apr 5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6 Apr 5 15:13:49 Wheelhouse NAS ...
1 vote
2 answers
6k views

FreeNAS: "/var: write failed, filesystem is full"

Upon logging into our FreeNAS via shell, it says /var: write failed, filesystem is full So I did > df -h Filesystem Size Used Avail Capacity Mounted on /dev/ufs/FreeNASs2a ...
2 votes
1 answer
224 views

Huge quantity of session files

I have: CPU: 2 x Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz (2600.06-MHz K8-class CPU) 128 GB RAM FreeBSD OS session files stored in RAM each session file is 1...10 kb gc_maxlifetime = 1440 ...
15 votes
1 answer
5k views

FREENAS: Why isn't mv command instant within a RAIDZ1 volume?

I'm currently 'reorganizing' file structure within a RAIDZ1 volume. Moving directories from one dataset to another, which are both contained on the same volume. SSH'ed into the machine and did a ...
0 votes
1 answer
292 views

Apache mod_rewrite - why friendly URL doesn't works with static files?

My configuration to use friendly URL works fine when the destination is a php script, like this: RewriteRule ^products/([a-z0-9-]+)/([0-9]+)/?$ /prod.php?id=$2&name=$1 [NC] But, when I use a ...
-3 votes
1 answer
302 views

Upgrading to freebsd10 breaks apache24

Until now I was using freebsd9 with apache22 with ssl, every thing went well. But recently I moved to freebsd10 (fresh install) and then installed apache24 with same config as on old machine. ...
2 votes
1 answer
761 views

exim produces failed to read delivery status for user

OS: FreeBSD9 64 Bit MTA: Exim with SA-Exim, Auth-Radius, Content Scan options I use exim -v user with default install (without even tweaking anything) LOG: MAIN PANIC failed to read delivery status ...
4 votes
2 answers
1k views

Why does zfs fail to cache this workload when "normal" filesystems cache it completely?

Update: because recordsize defaults to 128k, the amount of data read by the test program is much larger than the ARC on an 8GB system and still slightly larger than the ARC on a 16GB system. Reducing ...
-2 votes
1 answer
5k views

FreeBSD - Unable to install GNOME Desktop Environment [closed]

I'm unable to install GNOME Desktop Environment on FreeBSD-10 w/ pkgng. I'm following FreeBSD's handbook - 6.7. Desktop Environments: root@:~ # pkg install gnome2 Updating repository catalogue pkg: ...
1 vote
1 answer
2k views

Issues with StrongSwan on FreeBSD 10.0. Charon refuses to start

The charon.log with full debug levels (4) is as follows: Jan 21 16:09:47 00[DMN] Starting IKE charon daemon (strongSwan 5.0.4, FreeBSD 10.0-RELEASE, amd64) Jan 21 16:09:47 00[LIB] plugin 'aes': ...
0 votes
2 answers
2k views

CPU usage command for monitor script

Is there a command for FreeBSD (except the top -P) I could use to monitor my dedicated server CPU usage? I am in progress of writting my bash script which will notify me as soon as any of the CPU core ...
2 votes
1 answer
3k views

FreeBSD's pkg "No trusted fingerprint found matching package's certificate"

I just installed FreeBSD 10 and trying to get pkg going, but something isn't working: # uname -a FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap....
2 votes
3 answers
2k views

How can I set default versions of MySQL, Postgres, Apache, etc. prior to installing anything from ports in FreeBSD?

When I install software from ports on a FreeBSD system, sometimes rather outdated versions of Apache/MySQL/Perl/etc are installed as dependencies. Is there any way to set the versions of these ports ...
1 vote
0 answers
109 views

Check-state counter is always zero

My firewall rules are: 00010 660 73050 allow ip from any to any via lo0 00011 0 0 deny ip from any to 127.0.0.0/8 00012 0 0 deny ip from 127.0.0.0/8 to any ...
0 votes
1 answer
69 views

Local file server needs root access to change permissions

The previous developers set up a local Linux file server (FreeNAS 8.1) and while we can log in through the username they provided we do not have root access so we can not change permissions or do ...
2 votes
2 answers
638 views

403 statuses on nginx at FreeBSD

I'm trying to switch from an Apache hosting solution to nginx with php-fpm on FreeBSD 9.2. I'm rewriting my script for creating vHosts and stuff for nginx now and get 403 statuses when I try to ...
4 votes
2 answers
4k views

Shared object "libarchive.so.5" not found, required by "pkg"

I just updated my FreeBSD from 9.x to 10.0 (using freebsd-update) and now my pkg isn't working. # pkg Shared object "libarchive.so.5" not found, required by "pkg" # I know I can use pkg-static ...
1 vote
3 answers
13k views

How to discover current time-zone (FreeNAS shell)?

How can I find which time-zone is currently in effect on my system and get offset to it? I need this information in order to offset some time calculations and I cannot make it constant because of ...
0 votes
1 answer
1k views

High disk overloads slows the server

My server get very slow as soon at my gstat output shows high amount of busy%. Look at the gstat results: Here is the top -m io -o total and the gstat commands running at the same time: How can I ...
0 votes
1 answer
678 views

mongodb : Can create new thread on FreeBSD?

We experienced some strange thing in our mongodb gridfs platform. The platform actually is a bi Xeon E5 (bi quad core) with 128GB of memory, running on freebsd 9 with a zfs pool dedicated for mongodb. ...
1 vote
1 answer
715 views

How to compile mysql56-client to USE_OLD_FUNCTIONS on FreeBSD 10?

EDIT: I solved my issue - I was editing the wrong include file. See the end of this post for the fix. I'm migrating some applications from an old FreeBSD 4.3 server to a new FreeBSD 10 server. ...
0 votes
1 answer
196 views

Remotely automate optimization of mysql database

I am not a mysql or sql expert by any means, and not too savy on FreeBSD, either. We have a server that regularly needs one table to have data deleted < a time frame that leaves only 1 month of ...
5 votes
2 answers
789 views

FreeBSD 10.0-RELEASE: No lagg0 after reboot

I have a server running Freebsd 10.0-RELEASE. I'm trying to create bridge interface with three participant interfaces, ix0, ix1 and lagg0. Lagg0 is virtual interface made from ix2 and ix3. My problem ...
2 votes
1 answer
291 views

How to fix geometry of two identical disks?

I have two identical HDD. First has geometry 3876021/16/63 and second has geometry 3876018/16/63. First disk's capacity is 50% already. I want to add second disk to mirror (first disk is master). How ...
4 votes
1 answer
2k views

Executing a command on link state change in freebsd

In freebsd when a cable gets plugged/unplugged the following lines are written to dmesg buffer: em0: link state changed to DOWN em0: link state changed to UP I would like to run a script when either ...
-1 votes
2 answers
1k views

Why does a failed ZFS disk still seem to work fine?

Two disks just failed in my zpool with read/write errors, so I took them out and inserted them in another host, created a zpool just with them, and filled the file system with dd if=/dev/zero of=/...

1
15 16
17
18 19
31