INIT/SHUTDOWN ON SCHEDULE

xames

Patron
Joined
Jun 1, 2020
Messages
235
I need to shutdown freenas that only active during replication, and start 30 minuts before replication, how i can do that?

Thanks.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Init: Can't be managed by FreeNAS. Some BIOS support to turn on a computer at a certain time. Or you could try it with Wake on Lan.
Shutdown: Tasks --> Cron Jobs
 

norbert.hanke

Dabbler
Joined
Aug 6, 2019
Messages
11
I do it with wake-on-lan from a cronjob: wake <backup:server:mac:address:here>
15 Minutes later after discs have warmed up I run the replication, followed by
ssh -i <privatekey> <backupserver> shutdown -p now
You need to register the public key with the root account on the backup server first.
 

xames

Patron
Joined
Jun 1, 2020
Messages
235
Can you write and example command please, i don't understand.
 

norbert.hanke

Dabbler
Joined
Aug 6, 2019
Messages
11
To wake up the other system: wake 51:e4:47:40:16:60
where that parameter is the macaddress of the system.
To find out the macaddress: in a command shell, ping the system and then execute arp -a and look for it.

To shut down the system: ssh -i ~/.ssh/id_rsa <servername> shutdown -p now
You can google for a decent guide on how to create that id_rsa file using ssh-keygen and how to register the public key in ~/.ssh/authorized_keys on the server side.
 

das1996

Dabbler
Joined
May 26, 2020
Messages
25
The shutdown works well but how does one test if a replication process has completed?
 
Top