I am having periodic ntp synchronisation problems.
ntp doesn't directly log anything - but I am using nagios3 to track
it's synchronisation and I periodically get problems - several times a
day. I can't figure out what is causing the loss of synchronisation.
Perhaps a burst of ntp packets dropped? But wouldn't ntp log something
about this?
Any suggestions on logging more info to find the cause or deeper
insights into what is going wrong would be appreciated.
Andrew
Here's the output of commands when things are bad:
config(0)# check_ntp_peer -H 127.0.0.1 -w 1.0 -c 2.0
NTP WARNING: Server has the LI_ALARM bit set, Offset 0.210925
secs|offset=0.210925s;1.000000;2.000000;
LI_ALARM apparently means not in sync ???
config(1)# ntpq -c rl
associd=0 status=c618 leap_alarm, sync_ntp, 1 event, no_sys_peer,
version="ntpd 4.2.6p2(a)1.2194-o Sun Oct 17 13:35:13 UTC 2010 (1)",
processor="x86_64", system="Linux/2.6.32-5-amd64", leap=11, stratum=3,
precision=-23, rootdelay=95.696, rootdisp=263.117, refid=192.189.54.33,
reftime=d2bccf2f.4854b34f Sun, Jan 15 2012 15:06:07.282,
clock=d2bcd1d6.e9ffea4c Sun, Jan 15 2012 15:17:26.914, peer=16519,
tc=10, mintc=3, offset=0.000, frequency=500.000, sys_jitter=35.804,
clk_jitter=0.000, clk_wander=91.828
It thinks it's in error by 16s???
config(0)# ntpdc -c kerninfo
pll offset: 0 s
pll frequency: 500.000 ppm
maximum error: 16 s
estimated error: 16 s
status: 4041 pll unsync mode=fll
pll time constant: 10
precision: 1e-06 s
frequency tolerance: 500 ppm
ntptime gives the same info
config(0)# ntptime
ntp_gettime() returns code 5 (ERROR)
time d2bcd2be.08d3a000 Sun, Jan 15 2012 15:21:18.034, (.034479),
maximum error 16000000 us, estimated error 16000000 us
ntp_adjtime() returns code 5 (ERROR)
modes 0x0 (),
offset 0.000 us, frequency 500.000 ppm, interval 1 s,
maximum error 16000000 us, estimated error 16000000 us,
status 0x4041 (PLL,UNSYNC,MODE),
time constant 10, precision 1.000 us, tolerance 500 ppm,
Then mysertiously everything is okay:
config(0)# ntpdc -c kerninfo
pll offset: 0.00998 s
pll frequency: 500.000 ppm
maximum error: 1.6291 s
estimated error: 0.004771 s
status: 0001 pll
pll time constant: 10
precision: 1e-06 s
frequency tolerance: 500 ppm
My leap becomes none (no leap_alarm) and things are ok?
config(0)# ntpq -c rl
associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer,
version="ntpd 4.2.6p2(a)1.2194-o Sun Oct 17 13:35:13 UTC 2010 (1)",
processor="x86_64", system="Linux/2.6.32-5-amd64", leap=00, stratum=3,
precision=-23, rootdelay=95.272, rootdisp=983.007, refid=192.189.54.33,
reftime=d2bcd33b.bbc10580 Sun, Jan 15 2012 15:23:23.733,
clock=d2bcd852.ec6be1b9 Sun, Jan 15 2012 15:45:06.923, peer=16519,
tc=10, mintc=3, offset=13.497, frequency=500.000, sys_jitter=7.251,
clk_jitter=4.772, clk_wander=151.809
| 12411529 | unauthenticated user | 10.11.11.30:38784 | NULL | Connect |
NULL | login |
NULL |
| 12411530 | unauthenticated user | 10.11.11.30:38785 | NULL | Connect |
NULL | login |
NULL |
| 12411531 | unauthenticated user | 10.11.11.40:42175 | NULL | Connect |
NULL | login |
NULL |
| 12411532 | unauthenticated user | 10.11.11.40:42176 | NULL | Connect |
NULL | login |
NULL |
| 12411533 | unauthenticated user | 10.11.11.30:38786 | NULL | Connect |
NULL | login |
NULL |
| 12411534 | unauthenticated user | 10.11.11.40:42177 | NULL | Connect |
NULL | login |
I've got a system running MySQL 4.1.22 which is getting into a situation where
it gives >1000 lines like the above in the output of "show processlist;" and
then doesn't respond.
When this happens the system is under no real load (CPU use an IO wait are
almost 0). In normal operation there is something less than 100 connections
most of which are in "Sleep" state.
Any suggestions for what I can do to investigate this?
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
hi all
I have one free desktop pc for people who need it. it is in good condition
and works smoothly. I tested Windows XP and several Linux distributions on
it and all of them working perfectly. it can be used for checking email,
document processing and small games in daily work. now I would like to give
it to someone need one desktop for daily using or Linux study.
the details are:
CPU:Intel Pentium4 2.80GHz
Motherboard:Sapphire RS300-SB200
RAM:768 MB Harddisk:WD 80GB+40GB
Graphics:Nvidia GeForce FX 5500 ( 256 MB )
ATAPI DVD R/W
Sound:ATI IXP150 AC'97 Audio Controller
Network:realtek RTL8139.
it does not contain the monitor, keyboard and mouse. if interested you can
send email to me.
yours
Rock
I need to secure a bunch of web apps on separate internal servers for accessing from the internet, and it seems that a reverse proxy is probably a decent way of doing this. The problem is going to be authentication as I want to put front end security on the proxy (so unauthenticated users can't touch my apps with their own dubious security) but some of the apps require their own username and password, potentially different to the proxy. This won't work using conventional web security obviously, so I'll need to get a little creative.
What I was thinking is something that goes like this:
. User goes to apps.company.com.au/auth and enters username + password
. Proxy validates credentials and sets a cookie
. The Proxy validates the cookie for each request then 'eats' it before passing the request to the internal server
. Any access without the set cookie gets redirected to the /auth page for authentication
. Apps are accessed via apps.company.com.au/appname
My google-fu is weak just lately though and I can't find anything that might do what I want... the reverse proxy part is fine (squid or apache) but not the front end authentication layer. The docs for mod_proxy (which I've used before) don't seem to suggest that I can do it that way.
Any suggestions?
Thanks
James
I have been handed a raw disk of a Dell perc (I think) RAID adapter. It was a RAID1 array but the machine is broken and can't be repaired in the short term.
I was expecting to be able to track down the partition table at some offset into the disk and then identify the partitions etc but of course it's not that easy. I've found a few instances of the 0x55 0xaa partition signature at the end of a sector but only one actually appears to be a partition table (about 64MB from the start of the disk), but even then it doesn't look right. I then tracked down an NTFS signature (the disk is out of a Windows machine but I'm trying to get the data off on a Linux machine) but ntfs-3g and other tools says it's corrupt.
So I'm guessing that one of the following is happening:
1. The RAID controller crapped all over the disk before the system failed and it is actually corrupt
2. The RAID is actually RAID0 (I was assured it was RAID1 but you know how these things go)
3. Dell have some non-linear mapping of partitions
dmraid doesn't know anything about it, which kind of makes sense as the Dell raid controllers are normally not fakeraid.
Any suggestions?
Thanks
James
Hi everyone,
Happy new year!
If anyone has any advice for me on the following, it would be very much
appreciated.
Problem statement:
I'm reliant on Windows for music. I own an iPod shuffle, and am reliant
on iTunes to download music to this device.
What I would like to do is buy another, non-Apple music player, and
fulfill the following requirements;
1. Run a music program within Linux (Ubuntu / Unity)
2. Download music legally within Linux
3. Load my music player from within the music program
4. Convert the music from iTunes/Apple format and have it available to
the Linux music program.
What are my options?
Regards,
Kathy
Heya again
I've found that my previous question RE moving Sympa can be partially fixed.
I've found that on the new server running the sympa --upgrade will set
things ready to go but still have no subscriber data.
If I then manually dump the entries from the MySQL database
(subscribers_table) on the old Sympa server to the new in the right
place, and then go to the column created which didn't exist on the old
server (robot_subscriber) and add the proper robot details relating to
the new server, the subscriber will attach as it's supposed to!
I've been using phpmyadmin to browse the tables and check out the
structure as I'm really not that much of a MySQL admin, so does anyone
know what I could use to change the contents of every single entry for
"robot_subscriber" in the table "subscriber_table" in the database
"sympa" ?
Also this raises another question - why is grabbing a subscriber list
so difficult? To me it would be a vital thing to be able to dump this
list in whatever format you'd like for easy backups and fail safe
restoration. Sometimes these lists can be thousands of entries!
Any help is very much appreciated
Jesse
Hey there list - long time no speak!
I've been migrating everything off an ancient Debian 3 Server (kernel
2.2.20!!) which was until just now still in use.
Mostly things are going well except for trying to get Sympa off it.
Basically it's running Sympa 4.1.5 using MySQL for data storage.
According to what I've ready I really just need to copy the MySQL
database, mail list home configs (/var/lib/sympa/*) and once copied,
run the sympa --upgrade tool.
Doing it this way simply upgrades the database structure and dumps all
of the subscription information. The mailing lists survive but with
subscibers which isn't good.
I see that I can run sympa --dump to dump the subscribers into files
located at /var/lib/sympa/expl/maillinglistname/subscribers.db.dump
But the format of this file doesn't allow importing into sympa via
sympa --import=listname ./filename
The formats are different.
Does anyone have any idea of what I can do here? My preferred path was
to create the lists nice and fresh on the new server from scratch, and
simply import subscribers but I can't find a path to do that. Is there
perhaps a script that will perform the conversion around that someone
else has used? I can't seem to find more info in the googling I've
done..
Jesse
I'm running Debian Sid (reasonably up to date).
To run a particular 32-bit executable on my x86-64 machine, it appears that I
need a 32-bit x86 version of libz.so. The error message from the executable
is:
error while loading shared libraries: libz.so.1: wrong ELF class: ELFCLASS 64
Given what is happening with Debian multiarch, which is supposed to solve this
problem, what's the correct way to install the library at the moment?