https://pve.proxmox.com/mediawiki/index.php?title=Storage:_BTRFS&feed=atom&action=historyStorage: BTRFS - Revision history2024-03-29T07:53:58ZRevision history for this page on the wikiMediaWiki 1.35.11https://pve.proxmox.com/mediawiki/index.php?title=Storage:_BTRFS&diff=11130&oldid=prevApi: Created page with "<!--PVE_IMPORT_START_MARKER--> <!-- Do not edit - this is autogenerated content --> {{#pvedocs:pve-storage-btrfs-plain.html}} Category:Reference Documentation <pvehide..."2021-07-06T10:56:22Z<p>Created page with "<!--PVE_IMPORT_START_MARKER--> <!-- Do not edit - this is autogenerated content --> {{#pvedocs:pve-storage-btrfs-plain.html}} <a href="/wiki/Category:Reference_Documentation" title="Category:Reference Documentation">Category:Reference Documentation</a> <pvehide..."</p>
<p><b>New page</b></p><div><!--PVE_IMPORT_START_MARKER--><br />
<!-- Do not edit - this is autogenerated content --><br />
{{#pvedocs:pve-storage-btrfs-plain.html}}<br />
[[Category:Reference Documentation]]<br />
<pvehide><br />
Storage pool type: btrfs<br />
On the surface, this storage type is very similar to the directory storage type,<br />
so see the directory backend section for a general overview.<br />
The main difference is that with this storage type raw formatted disks will be<br />
placed in a subvolume, in order to allow taking snapshots and supporting offline<br />
storage migration with snapshots being preserved.<br />
BTRFS will honor the O_DIRECT flag when opening files, meaning VMs<br />
should not use cache mode none, otherwise there will be checksum errors.<br />
Configuration<br />
This backend is configured similarly to the directory storage. Note that when<br />
adding a directory as a BTRFS storage, which is not itself also the mount point,<br />
it is highly recommended to specify the actual mount point via the<br />
is_mountpoint option.<br />
For example, if a BTRFS file system is mounted at /mnt/data2 and its<br />
pve-storage/ subdirectory (which may be a snapshot, which is recommended)<br />
should be added as a storage pool called data2, you can use the following<br />
entry:<br />
btrfs: data2<br />
path /mnt/data2/pve-storage<br />
content rootdir,images<br />
is_mountpoint /mnt/data2<br />
Snapshots<br />
When taking a snapshot of a subvolume or raw file, the snapshot will be<br />
created as a read-only subvolume with the same path followed by an @ and the<br />
snapshot&#8217;s name.<br />
See Also<br />
Storage<br />
BTRFS Sysadmin<br />
</pvehide><br />
<!--PVE_IMPORT_END_MARKER--></div>Api