I've got some filesystems that I want to convert to BTRFS. They currently are
Ext3/4 on Linux Software RAID-1.
My plan is to break the RAID, convert one of the constituent devices with the
btrfs-convert program, and then add the other one via "btrfs device add".
How do I get the new BTRFS device to use RAID-1 for data and metadata? Avi,
from your talk I got the impression that this was already possible but the man
page doesn't reveal how.
I'm using btrfs-tools version 0.19+20120328-3 and kernel 3.2.0-2-amd64 from
Debian/Unstable. Do I need to get a newer version of the kernel or the tools?
PS Great talk Avi, it was good that you had more than an hour. Could you
give another talk in Dec or Feb?
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
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
Hi,
I wonder if I can get some advice from the list?
I want to run a little Debian repository -- but I have a requirement
which seems to be missing from the software tried so far.
I want the repository to maintain multiple versions of the same package.
ie. So I could do this:
dput my-package_1.00-1_all.deb
dput my-package_1.11-1_all.deb
dput my-package_2.00-1_all.deb
And then on a machine using my repo, be able to say something like:
aptitude install my-package (> 1.10 & < 1.99)
while on another machine, say:
aptitude install my-package (>= 2.00)
So far, repo management software I've seen will purge the older version
out when you upload a new one.
Any thoughts?
Thanks,
Toby
I have squid functioning nicely as a https accelerator for tomcat6 and IIS7 (Outlook web access and terminal server gateway), and now I want to publish a mantis server that way too. The problem is that squid takes the https request and proxies it as a http request to the server running mantis. apache2 gets the http request and so any hard links in there are prepended with http, which doesn't work (eg browser tries to get css via http which isn't reachable).
Squid is adding the front-end-https header to the requests which should tell apache that the front end request was https:// but it doesn't seem to be working. What do I need to do to make apache understand that the user request was https not http?
Thanks
James
Thought I might play around with IPSEC. It seems there are a few
different linux implementations,
Strongswan, openswan, racoon (which I think is based on a project
called KAME) and I think you can do it with Shorewall.
Have I missed any notable implementations?
Which is your favourite, and why?
On Thu, 21 Jun 2012, lev(a)levlafayette.com wrote:
> This is a general pitch to all members of LUV on whether they would
> consider stepping up to the speaker's plate for the community.
So what happened to all the people who answered that survey about speaking at
a LUV meeting?
Maybe we should have such polls ask people for their email address...
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
Hello All,
As are others, I am a Linux Journal subscriber, and they have
discontinued the print edition, providing a PDF from the web instead. I
get a monthly email, with a link, and clicking on that brings up a page
in FireFox, and an auto start download with the FireFox download
manager. Sometimes it "completes" short of the whole file, useless, but
usually I can get with multiple tries. This month, no such luck.
I have tried copying and pasting the link into wget, but without
success, there is a stub document, and wget then exits instead of
listening for the following file. I have looked at the wget man page,
and there is a provision for getting, and saving, session cookies, as
well as ways to do login credentials, but I am not certain of quite what
is required. I do have login credentials available, but appear not
needed. The URL is, without all the final string as I am required to not
pass that on, but of 6 alphanumeric characters, a hyphen, then fourteen
characters, another hyphen, then ten characters. There is a shortened
version follows, which should fail in a browser, but provide the first
portion for reference.
http://linuxjournalservices.com/portal/wts/cgmciy-
I am wondering whether I need recursion, or some other option to get
wget to wait for the download to start on the opened connection.
Regards,
Mark Trickett
Hi all,
For those who've not yet seen this yet, Neil Brown has reported a nasty
bug in the MD software RAID driver introduced into 3.4-rc1 and fixed in
3.4-rc5, but unfortunately the bad commit was copied to the stable@
address and so got backported into the 3.2.14 release (and fixed in
3.2.17) and the 3.3.1 release (fixed in 3.3.4).
http://neil.brown.name/blog/20120615073245
# The bug will only fire if, while the machine is shutting down,
# and array is partially assembled but not yet started. If the
# array is started and running it is safe ... as long as it stays
# that way.
#
# The typical way that an array can get into this "partially
# assembled by not started" start is for "mdadm --incremental"
# to have been run on some, but not all, of the devices in the
# array. If it had been run on all it would have started the
# array, but until then it is assembled but not started and this
# is the dangerous situation.
It won't toast your data, but will toast the MD metadata and break your
array. Your best way to recover is to have an already existing copy of
the output of "mdadm -Evvvvs" for your arrays. See Neils blog for more
info.
cheers,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC