All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] Btrfs on iSCSI device
@ 2014-06-27 15:44 Zhe Zhang
  2014-06-27 16:34 ` Goffredo Baroncelli
  2014-06-27 17:54 ` ronnie sahlberg
  0 siblings, 2 replies; 7+ messages in thread
From: Zhe Zhang @ 2014-06-27 15:44 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I setup 2 Linux servers to share the same device through iSCSI. Then I
created a btrfs on the device. Then I saw the problem that the 2 Linux
servers do not see a consistent file system image.

Details:
-- Server 1 running kernel 2.6.32, server 2 running 3.2.1
-- Both running btrfs v0.20-rc1
-- Server 2 has device /dev/vdc, exposed as iSCSI target
 -- Server 1 mounts the device as /dev/sda
-- Server 1 'mount /dev/sda /mnt/btrfs'; server 2 'mount /dev/vdc /mnt/btrfs',
 -- When server 1 'touch /mnt/btrfs/foo', server 2 doesn't see any
file under /mnt/btrfs
-- I created /mnt/btrfs/foo on server 2 as well; then I added some
content from both server 1 and server 2 to /mnt/btrfs/foo
-- After that each server sees the content it adds, but not the
content from the other server
-- Both server 'umount /mnt/btrfs', and mount it again
-- Then both servers see /mnt/btrfs/foo with the content added from
server 2 (I guess it's because server 2 created the foo file later
than server 1).

I did a similar test on ext4 and both servers see a consistent image
of the file system. When server 1 creates a foo file server 2
immediately sees it.

Is this how btrfs is supposed to work?

Thanks,

Zhe

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-28  3:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 15:44 [Question] Btrfs on iSCSI device Zhe Zhang
2014-06-27 16:34 ` Goffredo Baroncelli
2014-06-27 17:15   ` Austin S Hemmelgarn
2014-06-27 17:52     ` Zhe Zhang
2014-06-27 23:40   ` Russell Coker
2014-06-28  3:28     ` Austin S Hemmelgarn
2014-06-27 17:54 ` ronnie sahlberg

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.