[systemd-devel] RequiresMountsFor and the noauto option.

2017-01-22 Thread NeilBrown
ils, and that will probably require having my generator read /etc/fstab and duplicate the work of fstab-generator.c If the documentation is wrong, and the code is correct, would it be possible to get "AfterMountsFor=" as that is the functionality that I really want. Thanks, NeilBrown

Re: [systemd-devel] RequiresMountsFor and the noauto option.

2017-01-22 Thread NeilBrown
On Mon, Jan 23 2017, Andrei Borzenkov wrote: > This was discussed just recently as regression in Leap 42.2 on opensuse > mailing list ... > > 23.01.2017 03:13, NeilBrown пишет: >> >> hi, >> according to "man systemd.unit" : >> >>Requ

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-29 Thread NeilBrown
tual-block-md0, it mentions /dev/md0. How does systemd know about /dev/md0, or the connection it has with sys-devices-virtual-block-md0 ?? Does systemctl list-dependencies sys-devices-virtual-block-md0.device report anything interesting? I get sys

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-29 Thread NeilBrown
On Mon, Jan 30 2017, Andrei Borzenkov wrote: > 30.01.2017 04:53, NeilBrown пишет: >> On Fri, Jan 27 2017, Andrei Borzenkov wrote: >> >>> 26.01.2017 21:02, Luke Pyzowski пишет: >>>> Hello, >>>> I have a large RAID6 device with 24 local drives on C

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-30 Thread NeilBrown
On Mon, Jan 30 2017, Andrei Borzenkov wrote: > On Mon, Jan 30, 2017 at 9:36 AM, NeilBrown wrote: > ... >>>>>> >>>>>> systemd[1]: Created slice system-mdadm\x2dlast\x2dresort.slice. >>>>>> systemd[1]: Starting system-mdadm\x2dlast\x2

Re: [systemd-devel] Errorneous detection of degraded array

2017-02-07 Thread NeilBrown
d is > condition "array is active". Of course, you are right. A suitable "array is active" test is the existence of .../md/sync_action which appears when an array is activated (except for RAID0 and Linear, which don't need last-resort support). So this is what I propo

[systemd-devel] systemd and NFS "bg" mounts.

2017-05-25 Thread NeilBrown
requires/foo.mount symlink to be remote-fs.target.requires/foo.automount would be problematic though. Could we teach systemd-fstab-generator to ignore $TYPE filesystems if TYPE-fstab-generator existed? Or should we just build all this filesystem-specific knowledge into systemd? Thanks fo

Re: [systemd-devel] systemd and NFS "bg" mounts.

2017-05-29 Thread NeilBrown
On Mon, May 29 2017, Lennart Poettering wrote: > On Fri, 26.05.17 12:46, NeilBrown (ne...@suse.com) wrote: > >> >> Hi all, >> it appears that systemd doesn't play well with NFS "bg" mounts. >> I can see a few options for how to address this and wo

[systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-05-29 Thread NeilBrown
Systemd does not, and will not, support "bg" correctly. It has other, better, ways to handle "background" mounting. Explain this. See also https://github.com/systemd/systemd/issues/6046 Signed-off-by: NeilBrown --- utils/mount/nfs.man | 18 +- 1 file ch

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-05-30 Thread NeilBrown
On Tue, May 30 2017, Michael Biebl wrote: > 2017-05-30 0:19 GMT+02:00 NeilBrown : > >> +.B bg >> +option is not supported, and may be stripped from the option list. > > Either systemd is updated to actually strip the bg option or not. The > documentation should refle

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-06-06 Thread NeilBrown
On Tue, Jun 06 2017, Steve Dickson wrote: > Hello, > > On 05/29/2017 06:19 PM, NeilBrown wrote: >> >> Systemd does not, and will not, support "bg" correctly. >> It has other, better, ways to handle "background" mounting. > The only problem with

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-06-07 Thread NeilBrown
On Wed, Jun 07 2017, Steve Dickson wrote: > On 06/07/2017 08:02 AM, Lennart Poettering wrote: >> On Wed, 07.06.17 06:08, Steve Dickson (ste...@redhat.com) wrote: >> >>> >>> >>> On 06/06/2017 05:49 PM, NeilBrown wrote: >>>> On T

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-06-08 Thread NeilBrown
On Thu, Jun 08 2017, J. Bruce Fields wrote: > On Thu, Jun 08, 2017 at 03:16:52PM +1000, NeilBrown wrote: >> So I think I've found a solution for systemd to handle "bg" nfs mounts >> correctly. I'll submit some pull requests for consideration. > > Out

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-07-04 Thread NeilBrown
On Tue, May 30 2017, NeilBrown wrote: > Systemd does not, and will not, support "bg" correctly. > It has other, better, ways to handle "background" mounting. For those who aren't closely watching systemd development, a patch was recently accepted which causes sys

Re: [systemd-devel] [PATCH] nfs.man: document incompatibility between "bg" option and systemd.

2017-07-10 Thread NeilBrown
On Mon, Jul 10 2017, Steve Dickson wrote: > Hey Neil, > > On 07/04/2017 06:20 PM, NeilBrown wrote: >> On Tue, May 30 2017, NeilBrown wrote: >> >>> Systemd does not, and will not, support "bg" correctly. >>> It has other, better, ways to handle &

[systemd-devel] [PATCH manpages] umount.2: revise MNT_FORCE description.

2017-08-07 Thread NeilBrown
MNT_FORCE does not allow a busy filesystem to be unmounted. Only MNT_DETACH allows that. MNT_FORCE only tries to abort pending transactions, in the hope that might help umount not to block, Also, other filesystems than NFS support MNT_FORCE. Signed-off-by: NeilBrown --- Explanation derived

Re: [systemd-devel] Is there a way to override the "Where" option in mount units?

2017-11-01 Thread NeilBrown
ns http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=3892174834ea1a4729348f0ecd3078cc1d5458e4 If you have a file /etc/nfs.conf which contains [general] pipefs-directory = /run/nfs/rpc-pipefs then a generator will create the required .mount unit, and all tools and daemons will know where to look for the filesystem

Re: [systemd-devel] [PATCH 1/2] md: Inform udev about device removal when stopping

2016-02-16 Thread NeilBrown
have a minor number >=512 and are not auto-re-created if the device node is re-opened before udev unlinks it. So: the patch might be safe, and might solve a particular problem, but it is really just a bandaid. The best fix is "CREATE named=yes" (and use named like "md_hom

Re: [systemd-devel] [PATCH 2/2] Manage: Inform udev about device removal when stopping

2016-02-16 Thread NeilBrown
g the companion >> to 'DELETE'). However, later the 'ONLINE' got modified to 'CHANGE', >> and the 'OFFLINE' got dropped completely. >> Or that was the plan. >> So it looks as if the conversion to 'CHANGE' got applied to the >> 'OFFLINE' event, too. >> Hence I strongly recommend to drop it completely, and let the kernel >> or the MD module decide if and when a uevent should be send. > > I am totally fine with this, however we should make mdadm fail if run > against a pre-2.6.28 kernel then. > > Cheers, > Jes I would suggest protecting the if (fd >= 0) ioctl(fd, BLKRRPART, 0); if (mdi) sysfs_uevent(mdi, "change"); code with if (get_linux_version() < 2006028) That should be completely safe - 2.6.28 and later do this (if needed). NeilBrown signature.asc Description: PGP signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] md: Drop sending a change uevent when stopping

2016-02-17 Thread NeilBrown
e and the array will become inactive, but no uevent will be generated, which isn't good. Maybe send the uevent that was just removed from the 'inactive' case of array_state_store() instead. (But I still think this is just a bandaid and doesn't provide

Re: [systemd-devel] [PATCH 1/2] md: Inform udev about device removal when stopping

2016-02-17 Thread NeilBrown
On Wed, Feb 17 2016, Sebastian Parschauer wrote: > On 16.02.2016 21:43, NeilBrown wrote: >> On Wed, Feb 17 2016, Shaohua Li wrote: >> >>> On Tue, Feb 16, 2016 at 03:44:36PM +0100, Sebastian Parschauer wrote: >>>> When stopping an MD device, then its devic

Re: [systemd-devel] [PATCH] md: Drop sending a change uevent when stopping

2016-02-18 Thread NeilBrown
On Thu, Feb 18 2016, Hannes Reinecke wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 02/17/2016 10:29 PM, NeilBrown wrote: >> On Thu, Feb 18 2016, Shaohua Li wrote: >> >>> On Wed, Feb 17, 2016 at 05:25:00PM +0100, Sebastian >>> Parscha

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-01-06 Thread NeilBrown
ession > > control group: > > Are you suggesting that mdadm forks off mdmon from within the user > session? This is horribly ugly and broken and they shouldn't do that. What alternative would you suggest? A daemon needs to be running while certain md array

Re: [systemd-devel] udev 215 creates inactive MD devices upon stopping them

2014-07-24 Thread NeilBrown
done by any tools, only by the kernel itself. It > should probably be disabled by default. I agree that instantiating on open is an unfortunate design, but it has been around for a long time so we cannot just ignore it or turn it off. I have a new approach to creating md device which we might eventu

[systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-11 Thread NeilBrown
systemd either. So: how can I fit this need for "run some command on device timeout which might be successful in activating the device"? Alternately, is there some "all devices have been probed, nothing new will appear unless it is hot-plugged" event. That would be equally

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 00:10:28 -0800 Greg KH wrote: > On Tue, Nov 12, 2013 at 11:31:45AM +1100, NeilBrown wrote: > > Alternately, is there some "all devices have been probed, nothing new will > > appear unless it is hot-plugged" event. That would be equally useful (and

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 18:16:24 +0900 Greg KH wrote: > On Tue, Nov 12, 2013 at 07:54:42PM +1100, NeilBrown wrote: > > On Tue, 12 Nov 2013 00:10:28 -0800 Greg KH > > wrote: > > > > > On Tue, Nov 12, 2013 at 11:31:45AM +1100, NeilBrown wrote: > > > > Al

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 03:03:44 +0100 (CET) Jan Engelhardt wrote: > > On Tuesday 2013-11-12 01:31, NeilBrown wrote: > > > >mdadm is quite good at assembling arrays incrementally. "udev" runs > >"mdadm -I" for each new device and mdadm gathers them int

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 14:52:43 +0100 Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Nov 12, 2013 at 09:17:19PM +1100, NeilBrown wrote: > > On Tue, 12 Nov 2013 18:16:24 +0900 Greg KH > > wrote: > > > Not for USB, sorry. > > > > > > The USB bus just announc

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 19:01:49 +0400 Andrey Borzenkov wrote: > В Tue, 12 Nov 2013 21:17:19 +1100 > NeilBrown пишет: > > > On Tue, 12 Nov 2013 18:16:24 +0900 Greg KH > > wrote: > > > > > On Tue, Nov 12, 2013 at 07:54:42PM +1100, NeilBrown wrote: > > &

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-12 Thread NeilBrown
On Tue, 12 Nov 2013 18:49:34 +0100 Colin Guthrie wrote: > 'Twas brillig, and NeilBrown at 12/11/13 11:17 did gyre and gimble: > > On Tue, 12 Nov 2013 18:16:24 +0900 Greg KH > > wrote: > > > >> On Tue, Nov 12, 2013 at 07:54:42PM +1100, NeilBrown wrote: >

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-13 Thread NeilBrown
On Wed, 13 Nov 2013 22:11:27 +0600 "Alexander E. Patrakov" wrote: > 2013/11/13 NeilBrown : > > On Tue, 12 Nov 2013 19:01:49 +0400 Andrey Borzenkov > > wrote: > > > >> В Tue, 12 Nov 2013 21:17:19 +1100 > >> NeilBrown пишет: > >> > &

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-11-18 Thread NeilBrown
On Thu, 14 Nov 2013 11:23:30 +0600 "Alexander E. Patrakov" wrote: > NeilBrown пишет: > > On Wed, 13 Nov 2013 22:11:27 +0600 "Alexander E. Patrakov" > > wrote: > > > >> 2013/11/13 NeilBrown : > >>> On Tue, 12 Nov 2013 19:01:49 +0

Re: [systemd-devel] Need help with a systemd/mdadm interaction.

2013-12-03 Thread NeilBrown
On Tue, 12 Nov 2013 19:01:49 +0400 Andrey Borzenkov wrote: > В Tue, 12 Nov 2013 21:17:19 +1100 > NeilBrown пишет: > > > On Tue, 12 Nov 2013 18:16:24 +0900 Greg KH > > wrote: > > > > > On Tue, Nov 12, 2013 at 07:54:42PM +1100, NeilBrown wrote: > > &

[systemd-devel] Occasion hang an reboot - related to user@0.service

2013-12-03 Thread NeilBrown
entioned their appears to be present in 208. I added some extra tracing, and it is definitely sending SIGTERM (but not SIGHUP) to the "/usr/lib/systemd/systemd --user" but that process sometimes doesn't die until the SIGKILL is sent. Any idea what is happening, or how I

Re: [systemd-devel] [PATCH] allow udev to correctly handle 'change' after device has disappeared

2012-11-18 Thread NeilBrown
we fail to read > the database with the currently created symlinks? > > The udev_device_new_from_syspath() is a public API from libudev. We > should probably not change that and not allow other tools than udev > itself, to create device structures for devices which are not around &

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-10-24 Thread NeilBrown
pid to some magic file that 'ignore_proc' already knows about? Ultimately we probably want to get udev to start mdmon for us and have mdadm notice and not start it itself. We also need to get udev to notice arrays that are being reshaped and to start the mdadm which montiors the resh

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-01 Thread NeilBrown
impler to just SIGTERM mdmon and wait for it. > > We actually try to disassemble md already, i.e. we call the > DM_DEV_REMOVE ioctl for all left-over devices. I am not really > interested to link against libdm itself. :-) I get used to this .. people confusing md and dm, people confu

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-01 Thread NeilBrown
On Wed, 2 Nov 2011 02:16:15 +0100 Lennart Poettering wrote: > On Wed, 02.11.11 11:44, NeilBrown (ne...@suse.de) wrote: > > > > We nowadays jump back into the initrd when we shut down, so that the > > > initrd disassembles everything it assembled at boot time. This

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-06 Thread NeilBrown
On Wed, 2 Nov 2011 14:32:25 +0100 Lennart Poettering wrote: > On Wed, 02.11.11 13:03, NeilBrown (ne...@suse.de) wrote: > > Each instance of mdmon manages a set of arrays and must remain running > > until all of those arrays are readonly (or shut down). This allows it to >

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-06 Thread NeilBrown
On Mon, 7 Nov 2011 04:42:54 +0100 Kay Sievers wrote: > On Mon, Nov 7, 2011 at 03:52, NeilBrown wrote: > > > However there is an important piece missing.  When you remount,ro a > > filesystem, the block device doesn't get told so it thinks it is still open > > r