Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] unRAID Replication

Featured Replies

Yeah, I think I've got it sorted at this point. Keepalived is configured on both, master registers as master and backup picks up when master goes offline.

I am having one issue though - it seems any time keepalived does anything on the backup server, it shuts down all the containers that are running.

  • Replies 84
  • Views 13.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • keepalived (configuration)   Prerequisites: Fully configured unRAID-Replication plugin with replication tested and working   Tutorial   On the Master server

  • antihero412
    antihero412

    fantastic plugin.  just got it up and running on the new 7.0 beta.  cant wait for more development on this plugin. this was one of the only things i missed from proxmox was replication and now we are

  • It can back up all mapped paths in containers, it is mostly designed to backup Docker and LXC containers (including their paths), I didn't got a lot of feedback so I have moved it down in my list of t

Posted Images

  • Author
27 minutes ago, VanGoghComplex said:

I am having one issue though - it seems any time keepalived does anything on the backup server, it shuts down all the containers that are running.

The containers on the Backup server will only run when the Main server is online.

I'm sorry, I wasn't clear - non-replicated containers on the backup server are shutting down whenever the master goes offline.

My backup server is a game server, not a dedicated backup, so it's running some other stuff - Teamspeak, Crafty and the like. I do see the replicated containers in the list where they belong. But when the master goes offline, the backup seems to shut down all running containers.

  • Author
57 minutes ago, VanGoghComplex said:

I'm sorry, I wasn't clear - non-replicated containers on the backup server are shutting down whenever the master goes offline.

How does the configuration look like, what does the syslog say, did it possibly say that the MASTER server isn't even online? Maybe this is a keepalived issue.

I'm not too sure, the plugin is used by a few folks and it seems to work everywhere.

1 hour ago, VanGoghComplex said:

My backup server is a game server, not a dedicated backup, so it's running some other stuff - Teamspeak, Crafty and the like. I do see the replicated containers in the list where they belong. But when the master goes offline, the backup seems to shut down all running containers.

Oh, this could be the issue, the plugin is specifically designed to be "replication" like.

1 hour ago, ich777 said:

How does the configuration look like, what does the syslog say, did it possibly say that the MASTER server isn't even online? Maybe this is a keepalived issue.

I'm not too sure, the plugin is used by a few folks and it seems to work everywhere.

Oh, this could be the issue, the plugin is specifically designed to be "replication" like.

Gotcha. That makes a little sense.

It seems like any time the replicate finishes, or when the master goes offline, the backup shuts down all running containers.

Is it possible that the plugin might get an update for this in the future, or is it a technical challenge?

  • Author
12 hours ago, VanGoghComplex said:

It seems like any time the replicate finishes, or when the master goes offline, the backup shuts down all running containers.

When the MASTER goes offline all containers are shutting down? Shouldn't it be the complete opposite?

12 hours ago, VanGoghComplex said:

Is it possible that the plugin might get an update for this in the future, or is it a technical challenge?

To only start stop containers which are replicated? That would be indeed be possible but not planed since this can cause some other issues and not the intended use case for this plugin.

That's a bummer. So what's happening is:

Master Server:
Non-replicated containers: UP
Replicated containers: UP

Backup Server:
Non-replicated containers: UP
Replicated containers: DOWN

!!! EVENT - MASTER OFFLINE !!!

Master Server: OFFLINE

Backup Server:

Non-replicated containers: UP
Replicated containers: UP

!!! EVENT - MASTER ONLINE !!!

Master Server:
Non-replicated containers: UP
Replicated containers: UP

Backup Server:
Non-replicated containers: DOWN
Replicated containers: DOWN

The plugin is stopping all containers on the backup server once the master becomes available.

This is a minor inconvenience for me because my backup server is a gaming server and isn't running anything important. However, it is an annoying additional touchpoint after a failover. The stopped non-replicated containers do not come back up even if set for --restart always.

Maybe my use case is unique, but the idea of having two Unraid servers in your setup and hosting nothing but backups on the second feels odd.

  • Author
25 minutes ago, VanGoghComplex said:

The plugin is stopping all containers on the backup server once the master becomes available.

Yes, that was a safety implementation to make sure all containers get shutdown, I'm not sure if that would be easily implementable since the Replication plugin was designed to replicate the MASTER server so if it goes down the SLAVE server could spin up containers for a short period of time to bridge times of short downtime from the MASTER server.

28 minutes ago, VanGoghComplex said:

The stopped non-replicated containers do not come back up even if set for --restart always.

Yes, because the plugin stops the containers and therefore --restart will not work because basically they where stopped intentionally, at least from the plugins perspective.

29 minutes ago, VanGoghComplex said:

Maybe my use case is unique, but the idea of having two Unraid servers in your setup and hosting nothing but backups on the second feels odd.

I don't think so, but the use case for the plugin is as I've described, to bridge short downtime from the MASTER server.

However you could write a small script that starts the game server containers when the MASTER server is going online again, just look in your keepalived.conf file on the SLAVE server.

  • 5 months later...

Not sure why the vm backup is disable and grayed out. i got containers replicating just fine. Any ideas on what to check? Source & Destination are ZFS and same configuration for default vm disk location /mnt/nvme/virtual_machines on both source and dest.

3 hours ago, UnraidUser_2020 said:

Not sure why the vm backup is disable and grayed out.

VM ? as only Dockers and / or LXC Containers are supported.

3 hours ago, UnraidUser_2020 said:

Any ideas on what to check?

may take a look at the logs when running the task, you can start in unraid terminal by executing

unraid-replication

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.