<div dir="ltr">Hi!<div><br></div><div>I recently installed an Ubuntu Server with this layout:</div><div>partition 1: / Btrfs<br></div><div>partition 2: /home Btrfs</div><div>partition 3: swap</div><div>and I'm unable to create any snapshot of / -- a problem I never had before when installing with the default Btrfs layout (that is, with both / and /home subvolumes on the same partition).<br>
</div><div><br></div><div>My current Btrfs layout is this one:</div><div><div>UUID=blah-blah-blah / btrfs defaults,space_cache,autodefrag,relatime,compress-force=zlib,subvol=@ 0 1</div><div>
UUID=blah-blah-blah /home btrfs defaults,space_cache,autodefrag,relatime,compress-force=zlib,subvol=@home 0 2</div>
<div>UUID=blah-blah-blah none swap sw 0 0</div><div><br></div><div>Now, when I try to create a snapshot I get this:<br>
</div><div>~> sudo btrfs subvolume snapshot -r / /home/SYSTEM/snapshots/root<br></div><div><div>Create a readonly snapshot of '/' in '/home/SYSTEM/snapshots/root'</div><div>ERROR: cannot snapshot '/' - Invalid argument</div>
</div><div>(Note: /home/SYSTEM/snapshots directory already exists)<br></div><div><br></div><div>This is strange because the same exact command does work as expected when / and /home subvolumes are in the same partition.</div>
<div>Neither works:</div><div><br></div><div>~> sudo btrfs subvolume snapshot -r @ /home/SYSTEM/snapshots/root</div><div>ERROR: error accessing '@</div><div><br></div><div>Some additional debug information:</div><div>
~> sudo btrfs subvolume show /</div><div>/</div><div> Name: @</div><div> uuid: 5c2ad4ea-89b3-5e4f-9795-86418a745b58</div><div> Parent uuid: -</div><div>
Creation time: 2014-07-27 00:04:31</div><div> Object ID: 257</div><div> Generation (Gen): 2275</div><div> Gen at creation: 6</div><div> Parent: 5</div>
<div> Top Level: 5</div><div> Flags: -</div><div> Snapshot(s):</div><div><br></div><div>~> sudo btrfs subvolume list /</div><div>ID 257 gen 2277 top level 5 path @</div>
<div><br></div><div><br></div><div>I'm not new to Ubuntu but I am to Btrfs and I can't get it what's happening here or what I am doing wrong, any idea?</div><div dir="ltr">-Martin</div>
</div></div>