* is mounting subvolumes with a read-only root subvolume allowed?
@ 2013-11-14 23:32 Zbigniew Jędrzejewski-Szmek
2013-11-14 23:43 ` [systemd-devel] " Karel Zak
0 siblings, 1 reply; 3+ messages in thread
From: Zbigniew Jędrzejewski-Szmek @ 2013-11-14 23:32 UTC (permalink / raw)
To: linux-btrfs; +Cc: systemd-devel
Hi,
I have a box with / and /home being subvolumes from the same btrfs filesystem.
/etc/fstab:
UUID=c0686... / btrfs subvol=root,x-systemd.device-timeout=0 1 1
UUID=c0686... /home btrfs subvol=home,x-systemd.device-timeout=0 1 1
...
/ is initially mounted readonly by the initramfs, and then after switching
to the real system, /home is attempted to be mounted in parallel with /
being remounted rw. If remounting rw happens first, boot proceeds. If
mounting /home is attempted to realy, it fails.
$ /bin/mount /home
mount: /dev/mapper/luks-765... is already mounted or /home busy
/dev/mapper/luks-765... is already mounted on /
$ /bin/mount -o remount,rw /
$ /bin/mount /home
$
So, is this expected that the other subvolume must be mounted rw?
Zbyszek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [systemd-devel] is mounting subvolumes with a read-only root subvolume allowed?
2013-11-14 23:32 is mounting subvolumes with a read-only root subvolume allowed? Zbigniew Jędrzejewski-Szmek
@ 2013-11-14 23:43 ` Karel Zak
2013-11-15 0:04 ` Zbigniew Jędrzejewski-Szmek
0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2013-11-14 23:43 UTC (permalink / raw)
To: Zbigniew Jędrzejewski-Szmek; +Cc: linux-btrfs, systemd-devel
On Fri, Nov 15, 2013 at 12:32:10AM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> Hi,
> I have a box with / and /home being subvolumes from the same btrfs filesystem.
>
> /etc/fstab:
> UUID=c0686... / btrfs subvol=root,x-systemd.device-timeout=0 1 1
> UUID=c0686... /home btrfs subvol=home,x-systemd.device-timeout=0 1 1
> ...
>
> / is initially mounted readonly by the initramfs, and then after switching
> to the real system, /home is attempted to be mounted in parallel with /
> being remounted rw. If remounting rw happens first, boot proceeds. If
> mounting /home is attempted to realy, it fails.
>
> $ /bin/mount /home
> mount: /dev/mapper/luks-765... is already mounted or /home busy
> /dev/mapper/luks-765... is already mounted on /
> $ /bin/mount -o remount,rw /
> $ /bin/mount /home
> $
>
> So, is this expected that the other subvolume must be mounted rw?
This is known and pretty stupid issue:
http://www.spinics.net/lists/linux-btrfs/msg25502.html
... but it seems that btrfs guys are fine with this "feature".
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [systemd-devel] is mounting subvolumes with a read-only root subvolume allowed?
2013-11-14 23:43 ` [systemd-devel] " Karel Zak
@ 2013-11-15 0:04 ` Zbigniew Jędrzejewski-Szmek
0 siblings, 0 replies; 3+ messages in thread
From: Zbigniew Jędrzejewski-Szmek @ 2013-11-15 0:04 UTC (permalink / raw)
To: Karel Zak; +Cc: linux-btrfs, systemd-devel
On Fri, Nov 15, 2013 at 12:43:51AM +0100, Karel Zak wrote:
> On Fri, Nov 15, 2013 at 12:32:10AM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> > Hi,
> > I have a box with / and /home being subvolumes from the same btrfs filesystem.
> >
> > /etc/fstab:
> > UUID=c0686... / btrfs subvol=root,x-systemd.device-timeout=0 1 1
> > UUID=c0686... /home btrfs subvol=home,x-systemd.device-timeout=0 1 1
> > ...
> >
> > / is initially mounted readonly by the initramfs, and then after switching
> > to the real system, /home is attempted to be mounted in parallel with /
> > being remounted rw. If remounting rw happens first, boot proceeds. If
> > mounting /home is attempted to realy, it fails.
> >
> > $ /bin/mount /home
> > mount: /dev/mapper/luks-765... is already mounted or /home busy
> > /dev/mapper/luks-765... is already mounted on /
> > $ /bin/mount -o remount,rw /
> > $ /bin/mount /home
> > $
> >
> > So, is this expected that the other subvolume must be mounted rw?
>
> This is known and pretty stupid issue:
> http://www.spinics.net/lists/linux-btrfs/msg25502.html
>
> ... but it seems that btrfs guys are fine with this "feature".
5 months without a reply. Great.
Zbyszek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-15 0:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14 23:32 is mounting subvolumes with a read-only root subvolume allowed? Zbigniew Jędrzejewski-Szmek
2013-11-14 23:43 ` [systemd-devel] " Karel Zak
2013-11-15 0:04 ` Zbigniew Jędrzejewski-Szmek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).