IP on vlan interface are empty if I unpluged the cable
-
If I unplug a cable to an active interface (static with DHCP on multiple vlan), some time when plugin back, the interface losse his IP interface causing the DHCP to defect.
I have to go to the interface panel, and save them again in order to fix this.
-
I am not seeing this happen. If you are on the latest snapshot, please post your dhcpd log and the steps needed to reproduce this problem.
-
In fact I have this in my system.log :
Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(12): failed Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(16): failed Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(12): failed Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(16): failed Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(12): failed Aug 20 17:39:07 pfsense kernel: swap_pager_getswapspace(16): failed
So lot's of process are dying…
I'm running a nano build... What can be the cause ?
It occurs only when I unplug the trunk cable (or applying some settings on the switch which cause up/down).
-
It's running out of RAM trying to do something.
Is this on a current snapshot, or one from a few weeks ago?
-
Running the snapshot from Yesterday.
I'll try to figure out which process is eating all the memory from time to time.Php seems to be the culprit, eating all memory for other process, the system became unstable (and need a hard reboot) :
Aug 21 00:23:32 pfsense php: rc.bootup: filter_generate_address: WebAccess is not a valid source port. Aug 21 00:24:15 pfsense kernel: swap_pager: out of swap space Aug 21 00:24:16 pfsense kernel: swap_pager_getswapspace(16): failed Aug 21 00:24:16 pfsense kernel: pid 7979 (php), uid 0, was killed: out of swap space Aug 21 00:24:19 pfsense kernel: swap_pager: out of swap space Aug 21 00:24:19 pfsense kernel: swap_pager_getswapspace(9): failed Aug 21 00:24:19 pfsense kernel: pid 26055 (php), uid 0, was killed: out of swap space Aug 21 00:24:20 pfsense php: rc.bootup: ROUTING: setting default route to 192.168.1.1 Aug 21 00:24:21 pfsense dhcpleases: Could not deliver signal HUP to process because its pidfile does not exist, No such file or directory. Aug 21 00:24:23 pfsense kernel: swap_pager_getswapspace(16): failed
-
Ok I've more informations.
I can reproduce the issue when I'm applying a new configuration on my switch (wich up/down the trunk link).
My pfSense box is as flow 2 NICs : 1 WAN / 1 Trunk with 5 VLAN, with 256MiB of RAM (actually 30% used during normal running).
Here is the ps when the issue occurs, I have a lot of php scripts eating memory and I have also duplicate processes like dhcpleases (12 process with same parameter in the same time, my host file is corrupted).
PID TT STAT TIME COMMAND 0 ?? DLs 4:41.97 [kernel] 1 ?? SLs 0:00.24 /sbin/init -- 2 ?? DL 0:00.04 [g_event] 3 ?? DL 0:24.44 [g_up] 4 ?? DL 0:16.71 [g_down] 5 ?? DL 0:00.00 [crypto] 6 ?? DL 0:00.00 [crypto returns] 7 ?? DL 0:00.00 [sctp_iterator] 8 ?? DL 0:02.98 [pfpurge] 9 ?? DL 0:00.00 [xpt_thrd] 10 ?? DL 0:00.00 [audit] 11 ?? RL 1961:55.42 [idle] 12 ?? WL 7:52.43 [intr] 13 ?? DL 0:00.00 [ng_queue] 14 ?? DL 0:22.93 [yarrow] 15 ?? DL 0:02.57 [usb] 16 ?? DL 0:43.31 [pagedaemon] 17 ?? DL 0:01.01 [vmdaemon] 18 ?? DL 0:00.01 [pagezero] 19 ?? DL 0:00.47 [idlepoll] 20 ?? DL 0:01.07 [bufdaemon] 21 ?? DL 0:40.67 [syncer] 22 ?? DL 0:01.05 [vnlru] 23 ?? DL 0:01.30 [softdepflush] 36 ?? DL 0:04.14 [zfskern] 66 ?? DL 0:03.88 [md0] 261 ?? RNs 2:03.06 /usr/local/sbin/check_reload_status 266 ?? IWN 0:00.00 check_reload_status: Monitoring daemon of check_reload_status 272 ?? Is 0:00.69 /sbin/devd 407 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 7387 ?? DNL 0:01.64 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan10 7434 ?? Ss 0:00.61 sshd: root@pts/1 (sshd) 7996 ?? SN 0:01.61 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan11 8230 ?? Is 0:00.44 /usr/sbin/sshd 8530 ?? Is 0:00.07 /usr/local/sbin/sshlockout_pf 15 10114 ?? Ss 0:05.17 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf 10242 ?? Is 0:00.16 dhclient: vr0 [priv] (dhclient) 10713 ?? DNL 0:01.66 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan13 10715 ?? IWs 0:00.00 /usr/sbin/cron -s 10946 ?? SN 0:00.07 /usr/local/sbin/dnsmasq --all-servers --rebind-localhost-ok --stop-dns-rebind --dhcp-hostsfile=/var/etc/hosts --dns-forward-max=5000 --cache-size=10000 --local-ttl=1 12084 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 13940 ?? SWN 0:00.00 /bin/sh /var/db/rrd/updaterrd.sh 17973 ?? Ss 0:00.32 dhclient: vr0 (dhclient) 30395 ?? IWs 0:00.00 /usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh 30521 ?? Is 0:00.14 /usr/sbin/inetd -wW -R 0 -a 127.0.0.1 /var/etc/inetd.conf 30945 ?? IW 0:00.00 minicron: helper /usr/local/bin/ping_hosts.sh (minicron) 31043 ?? IWs 0:00.00 /usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /etc/rc.expireaccounts 31405 ?? IW 0:00.00 minicron: helper /etc/rc.expireaccounts (minicron) 31560 ?? IWs 0:00.00 /usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /etc/rc.update_alias_url_data 31938 ?? IW 0:00.00 minicron: helper /etc/rc.update_alias_url_data (minicron) 34793 ?? Ss 2:08.74 /usr/local/sbin/apinger -c /var/etc/apinger.conf 34903 ?? DL 0:05.10 /usr/local/bin/rrdtool - 35403 ?? Is 0:00.00 /usr/pbi/avahi-i386/bin/dbus-daemon --system 40592 ?? DNL 0:01.14 /usr/local/bin/php -f /etc/rc.linkup stop em0 41469 ?? DNL 0:01.06 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan100 41612 ?? DN 0:01.12 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan5 41888 ?? DNL 0:01.11 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan9 41901 ?? DNL 0:01.14 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan10 42414 ?? DNL 0:01.13 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan11 42764 ?? DN 0:01.12 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan12 43259 ?? DNL 0:01.14 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan13 43648 ?? S 0:14.36 avahi-daemon: registering [pfsense.mydomain.fr] (avahi-daemon) 43732 ?? DNL 0:01.09 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan14 44147 ?? DNL 0:01.26 /usr/local/bin/php -f /etc/rc.linkup start em0 44452 ?? DNL 0:01.15 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan100 44606 ?? Is 0:00.22 /usr/local/sbin/sshlockout_pf 15 44730 ?? DNL 0:01.23 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan5 44978 ?? DNL 0:01.18 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan9 45827 ?? DNL 0:01.05 /usr/local/bin/php -f /etc/rc.linkup start em0_vlan14 50780 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 53667 ?? Ss 0:23.46 /usr/local/bin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid 56131 ?? SNs 0:00.02 /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid em0_vlan11 em0_vlan10 em0_vlan12 em0_vlan13 em0_vlan5 em0_vlan14 em0 57537 ?? SWN 0:00.00 sleep 60 58259 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 58487 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 58868 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 59044 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 59901 ?? DNL 0:00.13 /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid em0_vlan11 em0_vlan10 em0_vlan12 em0_vlan5 em0_vlan14 em0 61613 ?? DNL 0:00.03 /usr/local/bin/php -f /etc/rc.dyndns.update opt1 63450 ?? S 0:00.01 sh -c /usr/bin/netstat -mb | /usr/bin/grep "mbuf clusters in use" | /usr/bin/awk '{ print $1 }' 63610 ?? IWs 0:00.00 sshd: Cyril [priv] (sshd) 63665 ?? DL 0:00.15 /usr/bin/netstat -mb 63840 ?? DL 0:00.05 /usr/bin/grep mbuf clusters in use 63914 ?? S 0:00.02 /usr/bin/awk { print $1 } 63973 ?? DNL 0:00.01 /usr/local/bin/php -f /etc/rc.dyndns.update opt4 64109 ?? DNVL 0:00.00 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan5 64253 ?? DNV 0:00.00 /usr/local/bin/php -f /etc/rc.linkup stop em0_vlan12 65617 ?? S 0:51.72 sshd: Cyril (sshd) 66017 ?? Ss 0:01.78 sshd: root@pts/0 (sshd) 74148 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 75414 ?? SWNs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 86460 ?? S 0:01.26 /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf 86721 ?? IWs 0:00.00 /usr/local/bin/php 90029 ?? S 0:14.95 /usr/local/bin/php 90502 ?? SWs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 96303 ?? SWs 0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d mydomain.fr -p /var/run/dnsmasq.pid -h /var/etc/hosts 26909 v0- S 0:06.05 /usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0 27253 v0- S 0:01.50 logger -t pf -p local0.info 44049 v0 IWs 0:00.00 login [pam] (login) 44966 v0 IW 0:00.00 -sh (sh) 47221 v0 I+ 0:00.02 /bin/sh /etc/rc.initial 8782 1 IWs 0:00.00 -sh (sh) 9267 1 IW 0:00.00 /bin/sh /etc/rc.initial 15575 1 I+ 0:00.26 /bin/tcsh 64287 0 R+ 0:00.02 ps -axf 66359 0 IWs 0:00.00 -sh (sh) 67169 0 IW 0:00.00 /bin/sh /etc/rc.initial 69773 0 S 0:00.25 /bin/tcsh
I hope this could help…