This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[Topic unique] Zrep : synchroniser, failover, takeover

French community

Moderators: velivole18, ernie, mtiburs

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

[Topic unique] Zrep : synchroniser, failover, takeover

Post by ernie »

Bonjour,

Ce post pour poser toutes les questions concernant le tuto: Zrep : synchroniser, failover, takeover
qui se trouve ici:
viewtopic.php?f=94&t=9335

Cordialement,
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Topic unique] Zrep : synchroniser, failover, takeover

Post by ernie »

Bonjour,

D'ici quelques heures, je mets à jours le tuto. Je viens de voir le menu Réseau/Hotes de nas4free qui va solutionner mon problème de hostname.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

Re: [Topic unique] Zrep : synchroniser, failover, takeover

Post by laster13 »

Bonjour,

Excellent boulot ernie. Des que possible je teste en virtualbox ;)

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Topic unique] Zrep : synchroniser, failover, takeover

Post by ernie »

Je suis preneur d'idée une fois que tu as testé pour les clé ssh.
Je suis pas à l'aise sur ce qu'il faut faire entre client et maitre, où mettre les clés, ...

Mais pas d'urgence
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Topic unique] Zrep : synchroniser, failover, takeover

Post by ernie »

Hello

Pour zrep l'autheur propose un script:

Code: Select all

#!/bin/sh
while true
do zrep sync all
done
Celui - ci lance en permanence la synchro, sachant que par défaut seules les 5 dernières synchro sont gardées à chaque fois (réglable).

Je me pose la question suivante: vaut il mieux lancer la synchro en permanence (en changeant l'historique de 5 à 100 ou 1000) ou vaut il mieux lancer de temps en temps la synchro (1 par nuit) ?

Je serais tenter de lancer la synchro en permanence via un script post init, et on rajoute un enregistrement des actions dans un log.
Après comment savoir quand cela plante ???
Est ce que log ne va pas trop grossir.

Vos avis sont bienvenus
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Topic unique] Zrep : synchroniser, failover, takeover

Post by ernie »

Réponse
Vu que zrep gère les snapshots a la place de nas4free, j ai fait un script pour lancer zrep une fois par jours. Ainsi je suis comme auparavant avec les snapshots de nas4free.

Il faut régler auparavant le paramètre savecount a plus que 5, j ai mis 400. Cela se fait avec:
zfs set zrep:savecount=NEWVAL your/fs/here

A +
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

Post Reply

Return to “Français”