[PVE-User] ZFS Replication on different storage

Fabrizio Cuseo f.cuseo at panservice.it
Mon Mar 18 10:05:11 CET 2019


I don't know what Proxmox does during replication; i think that it use the pool name and not the mountpoint; i will check.
Regards, Fabrizio 


----- Il 15-mar-19, alle 16:18,  devzero at web.de ha scritto:

> have a look at zfs get|set mountpoint
> 
> root at pve1:/etc/apt# zfs get mountpoint
> NAME                      PROPERTY    VALUE               SOURCE
> rpool                     mountpoint  /rpool              default
> rpool/ROOT                mountpoint  /rpool/ROOT         default
> rpool/ROOT/pve-1          mountpoint  /                   local
> rpool/data                mountpoint  /rpool/data         default
> rpool/data/vm-100-disk-0  mountpoint  -                   -
> rpool/testdataset         mountpoint  /rpool/testdataset  default
> 
> 
> 
> 
>> Gesendet: Freitag, 15. März 2019 um 15:10 Uhr
>> Von: "Fabrizio Cuseo" <f.cuseo at panservice.it>
>> An: pve-user <pve-user at pve.proxmox.com>
>> Betreff: Re: [PVE-User] ZFS Replication on different storage
>>
>> Hello Mark.
>> I can't rename the zpool because is the primary pool (rpool).
>> 
>> So i have:
>> 
>> Node A:
>> rpool/data (source)
>> 
>> Node B:
>> rpool/data (small partition)
>> pool2 (my desired destination)
>> 
>> I can rename rpool/data as rpool/data_ori, but i can't rename pool2 as
>> rpool/data because is a different pool
>> 
>> ----- Il 15-mar-19, alle 10:26, Mark Adams <mark at openvs.co.uk> ha scritto:
>> 
>> > Why don't you just rename the zpool so they match?
>> 
>> > On Fri, 15 Mar 2019, 09:10 Fabrizio Cuseo, < [ mailto:f.cuseo at panservice.it |
>> > f.cuseo at panservice.it ] > wrote:
>> 
>> >> Hello Gianni.
>> >> I wrote in my email that pve-zsync is not suitable for my need (redundancy with
>> >> VM migration from one host to another).
>> 
>> >> Fabrizio
>> 
>> >> ----- Il 15-mar-19, alle 10:08, Gianni M. < [ mailto:tribalizer at hotmail.com |
>> >> tribalizer at hotmail.com ] > ha scritto:
>> 
>> >> > I think it's hardcoded to use rpool as the default target pool, but I might be
>> >> > wrong.
>> 
>> >> > You might want to have a look at pve-zsync instead ?
>> 
>> >>> [ https://pve.proxmox.com/wiki/PVE-zsync |
>> >> > https://pve.proxmox.com/wiki/PVE-zsync ]
>> 
>> >> > NiCK
>> 
>> >>> From: pve-user < [ mailto:pve-user-bounces at pve.proxmox.com |
>> >> > pve-user-bounces at pve.proxmox.com ] > on behalf of Fabrizio Cuseo
>> >> > < [ mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ] >
>> >> > Sent: Friday, March 15, 2019 8:48:58 AM
>> >> > To: pve-user
>> >> > Subject: Re: [PVE-User] ZFS Replication on different storage
>> >> > Thank you, I have already seen this page; i know and use zfs with freenas and
>> >> > other (tipically i use ceph, but for this cluster I only need the replication
>> >> > feature), but pve-zsync is used more for offsite-backup than redundancy, and
>> >> > the VM can't be migrated from one host to another.
>> >> > So, is not usable :(
>> 
>> >> > Thanks, Fabrizio
>> 
>> >>> ----- Il 15-mar-19, alle 9:36, [ mailto:bsd at todoo.biz | bsd at todoo.biz ] ha
>> >> > scritto:
>> 
>> >> > > Please check this page :
>> 
>> >>>> [ [ https://pve.proxmox.com/wiki/PVE-zsync |
>> >> >> https://pve.proxmox.com/wiki/PVE-zsync ] |
>> >>> > [ https://pve.proxmox.com/wiki/PVE-zsync |
>> >> > > https://pve.proxmox.com/wiki/PVE-zsync ] ]
>> 
>> >> > > pve-zsync is a very nice tool. You need to know and understand what you are
>> >> > > doing (generally speaking, it is a good advise).
>> 
>> >> > > ZFS is a complex file system with major features, but It has a certain learning
>> >> > > curve.
>> >> > > If you have no notion of ZFS, use another backup strategy or learn some basics
>> >> > > about ZFS.
>> 
>> >> > > you should first install pve-zsync and issue a command looking similar to this
>> >> > > one :
>> 
>> >> > > pve-zsync create -dest 192.168.210.28:tank/proxmox1 -limit 12600 -maxsnap 7
>> >> > > -name kvm1.srv -source 133 -verbose
>> 
>> >> > > Where 192.168.210.28 is the IP of your second host / backup host… and
>> >> > > tank/proxmox1 is the dataset where you'll backup.
>> 
>> >> > > First run will actually create the backup and sync It.
>> >> > > It will also create a cron job available in /etc/cron.d/pve-zsync
>> 
>> >> > > You can edit this file in order to tune the various parameters (most probably
>> >> > > the frequency).
>> 
>> >> > > Do read the doc.
>> 
>> >>> >> Le 15 mars 2019 à 09:18, Fabrizio Cuseo < [ mailto:f.cuseo at panservice.it |
>> >> > >> f.cuseo at panservice.it ] > a écrit :
>> 
>> >> > >> Hello Yannis.
>> >> > >> I can't see an option to specify remote storage (or pool) name.
>> >> > >> If you read my email, i need to replicate:
>> 
>> >> > >> HostA/poolZ ----> HostB/poolY
>> 
>> >> > >> But without specifying the remote pool name (there is no pool field in the gui),
>> >> > >> it replicates from HostA/PoolZ ---> HostB/PoolZ (where i have no enough space)
>> >> > >> Regards, Fabrizio
>> 
>> >>> >> ----- Il 14-mar-19, alle 19:48, Yannis Milios < [ mailto:yannis.milios at gmail.com
>> >> > >> | yannis.milios at gmail.com ] > ha
>> >> > >> scritto:
>> 
>> >> > >>> Yes, it is possible...
>> 
>> >>>>>> [ [ [ https://pve.proxmox.com/pve-docs/chapter-pvesr.html |
>> >> >>>> https://pve.proxmox.com/pve-docs/chapter-pvesr.html ] |
>> >>> >>> [ https://pve.proxmox.com/pve-docs/chapter-pvesr.html |
>> >> > >>> https://pve.proxmox.com/pve-docs/chapter-pvesr.html ] ] |
>> >>>>>> [ [ https://pve.proxmox.com/pve-docs/chapter-pvesr.html |
>> >> >>>> https://pve.proxmox.com/pve-docs/chapter-pvesr.html ] |
>> >>> >>> [ https://pve.proxmox.com/pve-docs/chapter-pvesr.html |
>> >> > >>> https://pve.proxmox.com/pve-docs/chapter-pvesr.html ] ] ]
>> 
>> >>>>>> On Thu, 14 Mar 2019 at 11:19, Fabrizio Cuseo < [ [ mailto: [
>> >> >>>> mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ]
>> 
>> >> > mailto: [ mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ] ] |
>> >> > >>> [ mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ] ] > wrote:
>> 
>> >> > >>>> Hello.
>> >> > >>>> I have a customer with a small cluster, 2 servers (different models).
>> 
>> >> > >>>> I would like to replicate VMs from host A to host B, but from local-zfs (host A)
>> >> > >>>> to "zfs-data-2" (host B).
>> 
>> >> > >>>> On the GUI this is not possibile, what about some workaround ?
>> 
>> >> > >>>> Regards, Fabrizio
>> 
>> >> > >>>> --
>> >> > >>>> ---
>> >>>>>>> Fabrizio Cuseo - mailto: [ [ mailto: [ mailto:f.cuseo at panservice.it |
>> >> >>>>> f.cuseo at panservice.it ] |
>> >>> >>>> mailto: [ mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ] ] | [
>> >> > >>>> mailto:f.cuseo at panservice.it | f.cuseo at panservice.it ]
>> >> > >>>> ]
>> >> > >>>> Direzione Generale - Panservice InterNetWorking
>> >> > >>>> Servizi Professionali per Internet ed il Networking
>> >> > >>>> Panservice e' associata AIIP - RIPE Local Registry
>> >> > >>>> Phone: +39 0773 410020 - Fax: +39 0773 470219
>> >>>>>>> [ [ [ http://www.panservice.it/ | http://www.panservice.it/ ] | [
>> >> >>>>> http://www.panservice.it/ | http://www.panservice.it/ ] ] | [
>> >> > >>>> [ http://www.panservice.it/ | http://www.panservice.it/ ] |
>> >> > [ http://www.panservice.it/ | http://www.panservice.it ] ] ] mailto: [
>> >>> >>>> [ mailto: [ mailto:info at panservice.it | info at panservice.it ] | mailto: [
>> >>> >>>> mailto:info at panservice.it | info at panservice.it ] ] | [
>> >> > >>>> mailto:info at panservice.it | info at panservice.it ] ]
>> >> > >>>> Numero verde nazionale: 800 901492
>> >> > >>>> _______________________________________________
>> >> > >>>> pve-user mailing list
>> >>>>>>> [ [ mailto: [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ] |
>> >> >>>>> mailto: [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ] ] |
>> >> > >>>> [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ] ]
>> >>>>>>> [ [ [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> >>>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] |
>> >>> >>>> [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> > >>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] ] |
>> >>>>>>> [ [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> >>>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] |
>> >>> >>>> [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> > >>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] ] ]
>> 
>> >> > >>> --
>> >> > >>> Sent from Gmail Mobile
>> 
>> >> > >> --
>> >> > >> ---
>> >>> >> Fabrizio Cuseo - [ mailto: [ mailto:f.cuseo at panservice.it |
>> >>> >> f.cuseo at panservice.it ] | mailto: [ mailto:f.cuseo at panservice.it |
>> >> > >> f.cuseo at panservice.it ] ]
>> >> > >> Direzione Generale - Panservice InterNetWorking
>> >> > >> Servizi Professionali per Internet ed il Networking
>> >> > >> Panservice e' associata AIIP - RIPE Local Registry
>> >> > >> Phone: +39 0773 410020 - Fax: +39 0773 470219
>> >>>>> [ [ http://www.panservice.it/ | http://www.panservice.it/ ] | [
>> >> >>> http://www.panservice.it/ | http://www.panservice.it ] ] [
>> >> > >> mailto: [ mailto:info at panservice.it | info at panservice.it ] |
>> >> > mailto: [ mailto:info at panservice.it | info at panservice.it ] ]
>> >> > >> Numero verde nazionale: 800 901492
>> >> > >> _______________________________________________
>> >> > >> pve-user mailing list
>> >> > >> [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ]
>> >>>> > [ [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> >> > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] |
>> >>> > > [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> > > > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] ]
>> 
>> >> > --
>> >> > ---
>> >>> Fabrizio Cuseo - [ mailto: [ mailto:f.cuseo at panservice.it |
>> >>> f.cuseo at panservice.it ] | mailto: [ mailto:f.cuseo at panservice.it |
>> >> > f.cuseo at panservice.it ] ]
>> >> > Direzione Generale - Panservice InterNetWorking
>> >> > Servizi Professionali per Internet ed il Networking
>> >> > Panservice e' associata AIIP - RIPE Local Registry
>> >> > Phone: +39 0773 410020 - Fax: +39 0773 470219
>> >>> [ [ http://www.panservice.it/ | http://www.panservice.it/ ] | [
>> >> > http://www.panservice.it/ | http://www.panservice.it ] ] [
>> >> > mailto: [ mailto:info at panservice.it | info at panservice.it ] |
>> >> > mailto: [ mailto:info at panservice.it | info at panservice.it ] ]
>> >> > Numero verde nazionale: 800 901492
>> >> > _______________________________________________
>> >> > pve-user mailing list
>> >> > [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ]
>> >>> [ [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] |
>> >>> [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ] ]
>> 
>> >> --
>> >> ---
>> >> Fabrizio Cuseo - mailto: [ mailto:f.cuseo at panservice.it | f.cuseo at panservice.it
>> >> ]
>> >> Direzione Generale - Panservice InterNetWorking
>> >> Servizi Professionali per Internet ed il Networking
>> >> Panservice e' associata AIIP - RIPE Local Registry
>> >> Phone: +39 0773 410020 - Fax: +39 0773 470219
>> >> [ http://www.panservice.it/ | http://www.panservice.it ] mailto: [
>> >> mailto:info at panservice.it | info at panservice.it ]
>> >> Numero verde nazionale: 800 901492
>> >> _______________________________________________
>> >> pve-user mailing list
>> >> [ mailto:pve-user at pve.proxmox.com | pve-user at pve.proxmox.com ]
>> >> [ https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user |
>> >> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user ]
>> 
>> --
>> ---
>> Fabrizio Cuseo - mailto:f.cuseo at panservice.it
>> Direzione Generale - Panservice InterNetWorking
>> Servizi Professionali per Internet ed il Networking
>> Panservice e' associata AIIP - RIPE Local Registry
>> Phone: +39 0773 410020 - Fax: +39 0773 470219
>> http://www.panservice.it mailto:info at panservice.it
>> Numero verde nazionale: 800 901492
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

-- 
---
Fabrizio Cuseo - mailto:f.cuseo at panservice.it
Direzione Generale - Panservice InterNetWorking
Servizi Professionali per Internet ed il Networking
Panservice e' associata AIIP - RIPE Local Registry
Phone: +39 0773 410020 - Fax: +39 0773 470219
http://www.panservice.it  mailto:info at panservice.it
Numero verde nazionale: 800 901492


More information about the pve-user mailing list