All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Adam Borowski <kilobyte@angband.pl>
Cc: Dave T <davestechshop@gmail.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
	Phillip Susi <phill@thesusis.net>
Subject: Re: why is the same mount point repeatedly mounted in nested manner?
Date: Sun, 8 Aug 2021 22:50:00 -0600	[thread overview]
Message-ID: <CAJCQCtQ52Pa5yZ8TYDpZfuNSxwxbjdcTNhXBthq+C+no5gTp9A@mail.gmail.com> (raw)
In-Reply-To: <YQ8eH/SuXpF6p0b6@angband.pl>

On Sat, Aug 7, 2021 at 6:25 PM Adam Borowski <kilobyte@angband.pl> wrote:
>
> On Thu, Aug 05, 2021 at 04:41:03PM -0400, Dave T wrote:
> > On Thu, Aug 5, 2021 at 1:49 PM Phillip Susi <phill@thesusis.net> wrote:
> > > Dave T <davestechshop@gmail.com> writes:
> > >
> > > > I'm using btrbk via a systemd timer. I have a daily and hourly timer
> > > > set up. Each timer starts by mounting the btrfs root, performing the
> > > > btrbk task, and unmounting the btrfs root.
>
> > Not exactly... that path should not be unmounted. I do not mount that
> > location explicitly for the btrbk tasks. It is mounted when the server
> > boots up with the bind mount line I showed in fstab:
> >
> > /var/cache/pacman       /srv/nfs/var/cache/pacman       none  bind  0 0
> >
> > It should not be unmounted (or remounted) just because the top level
> > btrfs volume is (un)mounted for btrbk tasks. That's the part that is
> > confusing me.
> >
> > There is no command associated with my btrbk tasks that mounts
> > /srv/nfs/var/cache/pacman (or /var/cache/pacman). There's no other
> > entry in fstab for it except the bind mount I showed.
>
> I've seen systemd randomly mount and/or unmount filesystems listed in fstab
> when their state somehow differs from what systemd thinks should be (which
> can happen either by you or a program doing a mount, or due to systemd
> misreading the state reported by the kernel).
>
> So I wonder, can you test with an init/rc other than systemd?

We just need logs, systemd will put a message that it's mounting
something into the journal: journalctl -b --no-hostname | grep mount


-- 
Chris Murphy

  reply	other threads:[~2021-08-09  4:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 16:46 why is the same mount point repeatedly mounted in nested manner? Dave T
2021-08-05 17:47 ` Phillip Susi
2021-08-05 20:41   ` Dave T
2021-08-07 23:58     ` Adam Borowski
2021-08-09  4:50       ` Chris Murphy [this message]
2021-08-08 11:21 ` devel
2021-08-08 19:48   ` Dave T
2021-08-09 19:29     ` Goffredo Baroncelli
2021-08-09 20:15       ` Dave T
2021-08-10 15:43         ` Goffredo Baroncelli
2021-08-10 16:03           ` Dave T
2021-08-10 16:17             ` Goffredo Baroncelli
2021-08-10 16:27               ` Dave T
2021-08-10 20:17                 ` Goffredo Baroncelli
2021-08-10 20:36                   ` Dave T
2021-11-06  4:14                     ` Dave T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJCQCtQ52Pa5yZ8TYDpZfuNSxwxbjdcTNhXBthq+C+no5gTp9A@mail.gmail.com \
    --to=lists@colorremedies.com \
    --cc=davestechshop@gmail.com \
    --cc=kilobyte@angband.pl \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=phill@thesusis.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.