* problem re-adding original mount block device on multi-device fs
@ 2012-06-08 4:42 Lennert Buytenhek
2012-06-09 5:35 ` Goffredo Baroncelli
0 siblings, 1 reply; 2+ messages in thread
From: Lennert Buytenhek @ 2012-06-08 4:42 UTC (permalink / raw)
To: linux-btrfs
(please CC on replies, I'm not subscribed to the list)
Hi!
This fails:
# mkfs.btrfs /dev/sd[bcde]
# mount /dev/sdb /mnt/x
# btrfs device delete /dev/sdb /mnt/x
# btrfs device add /dev/sdb /mnt/x
/dev/sdb is mounted
#
It seems that I have to unmount and remount the fs using another
constituent block device before I can re-add the original block
device that the filesystem was mounted with:
# umount /mnt/x
# mount /dev/sdb /mnt/x
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# mount /dev/sdc /mnt/x
# btrfs device add /dev/sdb /mnt/x
#
This is on up-to-date F17, kernel 3.4.0(-1.fc17) with btrfs-progs
0.19(-18.fc17).
thanks,
Lennert
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem re-adding original mount block device on multi-device fs
2012-06-08 4:42 problem re-adding original mount block device on multi-device fs Lennert Buytenhek
@ 2012-06-09 5:35 ` Goffredo Baroncelli
0 siblings, 0 replies; 2+ messages in thread
From: Goffredo Baroncelli @ 2012-06-09 5:35 UTC (permalink / raw)
To: Lennert Buytenhek; +Cc: linux-btrfs, Miao Xie, Josef Bacik
On 06/08/2012 06:42 AM, Lennert Buytenhek wrote:
> (please CC on replies, I'm not subscribed to the list)
>
> Hi!
>
> This fails:
>
> # mkfs.btrfs /dev/sd[bcde]
> # mount /dev/sdb /mnt/x
> # btrfs device delete /dev/sdb /mnt/x
> # btrfs device add /dev/sdb /mnt/x
> /dev/sdb is mounted
> #
>
> It seems that I have to unmount and remount the fs using another
> constituent block device before I can re-add the original block
> device that the filesystem was mounted with:
>
> # umount /mnt/x
> # mount /dev/sdb /mnt/x
> mount: wrong fs type, bad option, bad superblock on /dev/sdb,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
> # mount /dev/sdc /mnt/x
> # btrfs device add /dev/sdb /mnt/x
> #
>
> This is on up-to-date F17, kernel 3.4.0(-1.fc17) with btrfs-progs
> 0.19(-18.fc17).
Give a look to this patche:
[PATCH 2/2] Btrfs: fix wrong the mount information in /proc
This should address (even without solving) this kind of problem.
>
>
> thanks,
> Lennert
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> .
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-09 5:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 4:42 problem re-adding original mount block device on multi-device fs Lennert Buytenhek
2012-06-09 5:35 ` Goffredo Baroncelli
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).