1cf2f
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I have set up a small (256M RAM) VPS at Tilaa.nl for test purposes (it has no load to speak of). Something keeps periodically breaking. When I reboot it, it runs fine for awhile, but then things stop working. I can ssh into the server, and everything seems to be running, but server log activity has stopped nor are the nightly status mails aren't sent. When I try updating some of the installed packages using portupgrade but typically at the same two points the make command just hangs there until I put it out of its misery: Code:
[...] ---> Backing up the old version ---> Uninstalling the old version ---> Deinstalling 'portupgrade-2.4.9.5,2' ^C Code:
[...] Configuring OpenLDAP 2.4.32-Release ... checking build system type... i386-portbld-freebsd9.0 checking host system type... i386-portbld-freebsd9.0 checking target system type... i386-portbld-freebsd9.0 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... ^C Any ideas what might be going on here? $ uname -r 9.0-RELEASE |
|
#2
|
||||
|
||||
|
I also have a VPS with Tilaa. It's the slightly larger version than yours. I have absolutely no issues there. I started with a 8.3-RELEASE but upgraded it to 9.0-RELEASE when it came out. What version of FreeBSD did you install?
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
When you get another freeze like that, try CTRL+T. It might shed some light as to why the process behaves like that.
|
|
#4
|
|||
|
|||
|
@da1: thanks, will give that a try.
@SirD: I installed 9-release. Perhaps you can answer another question I have: I notice there are two network interfaces, em0 and em1. The latter has a private IP address (172.17.*.*). What is the purpose of this interface on VPS? What would be the correct firewall configuration? On my home LAN, I get it; just not sure what to do with it here. TIA |
|
#5
|
|||
|
|||
|
With a very few ports, /usr/local/bin/grep halts the configure phase, which expects the base grep only, maybe. I don't see that in these posts, but one more thing to consider... (Similar for gcc vs clang...)
|
|
#6
|
||||
|
||||
|
Quote:
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#7
|
|||
|
|||
|
Just what I needed to know, thanks. Since I only have one VPS at Tilaa, I can safely leave em1 traffic blocked in my PF config.
|
|
#8
|
|||
|
|||
|
I rebooted my VPS server at Tilaa a week or so ago. It was running fine until today. Now it is once again acting weirdly. Here is something strange: the date is way off; it is running approx. 47 hours behind. Comparing local time with that on the VPS:
Code:
[colin@venus ~]$ ssh tilcara date;date Tue Aug 14 11:42:19 CEST 2012 Thu Aug 16 10:18:53 CEST 2012 Code:
Aug 8 14:30:32 tilcara ntpd[975]: ntpd 4.2.4p5-a (1) Aug 8 14:36:20 tilcara ntpd[976]: time reset +2.722595 s Aug 8 14:36:20 tilcara ntpd[976]: kernel time sync status change 2001 Aug 8 15:12:18 tilcara ntpd[976]: time reset +263.146824 s Aug 8 15:12:18 tilcara ntpd[976]: kernel time sync status change 6001 Aug 8 15:24:51 tilcara ntpd[976]: time reset +3.570556 s Aug 8 15:24:51 tilcara ntpd[976]: kernel time sync status change 2001 Aug 8 15:49:57 tilcara ntpd[976]: time reset +49.266041 s Aug 9 03:33:02 tilcara ntpd[976]: time reset +4.770299 s Aug 9 03:33:02 tilcara ntpd[976]: kernel time sync status change 6001 Aug 9 03:33:09 tilcara ntpd[976]: kernel time sync status change 2001 Aug 9 11:34:06 tilcara ntpd[976]: time reset +0.190643 s Aug 10 00:17:56 tilcara ntpd[976]: time reset +0.201308 s Aug 10 03:15:15 tilcara ntpd[976]: time reset +1.534728 s Aug 10 03:53:09 tilcara ntpd[976]: time reset +2.687787 s Aug 10 08:26:14 tilcara ntpd[976]: time reset +0.141079 s Aug 10 12:21:18 tilcara ntpd[976]: time reset +324.847564 s Aug 10 12:21:18 tilcara ntpd[976]: kernel time sync status change 6001 Aug 10 12:22:04 tilcara ntpd[976]: kernel time sync status change 2001 Aug 10 14:39:38 tilcara ntpd[976]: time reset +4.478887 s Aug 11 03:14:23 tilcara ntpd[976]: time reset +1.087398 s Aug 11 03:50:36 tilcara ntpd[976]: time reset +2.628583 s Aug 11 04:30:39 tilcara ntpd[976]: time reset +0.322837 s Aug 12 03:20:35 tilcara ntpd[976]: time reset +1.274951 s Aug 12 03:37:48 tilcara ntpd[976]: time reset +2.690640 s Aug 13 03:16:51 tilcara ntpd[976]: time reset +1.536481 s Aug 13 03:43:30 tilcara ntpd[976]: time reset +2.580338 s Aug 13 13:22:52 tilcara ntpd[976]: time reset +194.007063 s Aug 13 13:22:52 tilcara ntpd[976]: kernel time sync status change 6001 Aug 13 13:23:09 tilcara ntpd[976]: kernel time sync status change 2001 Aug 14 03:12:22 tilcara ntpd[976]: time reset +1.424797 s Aug 14 03:57:39 tilcara ntpd[976]: time reset +2.415529 s Aug 14 06:53:08 tilcara ntpd[976]: time reset +0.181532 s Aug 14 10:02:48 tilcara ntpd[976]: time reset +7.148770 s Aug 14 11:30:03 tilcara ntpd[976]: time reset +0.132012 s Any thoughts on what might be going on here? TIA |
|
#9
|
|||
|
|||
|
Sounds like a problem for the vps provider to handle.. possibly hardware related.
|
|
#10
|
|||
|
|||
|
Here is what Tilaa support said:
Quote:
Quote:
Code:
# sysctl kern.timecounter.hardware=ACPI-fast kern.timecounter.hardware: i8254 sysctl: kern.timecounter.hardware: Invalid argument Quote:
|
|
#11
|
||||
|
||||
|
I don't run any NTP services, I actually expected the host to keep the clock correct. I haven't noticed any weird shifts in time.
Code:
root@XXXXXXX:~#uname -a FreeBSD XXXXXXX.tilaa.nl 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Wed Jun 27 19:40:57 CEST 2012 root@XXXXXXX.tilaa.nl:/usr/obj/usr/src/sys/VPS amd64
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#12
|
|||
|
|||
|
You've compiled your own kernel for your VPS? May I ask why?
I've done it on a physical server to obtain ALTQ support, just wondering what the motivation would be for a VPS. |
|
#13
|
||||
|
||||
|
The GENERIC kernel contains some debugging stuff. I've also removed all things I don't need.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#14
|
|||
|
|||
|
I just noticed that the date on my VPS at Tilaa is frozen at a single point of time:
Quote:
If I try running ntpdate, it just times out. I haven't decided whether to try two cores as Tilaa support suggested or go back to v8 (or Linux). |
|
#15
|
|||
|
|||
|
Quote:
![]() I haven't much experience with VPSs. Is this pretty standard? |
|
#16
|
|||
|
|||
|
A VPS would act like a regular box so you should be blocked by default. So you should treat the VPS like you would real machine blocking by default anything that you don't need.
Regarding the Pf rules, if you don't know how to set it up you might wanna use one already made rule set like this one and change it to better suit your enviroment. However i hardly suggest building your own, this way you'll learn a lot on how pf works saving you in the long run. Just take a look at Peter N. M. Hansteen's guide if you have time. You won't regret it. Also not sure what kind of virtualisation Tilaa.nl uses but if it's KVM make sure you install the emulators/virtio-kmod. This guide might help you. If you have time i hardly suggest you spend more time and learn some basic with pf, using Peter N. M. Hansteen's guide, will help you in long run. I'm fairly new to the FreeBSD, and for me Hansteen's guide was one of the reason which make me switch many VPS's from Linux to FreeBSD as long as the visualization is KVM
|
|
#17
|
|||
|
|||
|
Thanks for the advice. I bought the first edition of Hansteen's The Book of PF when it first appeared several years ago; it has been a huge help.
|
|
#18
|
||||
|
||||
|
Quote:
Try adding this to your /boot/loader.conf, reboot and see if it helps: Code:
kern.hz="100" Btw. Since they offer that service they have to support it.
__________________
Powered by BareBSD |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Samba-problem 1:doesn't start, 2:host-related problem | naguz | Web & Network Services | 7 | September 29th, 2009 15:40 |
| geometry problem maby? boot problem | gulanito | Installing & Upgrading | 6 | August 13th, 2009 16:19 |
| Problem with configuration of 2’nd DSL link on FreeBSD 7.2 (gateway problem?) | fanz | Networking | 1 | August 13th, 2009 04:04 |