public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
To: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH storage 2/4] add BTRFS storage plugin
Date: Thu, 10 Jun 2021 14:59:29 +0200	[thread overview]
Message-ID: <20210610125929.asaq3azdvadbi52f@wobu-vie.proxmox.com> (raw)
In-Reply-To: <1623328690.owhbf7mh8s.astroid@nora.none>

On Thu, Jun 10, 2021 at 02:40:22PM +0200, Fabian Grünbichler wrote:
> On June 9, 2021 3:18 pm, Wolfgang Bumiller wrote:
> > This is mostly the same as a directory storage, with 2 major
> > differences:
> > 
> > * 'subvol' volumes are actual btrfs subvolumes and therefore
> >   allow snapshots
> > * 'raw' files are placed *into* a subvolume and therefore
> >   also allow snapshots, the raw file for volume
> >   `btrstore:100/vm-100-disk-1.raw` can be found under
> >   `$path/images/100/vm-100-disk-1/disk.raw`
> > * snapshots add an '@name' suffix to the subvolume's name,
> >   so snapshot 'foo' of the above would be found under
> >   `$path/images/100/vm-100-disk-1@foo/disk.raw`
> > 
> > Note that qgroups aren't included in btrfs-send streams,
> > therefore for now we will only be using *unsized* subvolumes
> > for containers and place a regular raw+ext4 file for sized
> > containers.
> > We could extend the import/export stream format to include
> > the information at the front (similar to how we do the
> > "tar+size" format, but we need to include the size of all
> > the contained snapshots as well, since they can technically
> > change). (But before enabling quotas we should do some
> > performance testing on bigger file systems with multiple
> > snapshots as there are quite a few reports of the fs slowing
> > down considerably in such scenarios).
> 
> this should probably be mentioned prominently in the docs somewhere, 
> else it could cause quite some confusion. also is ext4 in raw image on 
> btrfs really faster than btrfs with quotas? Oo we really should do some 
> benchmarks first before going down either route..

I do also have an idea for a simple-enough & extendable import/export
format change for also sending the quota info over the wire, so we can
go either way.
But yes, we definitely need to do some performance tests... And also
watch btrfs-scrubs with quotas in use... ;-)




  reply	other threads:[~2021-06-10 13:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 13:18 [pve-devel] [PATCH multiple] btrfs, file system for the brave Wolfgang Bumiller
2021-06-09 13:18 ` [pve-devel] [PATCH common] Syscalls/Tools: add renameat2 Wolfgang Bumiller
2021-06-15 12:35   ` [pve-devel] applied: " Thomas Lamprecht
2021-06-09 13:18 ` [pve-devel] [PATCH storage 1/4] fix find_free_disk_name invocations Wolfgang Bumiller
2021-06-15 12:36   ` [pve-devel] applied: " Thomas Lamprecht
2021-06-09 13:18 ` [pve-devel] [PATCH storage 2/4] add BTRFS storage plugin Wolfgang Bumiller
2021-06-10 12:40   ` Fabian Grünbichler
2021-06-10 12:59     ` Wolfgang Bumiller [this message]
2021-06-11 12:11   ` Fabian Ebner
2021-06-09 13:18 ` [pve-devel] [PATCH storage 3/4] update import/export storage API Wolfgang Bumiller
2021-06-10 12:30   ` Fabian Grünbichler
2021-06-09 13:18 ` [pve-devel] [PATCH storage 4/4] btrfs: add 'btrfs' import/export format Wolfgang Bumiller
2021-06-09 13:18 ` [pve-devel] [PATCH container 1/2] migration: fix snapshots boolean accounting Wolfgang Bumiller
2021-06-09 13:18 ` [pve-devel] [PATCH container 2/2] enable btrfs support via subvolumes Wolfgang Bumiller
2021-06-10 12:35   ` Fabian Grünbichler
2021-06-09 13:18 ` [pve-devel] [PATCH qemu-server] allow migrating raw btrfs volumes Wolfgang Bumiller
2021-06-10 12:35   ` Fabian Grünbichler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610125929.asaq3azdvadbi52f@wobu-vie.proxmox.com \
    --to=w.bumiller@proxmox.com \
    --cc=f.gruenbichler@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal