From: Leigh Orf <leigh.orf@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: duplicate automounts with btrfs RAID1
Date: Wed, 02 Mar 2016 14:34:41 -0600 [thread overview]
Message-ID: <1456950881.15729.2.camel@gmail.com> (raw)
Hello,
Not entirely sure this is a btrfs issue, but here is my problem. I've
had this issue with recent Fedora and CentOS distros.
I created a btrfs RAID 1 pair with two identical USB external drives,
following the instructions found online:
mkfs.btrfs -m raid1 -d raid1 /dev/sdc1 /dev/sdd1
Then I mount it as /ext1:
% df |grep sdc
/dev/sdc1 9767539112 1280 9765383552 1% /ext1
The problem? Over time, /dev/sdc1 keeps getting mounted under a
different mount point, these accrue a couple per day:
% mount|grep sdc
/dev/sdc1 on /ext1 type btrfs (rw,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd1 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd11 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd12 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd13 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd14 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd15 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd16 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd17 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd18 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
/dev/sdc1 on /run/media/fred/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx38fd19 type
btrfs (rw,nosuid,nodev,relatime,space_cache)
It's as if the OS keeps "discovering a new disk" and mounting it
under /run/media (where things like external drives, thumb drives etc.
automount).
Here is info about my setup (up to date CentOS 7.2):
% cat /etc/system-release
CentOS Linux release 7.2.1511 (Core)
% uname -a
Linux xxx.xxx.xxx.edu 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29
18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
% btrfs --version
btrfs-progs v3.19.1
% btrfs fi show
Label: none uuid: d9706351-609b-4c6e-9f37-7058bb038fd1
Total devices 2 FS bytes used 640.00KiB
devid 1 size 4.55TiB used 2.03GiB path /dev/sdc1
devid 2 size 4.55TiB used 2.01GiB path /dev/sdd1
btrfs-progs v3.19.1
% btrfs fi df /ext1
Data, RAID1: total=1.00GiB, used=512.00KiB
Data, single: total=8.00MiB, used=0.00B
System, RAID1: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, RAID1: total=1.00GiB, used=112.00KiB
Metadata, single: total=8.00MiB, used=0.00B
Periodically I manually unmount these duplicates, but they come back.
I'd like a solution that doesn't involve disabling automount all
together.
Thanks for any pointers, and apologies if this issue is unrelated to the
btrfs project.
Leigh
--
Leigh Orf
Associate Scientist
Cooperative Institute for Meteorological Satellite Studies
University of Wisconsin - Madison
next reply other threads:[~2016-03-02 20:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 20:34 Leigh Orf [this message]
2016-03-02 21:34 ` duplicate automounts with btrfs RAID1 Pavol Cupka
2016-03-02 21:56 ` Leigh Orf
2016-03-02 22:01 ` Pavol Cupka
2016-03-03 1:16 ` Anand Jain
2016-03-03 7:11 ` Duncan
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=1456950881.15729.2.camel@gmail.com \
--to=leigh.orf@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/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.