From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <rightkicktech@gmail.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id DB62471064
 for <pve-user@lists.proxmox.com>; Wed,  8 Sep 2021 11:39:08 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id C2CB323F0F
 for <pve-user@lists.proxmox.com>; Wed,  8 Sep 2021 11:38:38 +0200 (CEST)
Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com
 [IPv6:2607:f8b0:4864:20::e2b])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by firstgate.proxmox.com (Proxmox) with ESMTPS id 8443423EFB
 for <pve-user@lists.proxmox.com>; Wed,  8 Sep 2021 11:38:37 +0200 (CEST)
Received: by mail-vs1-xe2b.google.com with SMTP id p14so1464318vsm.2
 for <pve-user@lists.proxmox.com>; Wed, 08 Sep 2021 02:38:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=edd7Djs290dunnrmYLXNBGXhK+rjFv0Ml2mZlTwZOyc=;
 b=gFlgrIzfYPAULAn46NfzQGfiZ34CW2CUNvo83sSpCdSZANL4rBzXgEaIorzMKsw5Jp
 SPfkyc/KP9+jKrC/9QkbPNlm1N20ydQ21Odqomd63miXKlkDG1UjUkFJtlX4rZNzmSwD
 kQyVZOsQvk1jlRZQwbU5SBba9qwj5lyCtCuZTgzzEirTNsjnhgUXa34decMQiRPsPoBq
 4EW8dV4pCSbASPQJ07JdCgPTg9M2mWDsHKJgJ4SOLmc7ltJlcDs/wQ/dCv4tzNH0geKo
 VlsNLIv1khuk84haGaavJgVzFH9qPTtkwvQkWCYU9ApzQ2N/WCperhsq+KKQbKUrdMA2
 5a5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=edd7Djs290dunnrmYLXNBGXhK+rjFv0Ml2mZlTwZOyc=;
 b=tDCUBpokWZf9IR4jnPqWVmDXNpGYByfYT/f+G3nwyfWt/oB1rm+rv26S4/b3sg81QA
 7b+IfkuKUDNzm2yzCv9JcSyAAHXPSXWiOY55v1ampXRwiODn59dRgwMgFuw1OJs82eyl
 /YeKjJ0Yin5iKWqmu3+BjM8IZs6BpGFWEE6RX7GF0y2QR8HaKXG6L7p8s1IRUcniLs4W
 2gOXBefuQPAzjk5oPxalCU6y7JudtDIJxscUuFyBz9odpHLTEr+KMIves2X6c/RL+J69
 lxLaeYZDIGggl2n5aORewh+Ogirv5iKYk4DN2l9DqEtcACtm6vmsShi3+WcrEJwx2obz
 UZaw==
X-Gm-Message-State: AOAM530YTJ7iTHzcl67A7eppzFqspkTNMh+1S9eJyMC0gpVAjRSOJlCK
 wbRF2gWWCK279FCpvDihSSYZfdctpgsfrSsyfwUCaiM=
X-Google-Smtp-Source: ABdhPJxLp8fVmiLTSmWVi/sLLLqSNyKBNqxOnjNR+OHUlvnT+tEWzisT6MZ97r81oRcMp4ujWJIu/Wf8OKYHIM4fp/8=
X-Received: by 2002:a67:8c07:: with SMTP id o7mr1414176vsd.31.1631093910006;
 Wed, 08 Sep 2021 02:38:30 -0700 (PDT)
MIME-Version: 1.0
References: <CABMULt+s5D-BODXQYoRF9sE2_cS1ZB7hG+c-M-D9=+iLf=6XMg@mail.gmail.com>
 <99b82feffbce274c20bfefb18e41efd8@verdnatura.es>
In-Reply-To: <99b82feffbce274c20bfefb18e41efd8@verdnatura.es>
From: Alex K <rightkicktech@gmail.com>
Date: Wed, 8 Sep 2021 12:38:19 +0300
Message-ID: <CABMULtLqqaWqZfNaTR1n7mWVhg4EnNN2PtR+dsb40i6NF0oB-Q@mail.gmail.com>
To: Proxmox VE user list <pve-user@lists.proxmox.com>
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.027 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
 FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider
 HTML_MESSAGE            0.001 HTML included in message
 POISEN_SPAM_PILL_4        0.1 random spam to be learned in bayes
 RCVD_IN_DNSWL_NONE     -0.0001 Sender listed at https://www.dnswl.org/,
 no trust
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
Subject: Re: [PVE-User] VM storage and replication
X-BeenThere: pve-user@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE user list <pve-user.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-user/>
List-Post: <mailto:pve-user@lists.proxmox.com>
List-Help: <mailto:pve-user-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Wed, 08 Sep 2021 09:39:08 -0000

On Wed, Sep 8, 2021 at 12:32 PM nada <nada@verdnatura.es> wrote:

> hi Alex
> in case you have a limited budget now
> you may do backups local backups but it is not recommended by some cheap
> NAS ASAP
>
> temporal solution:
> 1. create some filesystem LVM/ext4 @node1 and mount at /mnt/backup
> 2. install NFS server @node1 and export /mnt/backup to node2
> 3. install NFS client @node2 and create mountpoint /mnt/backup
> 4. edit fstab @node2 example
>     node1:/mnt/backup      /mnt/backup       nfs
> defaults,noatime,bg     0       2
> 5. mount /mnt/backup
> 6. add directory to your proxmox storage via webGUI
>     or add to /etc/pve/storage.cfg example
>
> dir: backup
>         path /mnt/backup
>         content vztmpl,backup,iso
>
> after this you will have backups accessible at both nodes
> hope it will help you
>
Hi Nada, Thanx for your feedback.
I will definitely include a NAS into the final setup for exporting the
backups. I was just wondering about how I would sync local backups between
the nodes for an additional local copy and your suggestion seems a nice
work-around to me without adding any other custom scripts.

Nada


>
> On 2021-09-08 10:05, Alex K wrote:
> > Hi all,
> >
> > I have setup a dual server setup, with latest proxmox v7.x. Each host
> > with
> > its own local storage. No shared storage (CEPH, GlusterFS).
> >
> > I understand I can have VMs hosted on top LVM with qcow2 disk images or
> > on
> > top thin LVM as raw thin LVM volumes. On both cases I still keep the
> > option
> > to be able to perform VM backups. Which one is the preferred way
> > according
> > to your experience? I will try to do some quick tests on the IO
> > performance
> > between the two.
> >
> > Also, I was thinking to replicate the VMs from one host to the other. I
> > understand that for the Proxmox integrated replication feature I need
> > ZFS
> > backed storage. As I am not much into ZFS, although I really enjoy
> > FreeNAS
> > and its great features and will definitely look into it later, I was
> > thinking to prepare a custom script that would snapshot the LVM volumes
> > where the VM images reside and sync the VM disks from one host to the
> > other, using rsync, just for a local copy of them. Of course I will
> > take
> > care to have an external media also to periodically export the VMs for
> > backup purposes, though I would like to have a local copy of the VM
> > disk
> > images at the other host, readily available in case I face issues with
> > the
> > external media or one of the hosts. What do you think about this
> > approach?
> > Am I missing some other feature or better approach?
> >
> > Regrading the sync/replication of the VMs between the hosts (without
> > ZFS),
> > I was thinking also to have a dedicated local LVM volume for these
> > periodic
> > backup jobs configured within Proxmox and then the custom script to
> > just
> > rsync these backup images between the two hosts. This seems a simple
> > one
> > though it increases the storage requirements, while with the previous
> > approach with the custom script, the script would snapshot, sync to the
> > other side and remove the snapshot without keeping a redundant local
> > copy
> > of the disk image in the same host.
> >
> > Sorry for the long read.
> > Appreciate any feedback.
> >
> > Alex
> > _______________________________________________
> > pve-user mailing list
> > pve-user@lists.proxmox.com
> > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
> _______________________________________________
> pve-user mailing list
> pve-user@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
>