From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1629C433B4 for ; Sun, 11 Apr 2021 20:47:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 581216102A for ; Sun, 11 Apr 2021 20:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236553AbhDKUsJ (ORCPT ); Sun, 11 Apr 2021 16:48:09 -0400 Received: from tartarus.angband.pl ([51.83.246.204]:50758 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbhDKUsI (ORCPT ); Sun, 11 Apr 2021 16:48:08 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.94) (envelope-from ) id 1lVgvY-006wGA-Ru; Sun, 11 Apr 2021 22:43:28 +0200 Date: Sun, 11 Apr 2021 22:43:28 +0200 From: Adam Borowski To: Roman Mamedov Cc: Chris Murphy , Paul Leiber , "linux-btrfs@vger.kernel.org" Subject: Re: Parent transid verify failed (and more): BTRFS for data storage in Xen VM setup Message-ID: References: <20210410194842.71f49059@natsu> <20210411121034.373468ac@natsu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210411121034.373468ac@natsu> X-Junkbait: aaron@angband.pl, zzyx@angband.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Sun, Apr 11, 2021 at 12:10:34PM +0500, Roman Mamedov wrote: > On Sat, 10 Apr 2021 17:06:22 -0600 > Chris Murphy wrote: > > > Right. The block device (partition containing the Btrfs file system) > > must be exclusively used by one kernel, host or guest. Dom0 or DomU. > > Can't be both. > > > > The only exception I'm aware of is virtiofs or virtio-9p, but I > > haven't messed with that stuff yet. > > If you want an FS that allows a block device to be mounted by multiple machines > at the same time, there are a few: > https://en.wikipedia.org/wiki/Clustered_file_system#Shared-disk_file_system All of those use some kind of lock manager, though. So in no case you just mount the same device twice. -- ⢀⣴⠾⠻⢶⣦⠀ .--[ Makefile ] ⣾⠁⢠⠒⠀⣿⡁ # beware of races ⢿⡄⠘⠷⠚⠋⠀ all: pillage burn ⠈⠳⣄⠀⠀⠀⠀ `----