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
Hello All,
I have a turntable with both analog and streaming USB outputs. It is one
from Jaycar. What audio packages do I need to be able to record the
streaming USB on Ubuntu and Debian? I have been looking, and there are
vague references in the comments about recording, but not specifically
stating that they can capture from USB.
There is a CD of Windows software, and I am hoping that I do not need to
enable something first from a Windows box. That is a SNAFU about which I
do not yet have information, but will be looking at. I am thinking along
the lines of some USB devices with the software distributed as files on
the storage side, but flippable into an "active" device mode, such as
some wireless "modems".
Regards,
Mark Trickett
Hi folks,
I originally sent this to the Melbourne Free Software Interest Group,
but I reckon this would be of interest to others on this list and so
I'm reposting here. Apologies to those who get duplicates!
The US company ZaReason who build Linux systems (and are currently
investigating opening a store in New Zealand) have been working on a
fully open Android tablet for some time now. Well it's now appeared
on their website for pre-orders (unlinked from the rest of the site,
but tweeted about) here:
http://zareason.com/shop/zatab.html
I've blogged about it here:
http://www.csamuel.org/2012/04/25/the-zatab-from-zareason-a-fully-open-sour…
summarising what I've learnt from their tweets and from their site,
plus noting that the status of their GPU driver is unclear (there is
an open source driver in development, but its maturity is claimed to
be low).
The tablet ships with CyanogenMod 9 and an unlocked boot loader. I
would presume it doesn't ship with the Google Apps as they're not open.
I've asked via Twitter if they plan on having F-Droid installed by default.
Timely given the interest in free software Android devices!
cheers,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
This email may come with a PGP signature as a file. Do not panic.
For more info see: http://en.wikipedia.org/wiki/OpenPGP
On my work notebook running LMDE with cinnamon I can use nautilus to
"connect to server", in this case my 'home' share on the Monash windows AD
service.
The connection I get gives me all pertinent file system rights and appears
in the .gvfs folder in my home folder with the expected rights as well.
However if I issue a direct mount.cifs command thus:
~$ sudo mount.cifs
//ad.monash.edu/home/my-server-name/colinfee/home/colinfee/ad-home
-ocredentials=/home/colinfee/.smb/ad-credentials
It mounts but with the /home/colinfee/ad-home and subfolders etc owned by
root.
Varying the mount command thus makes no difference
~$ sudo mount.cifs
//ad.monash.edu/home/my-server-name/colinfee/home/colinfee/ad-home
-ocredentials=/home/colinfee/.smb/ad-credentials,uid=colinfee,gid=colinfee,setuids
~$ ls -ald ad-home
drwxr-xr-x 6 root root 0 Apr 16 16:42 ad-home/
I've also tried the forceuid/gid options too. I can use file_mode=0777 and
dir_mode=077 to override the issue but it seems like cheating.
Is what I'm seeing an artefact of my local LMDE system or the remote
Windows AD share?
As it works via the nautilus fuse method, why not mount?
Ultimately what I'm trying to do is mount the share and use rsync to sync
my local files to the server.
--
Colin Fee
tfeccles(a)gmail.com
On 26/04/12 09:18, Sam Varghese wrote:
> It can be purchased only by residents of the US, France, Canada and New Zealand.
I've just queried them about that on Twitter, will see what they say.
I'm not after a tablet myself so didn't try and buy one..
--
Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
I'm struggling with dhcp-fwd on an openwrt box (buffalo wzr-hp-g300nh2ap). It receives the discover packet on the lan, forwards it on the other interface, but then ignores the reply when it comes back. I'm using dhcp-fwd with tunnels everywhere else and it works fine but this is a point to point wireless link.
Any suggestions?
Thanks
James
Wondering if anyone has any comments.
A home system has N number of 1.5TB drives, running in RAID5.
At one point, these drives stopped becoming available, so the last time I
extended the array, I used a 2TB drive.
That drive is formatted with:
/dev/sdg1 2048 976735943 488366948 8e Linux LVM
/dev/sdg2 976735944 3907029160 1465146608+ fd Linux RAID
autodetect
The LVM system in question holds my root/home, etc.
Now that a 1.5TB drive has failed, I'm replacing it with another 2TB drive,
and wondering the best way to use the remainder 500GB
My first thought is to set up a RAID1 array, and put my PV on there.
Is there a better plan?
Are there going to be any issues, such as booting?
I presume grub2 will be fine, and will just add an 'insmod raid' before the
'insmod lvm' line in my grub.cfg
As for the procedure, my vague plan is:
sfdisk -d /dev/sdg | sfdisk /dev/sdh
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdh1 missing
pvcreate /dev/md1
vgextend system /dev/md1
pvmove -v /dev/sdg1
pvremove /dev/sdg1
mdadm --manage /dev/md1 --add /dev/sdg1
mount /, chroot into it, run grub-install
Can anyone see any flaws in logic, places to improve?
cheers,
/ Brett
Hi,
I'm struggling to get the idmapd component of NFSv4 mounts on Linux
(Debian Squeeze) to work properly.
However, it's a different kind of problem to the common issue everyone
has with it on the internet, so Googling isn't getting me very far :(
idmapd is running on all servers concerned, and with the verbosity
turned up to the max, syslog indicates it seems to be getting called
with expected values.
It seems to be working on the surface, in that if you 'ls' in a
directory, it has correctly mapped the users and groups over to the
local ones, so they match up.
ie. if toby has uid=1000 on one server and uid=1001 on another, then
looking at the files on both servers will show the owner to be toby.
However, actually attempting to manipulate/access files or directories
fails with "Permission denied" errors.
If I fudge the uid on one server to use the uid that I know is actually
in use on the other server, then I can access the file.. but a "ls" will
show it to be owned by another user.
So in other words, reads seem to be using the idmapping, but writes seem
to be bypassing it.
Any suggestions?
Thanks in advance,
Toby
On Wed, 18 Apr 2012, Dave Oxley <dave(a)daveoxley.co.uk> wrote:
> I have an 7 year old dell server that is in need of replacement. It's
> uses among others are MythTV backend, Asterisk, Web server, email, IP
> routing, various Java web apps. I had spec'ed and almost bought a new
> Dell server but got really disenchanted with their crappy sales guys.
> They wouldn't remove the 500Gb hard disk that added $300 to the price
It appears that Dell makes the vast majority of their profit from disks, RAM,
etc. The prices on Dell systems are quite low but the prices on parts
(particularly disks) are unreasonably high.
> and suggested I go to ebay for additional hard disk caddies which
> apparently don't come with it. The plan was to add 4 Seagate SV35.5 3Tb
> drives which are about $300 ea and mdraid them.
http://etbe.coker.com.au/2012/04/17/zfs-btrfs-cheap-servers/
Ihave just blogged about similar issues at the above URL.
http://www.servertrays.com/category/823/Dell
Someone commented with the above URL. E30 per tray is fairly expensive, but a
lot cheaper than the price difference between Dell disks and regular SATA
disks. It should also be a lot easier than buying on eBay.
> I've since been looking into building my own server but I'm not sure
> what to do for a case. I'm after a case with 6+ hot-plug backplane,
> preferably redundant PSU and tool-less.
Why do you want a redundant PSU and hot-plug disks? If it's a home server
then why not just take some downtime if a PSU fails and schedule downtime for
disk replacement?
> So does anyone have any suggestions of where I go from here? I'm happy
> to buy a pre-built server but not happy about buying Dell anymore. I'm
> also happy to build my own.
http://www.graysonline.com/
Check out Grays, they have lots of refurbished and ex-demo servers from big
name companies. I've bought a few HP servers from them and was pleased by the
result.
> The budget is about $3000 and the specs I'm after are roughly are:
> 1x 6 core Intel Xeon processor
> Motherboard with 2 processor sockets, 2+ Gigabit LAN, 6+ SATA
> 12+ GB or ram upgradable
> 6+ hot plug case with SATA backplane
> redundant PSU
> 9+ TB raid 5 Disk space
Why aren't you using BTRFS or ZFS?
As an aside, I'm trying to avoid upgrading some of my servers until I feel
that BTRFS is ready to use on them. I'd rather implement a new filesystem and
new disks at the same time. One of my servers has a RAID-1 array of 1TB disks
and I'm planning to make it a BTRFS RAID-1 of 4TB disks some time after Wheezy
is released.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/