Re: [systemd-devel] hostnamectl question

2014-06-17 Thread Mantas Mikulėnas
On Tue, Jun 17, 2014 at 8:46 AM, Vasiliy Tolstov v.tols...@selfip.ru wrote: I have a problem with uuid on my servers - they all blade servers and uuid in smbios identical. But i need random uniq id for each system. I can't relay on mac address os something like this. AS i see systemd have

Re: [systemd-devel] hostnamectl question

2014-06-17 Thread Vasiliy Tolstov
2014-06-17 10:32 GMT+04:00 Mantas Mikulėnas graw...@gmail.com: Boot ID is *always* generated by the kernel on every boot and not stored anywhere, only available from sysctl. Machine ID is usually static -- generated once after installation, and stored in /etc/machine-id. It only changes on

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Duncan
Goffredo Baroncelli posted on Mon, 16 Jun 2014 20:47:49 +0200 as excerpted: The test #6 and #7 suggested that the fsync(2) amd posix_fallocate(3) calls aren't the root cause of the problem. Even without these the system.journal file still fragments. [1]

Re: [systemd-devel] PATCH: fix systemd-bootchart svg background

2014-06-17 Thread Frederic Crozat
Le lundi 16 juin 2014 à 10:13 -0700, Kok, Auke-jan H a écrit : On Mon, Jun 16, 2014 at 9:52 AM, Frederic Crozat fcro...@suse.com wrote: Hi all, attached is a fix for SVG generated by systemd-bootchart, similar to a fix already done in systemd-analyze. yeah, that's a nice change. Looks

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Duncan
Lennart Poettering posted on Mon, 16 Jun 2014 00:39:39 +0200 as excerpted: Well, quite frankly I am not entirely sure why fallocate() I was barking up the wrong tree with fallocate(). Sorry. -- Duncan - List replies preferred. No HTML msgs. Every nonfree program has a lord, a master -- and

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Duncan
Lennart Poettering posted on Mon, 16 Jun 2014 00:43:34 +0200 as excerpted: At least here, I interpreted that remark as primarily sarcastic commentary on the systemd devs' apparent attitude, which can be (controversially) summarized as: Systemd doesn't have problems because it's perfect.

Re: [systemd-devel] systemd not initializing

2014-06-17 Thread Jay D Bhatt
Hi, From the log I attached previously, I think is log statement saying as below: Starting Login Service... But then , it gets stuck at [ OK ] Reached target Login Prompts. So, I think there would be problem with systemd-login.service file for so? Can anybody point, why there is

Re: [systemd-devel] [PATCH] man: systemd.net devwork

2014-06-17 Thread poma
up-to-date systemd.net workdev. poma diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml index c17ae9e..3bb72a8 100644 --- a/man/systemd.netdev.xml +++ b/man/systemd.netdev.xml @@ -142,11 +142,36 @@ termvarnameKind=/varname/term

Re: [systemd-devel] PATCH: fix systemd-bootchart svg background

2014-06-17 Thread Tom Gundersen
On Tue, Jun 17, 2014 at 9:58 AM, Frederic Crozat fcro...@suse.com wrote: Le lundi 16 juin 2014 à 10:13 -0700, Kok, Auke-jan H a écrit : On Mon, Jun 16, 2014 at 9:52 AM, Frederic Crozat fcro...@suse.com wrote: Hi all, attached is a fix for SVG generated by systemd-bootchart, similar to a

[systemd-devel] Systemd-networkd: Prepend static nameserver to DHCP-discovered nameservers

2014-06-17 Thread Runiq
Hello all, I'm using systemd 213 on Arch Linux, and systemd-networkd/resolved with DHCP to connect to the internet. I'm also running a caching DNS server on 127.0.0.1. I'd like to make this caching server the first DNS server in the list, but I'd also like to use the nameservers discovered

Re: [systemd-devel] Systemd-networkd: Prepend static nameserver to DHCP-discovered nameservers

2014-06-17 Thread Mantas Mikulėnas
I am not sure about the part where you talk about different networks' DNS settings. I mean, as long as the first-listed server responds – and localhost always responds – then the fallback servers won't be used at all. So what's the point of having both 127.0.0.1 and external servers listed

Re: [systemd-devel] Systemd-networkd: Prepend static nameserver to DHCP-discovered nameservers

2014-06-17 Thread Mantas Mikulėnas
Actually, one thing I just remembered. resolved never actually writes to /etc/resolv.conf, if I remember correctly. It only writes to a .conf in /run, and /etc/resolv.conf is just a symlink to the latter. So you could just have a static /etc/resolv.conf with 127.0.0.1 in it, and tell your cache

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Martin
On 17/06/14 09:17, Duncan wrote: [...] But never-the-less I can see the viewpoint from both sides now, and do try to maintain a reasonable neutrality. I guess I should have made that more explicit in the original post, but as they say, hindsight is 20/20. =:^\ Hey! All good for a giggle

Re: [systemd-devel] systemd not initializing

2014-06-17 Thread Kirill Elagin
Please, try to ssh into the system when it is stuck and show us the log from `journalctl -b`. Or, alternatively, do as earlier, reboot the stuck system, boot with init=/bin/sh and get the log with `journalctl -b -1`. But ssh is preferred as it will let you troubleshoot the issue further

Re: [systemd-devel] Systemd-networkd: Prepend static nameserver to DHCP-discovered nameservers

2014-06-17 Thread David Timothy Strauss
On Tue, Jun 17, 2014 at 4:33 AM, Mantas Mikulėnas graw...@gmail.com wrote: I mean, as long as the first-listed server responds – and localhost always responds – then the fallback servers won't be used at all. Localhost can be subject to two types of failure: * The local daemon being down. *

Re: [systemd-devel] [PATCH] util.h: KDBUS_ITEM_VALID fixed

2014-06-17 Thread Kay Sievers
On Tue, Jun 17, 2014 at 12:38 PM, Jacek Janczyk j.janc...@samsung.com wrote: Missing character leading to wrong variable name restored. Signed-off-by: Jacek Janczyk j.janc...@samsung.com --- util.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied. Thanks, Kay

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Goffredo Baroncelli
Hi Kai, I investigate a bit why readahead doesn't defrag the journal. I put in CC also the mailing list for the record. On 06/17/2014 03:33 AM, Kai Krakow wrote: [...] Instead, for me, the readahead collector catches access to my system journal and thus defragments it. That's not the case for

[systemd-devel] [PATCH] build-sys: add missing backslash

2014-06-17 Thread Ronny Chevalier
--- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0213c38..e428141 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3537,7 +3537,7 @@ libsystemd_journal_internal_la_SOURCES = \ src/journal/mmap-cache.h # using _CFLAGS = in

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Chris Murphy
On Jun 16, 2014, at 7:13 PM, cwillu cwi...@cwillu.com wrote: It's not a mmap problem, it's a small writes with an msync or fsync after each one problem. For the case of sequential writes (via write or mmap), padding writes to page boundaries would help, if the wasted space isn't an issue.

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Kai Krakow
Goffredo Baroncelli kreij...@libero.it schrieb: I investigate a bit why readahead doesn't defrag the journal. I put in CC also the mailing list for the record. On 06/17/2014 03:33 AM, Kai Krakow wrote: [...] Instead, for me, the readahead collector catches access to my system journal and

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Kai Krakow
Chris Murphy li...@colorremedies.com schrieb: It's not a mmap problem, it's a small writes with an msync or fsync after each one problem. For the case of sequential writes (via write or mmap), padding writes to page boundaries would help, if the wasted space isn't an issue. Another

[systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Dave Reisner
This lets KERNELDIR apply to the install target as well so that you can do something such as the following will Just Work™: make KERNELDIR=/lib/modules/3.15.0-foo install --- Makefile | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Greg KH
On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner wrote: This lets KERNELDIR apply to the install target as well so that you can do something such as the following will Just Work™: make KERNELDIR=/lib/modules/3.15.0-foo install --- Makefile | 14 +++--- 1 file changed, 7

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Dave Reisner
On Tue, Jun 17, 2014 at 12:28:27PM -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner wrote: This lets KERNELDIR apply to the install target as well so that you can do something such as the following will Just Work™: make KERNELDIR=/lib/modules/3.15.0-foo

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Greg KH
On Tue, Jun 17, 2014 at 03:53:15PM -0400, Dave Reisner wrote: On Tue, Jun 17, 2014 at 12:28:27PM -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner wrote: This lets KERNELDIR apply to the install target as well so that you can do something such as the following

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Simon Peeters
2014-06-17 22:16 GMT+02:00 Greg KH g...@kroah.com: On Tue, Jun 17, 2014 at 03:53:15PM -0400, Dave Reisner wrote: On Tue, Jun 17, 2014 at 12:28:27PM -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner wrote: This lets KERNELDIR apply to the install target as well so

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Greg KH
On Tue, Jun 17, 2014 at 10:43:39PM +0200, Simon Peeters wrote: 2014-06-17 22:16 GMT+02:00 Greg KH g...@kroah.com: On Tue, Jun 17, 2014 at 03:53:15PM -0400, Dave Reisner wrote: On Tue, Jun 17, 2014 at 12:28:27PM -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner

Re: [systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Dave Reisner
On Tue, Jun 17, 2014 at 10:43:39PM +0200, Simon Peeters wrote: 2014-06-17 22:16 GMT+02:00 Greg KH g...@kroah.com: On Tue, Jun 17, 2014 at 03:53:15PM -0400, Dave Reisner wrote: On Tue, Jun 17, 2014 at 12:28:27PM -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 02:52:43PM -0400, Dave Reisner

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Kai Krakow
Filipe Brandenburger filbran...@google.com schrieb: On Mon, Jun 16, 2014 at 6:13 PM, cwillu cwi...@cwillu.com wrote: For the case of sequential writes (via write or mmap), padding writes to page boundaries would help, if the wasted space isn't an issue. Another approach, again assuming all

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Lennart Poettering
On Mon, 16.06.14 09:05, Josef Bacik (jba...@fb.com) wrote: So you are doing all the right things from what I can tell, I'm just a little confused about when you guys run fsync. From what I can tell it's only when you open the journal file and when you switch it to offline. I didn't look too

[systemd-devel] [PATCH] ease installation on non-running kernels

2014-06-17 Thread Simon Peeters
--- Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c593b51..178257b 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ kdbus$(EXT)-y := \ obj-m += kdbus$(EXT).o -KERNELDIR ?= /lib/modules/$(shell uname

Re: [systemd-devel] [PATCH] build-sys: add missing backslash

2014-06-17 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jun 17, 2014 at 07:26:14PM +0200, Ronny Chevalier wrote: --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0213c38..e428141 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3537,7 +3537,7 @@

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Kai Krakow
Lennart Poettering lenn...@poettering.net schrieb: [...] Finally, if something is logged at priorities EMERG, ALERT or CRIT we will sync immediately (which actually should never happen in real-life, unless something is really broken -- a simple way to check if anything like this got written

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Duncan
Kai Krakow posted on Tue, 17 Jun 2014 23:02:14 +0200 as excerpted: I'm pretty sure it really doesn't matter if your 500G image file is split across 1 extents - as long as at least chunks of extents are kept together and rebuilt as one extent. It's worth noting that in btrfs terms, chunk

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-17 Thread Tollef Fog Heen
]] Lennart Poettering (trimming Ccs) I am invoking fallocate() in advance, because we write those files with mmap() and that of course would normally triggered SIGBUS already on the most boring of reasons, such as disk full/quota full or so. Hence, before we do anything like that, we invoke