Trace process with high outgoing traffic
Hello, I'm looking for a way to trace a PHP-FPM forked proces which has high outgoing traffic (user attacking some remote servers). Any ideas? Thank you Luke ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
ZFS hanging on too hard
Hi all, I'm trying to setup a ZFS mirror system with a USB disk as backup. The backup disk is a ZFS pool which I am zfs send'ing to. However I find that if the disk is disconnected while mounted then things go pear shaped.. root@gateway:~ # zpool status -v pool: backupA state: UNAVAIL status: One or more devices are faulted in response to IO failures. action: Make sure the affected devices are connected, then run 'zpool clear'. see: http://illumos.org/msg/ZFS-8000-HC scan: none requested config: NAME STATE READ WRITE CKSUM backupA UNAVAIL 0 0 0 1877640355 REMOVED 0 0 0 was /dev/da0 errors: List of errors unavailable (insufficient privileges) (but I am root..) root@gateway:~ # zpool online pool /dev/da0 cannot online /dev/da0: no such device in pool ?! Anyone have any ideas? -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
pkg2ng not making pkg.bak dir after upgrade
After a while, I found that I messed something. Upgraded the system from 9.1 to 9.2 with freebsd-update. Installed pkg. Used pkg2ng. It did some work, but made no /var/db/pkg.bak directory at all. Now, I could see either pkg version output just as pkg_version. So, it was not converted to pkg system. Update and upgrade processes went fine to my tired eyes. But, it was not fine, since I still use old packages, with downloaded txz files in /var/cache/pkg/All. pkg info pkg pkg-1.1.4_7 uname -a FreeBSD faust 9.2-RELEASE FreeBSD 9.2-RELEASE #3: Sat Oct 12 17:30:28 CEST 2013 root@faust:/usr/obj/usr/src/sys/NEWKERN amd64 whereis pkg2ng pkg2ng: /usr/local/sbin/pkg2ng I use tcsh, if it matters. Any idea how to go further. I could remove all apps and install from the start, but it is interesting to find the solution. Best regards Zoran ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: ZFS hanging on too hard
- Original Message - From: Daniel O'Connor docon...@gsoft.com.au Hi all, I'm trying to setup a ZFS mirror system with a USB disk as backup. The backup disk is a ZFS pool which I am zfs send'ing to. However I find that if the disk is disconnected while mounted then things go pear shaped.. root@gateway:~ # zpool status -v pool: backupA state: UNAVAIL status: One or more devices are faulted in response to IO failures. action: Make sure the affected devices are connected, then run 'zpool clear'. see: http://illumos.org/msg/ZFS-8000-HC scan: none requested config: NAME STATE READ WRITE CKSUM backupA UNAVAIL 0 0 0 1877640355 REMOVED 0 0 0 was /dev/da0 errors: List of errors unavailable (insufficient privileges) (but I am root..) root@gateway:~ # zpool online pool /dev/da0 cannot online /dev/da0: no such device in pool ?! Anyone have any ideas? First pool is not your pool name its backupA so try: zpool online backupA /dev/da0 If that still fails try: zpool online backupA 1877640355 Regards Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmas...@multiplay.co.uk. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: ZFS hanging on too hard
On 14/10/2013, at 2:32, Steven Hartland kill...@multiplay.co.uk wrote: First pool is not your pool name its backupA so try: zpool online backupA /dev/da0 If that still fails try: zpool online backupA 1877640355 I get.. root@gateway:~ # zpool online backupA /dev/da0 cannot online /dev/da0: pool I/O is currently suspended root@gateway:~ # zpool online backupA 1877640355 cannot online 1877640355: pool I/O is currently suspended It seems that it does not recognise the disk is present :( I tried zpool export but that hangs, eg root@gateway:~ # zpool export -f backupA load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
Re: ZFS hanging on too hard
- Original Message - From: Daniel O'Connor docon...@gsoft.com.au On 14/10/2013, at 2:32, Steven Hartland kill...@multiplay.co.uk wrote: First pool is not your pool name its backupA so try: zpool online backupA /dev/da0 If that still fails try: zpool online backupA 1877640355 I get.. root@gateway:~ # zpool online backupA /dev/da0 cannot online /dev/da0: pool I/O is currently suspended root@gateway:~ # zpool online backupA 1877640355 cannot online 1877640355: pool I/O is currently suspended It seems that it does not recognise the disk is present :( I tried zpool export but that hangs, eg root@gateway:~ # zpool export -f backupA load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k Hmm I guess your going to have to reboot, which is not ideal. Regards Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmas...@multiplay.co.uk. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: ZFS hanging on too hard
On 14/10/2013, at 8:44, Steven Hartland kill...@multiplay.co.uk wrote: root@gateway:~ # zpool export -f backupA load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k Hmm I guess your going to have to reboot, which is not ideal. Yeah :( Also, if I _do_ reboot it hangs on shutdown, the last message is about da0 having pending buffers.. It rather makes my idea of a zpool on the backup disk a bit risky - if someone pulls the disk while it's imported then the server would need to be rebooted. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
Re: ZFS hanging on too hard
- Original Message - From: Daniel O'Connor docon...@gsoft.com.au On 14/10/2013, at 8:44, Steven Hartland kill...@multiplay.co.uk wrote: root@gateway:~ # zpool export -f backupA load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k Hmm I guess your going to have to reboot, which is not ideal. Yeah :( Also, if I _do_ reboot it hangs on shutdown, the last message is about da0 having pending buffers.. It rather makes my idea of a zpool on the backup disk a bit risky - if someone pulls the disk while it's imported then the server would need to be rebooted. That could mean the underlying issue may be a USB or CAM scsi_da. You didnt say which OS version your running? Regards Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmas...@multiplay.co.uk. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: ZFS hanging on too hard
- Original Message - From: Steven Hartland kill...@multiplay.co.uk To: Daniel O'Connor docon...@gsoft.com.au Cc: freebsd-stable stable freebsd-stable@freebsd.org Sent: Sunday, October 13, 2013 11:27 PM Subject: Re: ZFS hanging on too hard - Original Message - From: Daniel O'Connor docon...@gsoft.com.au On 14/10/2013, at 8:44, Steven Hartland kill...@multiplay.co.uk wrote: root@gateway:~ # zpool export -f backupA load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.63r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.79r 0.00u 0.00s 0% 2804k load: 0.04 cmd: zpool 1384 [tx-tx_sync_done_cv)] 2.99r 0.00u 0.00s 0% 2804k Hmm I guess your going to have to reboot, which is not ideal. Yeah :( Also, if I _do_ reboot it hangs on shutdown, the last message is about da0 having pending buffers.. It rather makes my idea of a zpool on the backup disk a bit risky - if someone pulls the disk while it's imported then the server would need to be rebooted. That could mean the underlying issue may be a USB or CAM scsi_da. You didnt say which OS version your running? The following may help forcing the shutdown if it is a USB problem, although be warned you may well loose data in normal operation, so would avoid leaving it in your case. hw.usb.no_shutdown_wait=1 Regards Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmas...@multiplay.co.uk. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: ZFS hanging on too hard
On 14/10/2013, at 9:00, Steven Hartland kill...@multiplay.co.uk wrote: pulls the disk while it's imported then the server would need to be rebooted. That could mean the underlying issue may be a USB or CAM scsi_da. You didnt say which OS version your running? The following may help forcing the shutdown if it is a USB problem, although be warned you may well loose data in normal operation, so would avoid leaving it in your case. hw.usb.no_shutdown_wait=1 That seems to work around the hang on reboot, thanks. I am running 9.2 (fresh install from a USB key). -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
Re: ZFS hanging on too hard
- Original Message - From: Daniel O'Connor docon...@gsoft.com.au On 14/10/2013, at 9:00, Steven Hartland kill...@multiplay.co.uk wrote: pulls the disk while it's imported then the server would need to be rebooted. That could mean the underlying issue may be a USB or CAM scsi_da. You didnt say which OS version your running? The following may help forcing the shutdown if it is a USB problem, although be warned you may well loose data in normal operation, so would avoid leaving it in your case. hw.usb.no_shutdown_wait=1 That seems to work around the hang on reboot, thanks. I am running 9.2 (fresh install from a USB key). That does kind of point the finger away from ZFS code, is it reproducable? Regards Steve This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmas...@multiplay.co.uk. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
[releng_10 tinderbox] failure on mips/mips
TB --- 2013-10-13 20:40:41 - tinderbox 2.20 running on worker01.tb.des.no TB --- 2013-10-13 20:40:41 - FreeBSD worker01.tb.des.no 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-10-13 20:40:41 - starting RELENG_10 tinderbox run for mips/mips TB --- 2013-10-13 20:40:41 - cleaning the object tree TB --- 2013-10-13 20:40:41 - /usr/local/bin/svn stat /src TB --- 2013-10-13 20:41:33 - At svn revision 256432 TB --- 2013-10-13 20:41:34 - building world TB --- 2013-10-13 20:41:34 - CROSS_BUILD_TESTING=YES TB --- 2013-10-13 20:41:34 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-13 20:41:34 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-13 20:41:34 - SRCCONF=/dev/null TB --- 2013-10-13 20:41:34 - TARGET=mips TB --- 2013-10-13 20:41:34 - TARGET_ARCH=mips TB --- 2013-10-13 20:41:34 - TZ=UTC TB --- 2013-10-13 20:41:34 - __MAKE_CONF=/dev/null TB --- 2013-10-13 20:41:34 - cd /src TB --- 2013-10-13 20:41:34 - /usr/bin/make -B buildworld Building an up-to-date make(1) World build started on Sun Oct 13 20:41:44 UTC 2013 Rebuilding the temporary build tree stage 1.1: legacy release compatibility shims stage 1.2: bootstrap tools stage 2.1: cleaning up the object tree stage 2.2: rebuilding the object tree stage 2.3: build tools stage 3: cross tools stage 4.1: building includes stage 4.2: building libraries stage 4.3: make dependencies stage 4.4: building everything World build completed on Sun Oct 13 22:07:42 UTC 2013 TB --- 2013-10-13 22:07:42 - cd /src/sys/mips/conf TB --- 2013-10-13 22:07:42 - /usr/sbin/config -m ADM5120 TB --- 2013-10-13 22:07:42 - skipping ADM5120 kernel TB --- 2013-10-13 22:07:42 - cd /src/sys/mips/conf TB --- 2013-10-13 22:07:42 - /usr/sbin/config -m ALCHEMY TB --- 2013-10-13 22:07:42 - skipping ALCHEMY kernel TB --- 2013-10-13 22:07:42 - cd /src/sys/mips/conf TB --- 2013-10-13 22:07:42 - /usr/sbin/config -m AP121 TB --- 2013-10-13 22:07:42 - building AP121 kernel TB --- 2013-10-13 22:07:42 - CROSS_BUILD_TESTING=YES TB --- 2013-10-13 22:07:42 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-13 22:07:42 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-13 22:07:42 - SRCCONF=/dev/null TB --- 2013-10-13 22:07:42 - TARGET=mips TB --- 2013-10-13 22:07:42 - TARGET_ARCH=mips TB --- 2013-10-13 22:07:42 - TZ=UTC TB --- 2013-10-13 22:07:42 - __MAKE_CONF=/dev/null TB --- 2013-10-13 22:07:42 - cd /src TB --- 2013-10-13 22:07:42 - /usr/bin/make -B buildkernel KERNCONF=AP121 Kernel build for AP121 started on Sun Oct 13 22:07:42 UTC 2013 stage 1: configuring the kernel stage 2.1: cleaning up the object tree stage 2.2: rebuilding the object tree stage 2.3: build tools stage 3.1: making dependencies stage 3.2: building everything Kernel build for AP121 completed on Sun Oct 13 22:12:57 UTC 2013 TB --- 2013-10-13 22:12:57 - cd /src/sys/mips/conf TB --- 2013-10-13 22:12:57 - /usr/sbin/config -m AP91 TB --- 2013-10-13 22:12:57 - building AP91 kernel TB --- 2013-10-13 22:12:57 - CROSS_BUILD_TESTING=YES TB --- 2013-10-13 22:12:57 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-13 22:12:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-13 22:12:57 - SRCCONF=/dev/null TB --- 2013-10-13 22:12:57 - TARGET=mips TB --- 2013-10-13 22:12:57 - TARGET_ARCH=mips TB --- 2013-10-13 22:12:57 - TZ=UTC TB --- 2013-10-13 22:12:57 - __MAKE_CONF=/dev/null TB --- 2013-10-13 22:12:57 - cd /src TB --- 2013-10-13 22:12:57 - /usr/bin/make -B buildkernel KERNCONF=AP91 Kernel build for AP91 started on Sun Oct 13 22:12:57 UTC 2013 stage 1: configuring the kernel stage 2.1: cleaning up the object tree stage 2.2: rebuilding the object tree stage 2.3: build tools stage 3.1: making dependencies stage 3.2: building everything Kernel build for AP91 completed on Sun Oct 13 22:19:51 UTC 2013 TB --- 2013-10-13 22:19:51 - cd /src/sys/mips/conf TB --- 2013-10-13 22:19:51 - /usr/sbin/config -m AP93 TB --- 2013-10-13 22:19:51 - building AP93 kernel TB --- 2013-10-13 22:19:51 - CROSS_BUILD_TESTING=YES TB --- 2013-10-13 22:19:51 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-13 22:19:51 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-13 22:19:51 - SRCCONF=/dev/null TB --- 2013-10-13 22:19:51 - TARGET=mips TB --- 2013-10-13 22:19:51 - TARGET_ARCH=mips TB --- 2013-10-13 22:19:51 - TZ=UTC TB --- 2013-10-13 22:19:51 - __MAKE_CONF=/dev/null TB --- 2013-10-13 22:19:51 - cd /src TB --- 2013-10-13 22:19:51 - /usr/bin/make -B buildkernel KERNCONF=AP93 Kernel build for AP93 started on Sun Oct 13 22:19:52 UTC 2013 stage 1: configuring the kernel stage 2.1: cleaning up the object tree stage 2.2: rebuilding the object tree stage 2.3: build tools stage 3.1: making dependencies stage 3.2: building everything Kernel build for AP93 completed on Sun Oct 13 22:27:15 UTC 2013 TB --- 2013-10-13 22:27:15 - cd /src/sys/mips/conf TB --- 2013-10-13 22:27:15 - /usr/sbin/config -m AP94 TB --- 2013-10-13 22:27:15 - building AP94 kernel TB --- 2013-10-13 22:27:15 -
Re: ZFS hanging on too hard
On 14/10/2013, at 9:19, Steven Hartland kill...@multiplay.co.uk wrote: hw.usb.no_shutdown_wait=1 That seems to work around the hang on reboot, thanks. I am running 9.2 (fresh install from a USB key). That does kind of point the finger away from ZFS code, is it reproducable? Yes, 100% of the time. I agree the USB behaviour is suboptimal, however I'm not sure if the ZFS code is blameless. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
FreeBSD 9.2 ahci under Parallels VM
Hi, I am trying to setup a FreeBSD 9.2 under Parallels and I find that I have to tell it to present IDE disks instead of SATA ones otherwise it gets timeouts probing for the disks. Is there some debugging I can enable to gather more information? -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C signature.asc Description: Message signed with OpenPGP using GPGMail
Re: Suggest changing dirhash defaults for FreeBSD 9.2.
Presentation describing the logic behind adding dynamic memory allocation to UFS dirhash can be found at: EuroBSDCon 2008 - Nick Barkas - Dynamic memory allocation for dirhash in UFS2 http://www.za.freebsd.org/multimedia/tag-nick_barkas.html -- View this message in context: http://freebsd.1045724.n5.nabble.com/Suggest-changing-dirhash-defaults-for-FreeBSD-9-2-tp5839351p5851625.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org