Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Mount multiple file system with the same UUID
@ 2015-04-17  9:20 WangMike
  2015-04-17  9:56 ` David Goodwin
  0 siblings, 1 reply; 3+ messages in thread
From: WangMike @ 2015-04-17  9:20 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 420 bytes --]

Dear all,

We know that one cannot mount multiple btrfs file systems which contain the same UUID (for example, snapshot ).

Is it possible to make use of "mount namespace" achieve that? means, if the btrfs file system in different namespace can contain the same UUID.


Thanks
Mike 		 	   		  ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±ý»k~ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

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

* Re: Mount multiple file system with the same UUID
  2015-04-17  9:20 Mount multiple file system with the same UUID WangMike
@ 2015-04-17  9:56 ` David Goodwin
  2015-04-17 15:04   ` Chris Murphy
  0 siblings, 1 reply; 3+ messages in thread
From: David Goodwin @ 2015-04-17  9:56 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

On 17/04/15 10:20, WangMike wrote:
> Dear all,
>
> We know that one cannot mount multiple btrfs file systems which contain the same UUID (for example, snapshot ).
>
> Is it possible to make use of "mount namespace" achieve that? means, if the btrfs file system in different namespace can contain the same UUID.
>

I've encountered this problem using EC2 EBS volumes.

(the 'ghost image' (AMI) contains btrfs filesystems. This results in all 
child VMs having EBS volumes sharing the same UUID ... and it's then not 
being possible to move volumes around.)

I'm interested to know if there's a possible solution, aside hoping you 
can run mkfs.btrfs on first boot...

David.

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

* Re: Mount multiple file system with the same UUID
  2015-04-17  9:56 ` David Goodwin
@ 2015-04-17 15:04   ` Chris Murphy
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Murphy @ 2015-04-17 15:04 UTC (permalink / raw)
  Cc: linux-btrfs@vger.kernel.org

Looks like XFS v5 and ext4 checksums include fs UUID throughout the
filesystem metadata. For XFS changing the UUID has been disabled in
xfs_admin whereas tune2fs supports changing it (which I'd think could
take quite a while). Btrfs supports it via seed device + device add +
removing seed which also can take quite a while.

Anyway, three file systems are (or are about to be) affected by this
so a general purpose solution seems in order.

http://oss.sgi.com/archives/xfs/2015-04/msg00023.html
http://comments.gmane.org/gmane.comp.file-systems.ext4/44464
https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Checksums

Chris Murphy

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

end of thread, other threads:[~2015-04-17 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17  9:20 Mount multiple file system with the same UUID WangMike
2015-04-17  9:56 ` David Goodwin
2015-04-17 15:04   ` Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox