256 reputation
14
bio website citrin.ru
location Moscow, Russia
age
visits member for 3 years, 6 months
seen yesterday

FreeBSD sysadmin


Oct
17
comment How can I check the partition name in FreeBSD?
try to look at gpart show
Sep
24
awarded  Autobiographer
Sep
17
comment SSH_ORIGINAL_COMMAND variable not getting set
Try to add env command to test.sh to see if other SSH_* variables are set
Jun
6
comment Conflicting information about the running kernel version in FreeBSD
Check gmirror status if gmirror is used. Not synced mirror can cause similar problem.
Mar
24
comment LA problems while serving 40M requests daily with php-fpm, nginx
From this information it seems to be, that problem is around php. It can be useful to run top from cron every minute and then see states of php-fpm for time when problem was observed. Sample script to run from cron: gist.github.com/citrin/9742337#file-top-sh
Mar
7
comment CPU usage command for monitor script
It is not easy to write this script in bash. Quick example on perl: gist.github.com/citrin/9411934
Mar
7
answered CPU usage command for monitor script
Feb
24
awarded  Commentator
Feb
24
comment FreeBSD ipnat(8) rdr - not redirecting
ipfilter (ipnat is part from ipfilter) is almost not maintained for now. Better to use pf instead ipnat.
Feb
14
awarded  Yearling
Feb
14
answered freebsd 7.2 kern.threads.max_threads_per_proc doesn't change after reboot
Jan
27
comment How to fix geometry of two identical disks?
to see HPA limit command camcontol hpa ada0 can be used (freebsd 8.4 need). It strange, but HPA limit can be found even in brand new HDD.
Dec
20
comment 403 statuses on nginx at FreeBSD
If 403 returned by nginx (not upstream) - reason should be in error_log
Apr
24
comment ICMP time exceeded in-transit
ICMP time exceeded in-transit is sign of routing loop.
Feb
12
answered Possible to kill command after a timeout if not success?
Jan
10
answered freebsd creating a script to check if service is active and start the service if not
Dec
7
comment readlink: illegal option — f
Try to check realpath from interactive shell /usr/bin/readlink -f /etc/rc
Dec
7
comment readlink: illegal option — f
$0 can be undefined in interactive shell. Try dirname $(realpath "$0") in /bin/sh script
Dec
7
comment readlink: illegal option — f
If you wan to know real directory, where script located, better to use: dirname $(realpath "$0")
Dec
7
comment readlink: illegal option — f
May be readlink binary was overwritten? Check, that stat and readlink has same inode: ls -li /usr/bin/readlink /usr/bin/stat