sleep freenas with no network Usage

Status
Not open for further replies.

nuttytech

Cadet
Joined
Oct 20, 2015
Messages
7
HI I have many freenas server and A lot of them are used for cold storage server (hosted at home). But there do need to be access from time to time remotely so can't shutdown the server's. I there a way to put the server's to sleep when no network Usage or cpu Usage is not used. I have networking card the support wol and motherboards too.

edit: to fix wording
 
Last edited:

nuttytech

Cadet
Joined
Oct 20, 2015
Messages
7
I have board that can turn on a computer from shutdown but I want to shut it down with no network Usage
 

tvsjr

Guru
Joined
Aug 29, 2015
Messages
959
Define "no network usage". There will always be some level of network usage... broadcast traffic, ARPs, etc. Your best bet is to shut the system down manually or via a script at a predetermined time, then bring it back to life via wake-on-LAN. Just use caution... components, drives, etc. don't always take kindly to being power-cycled over and over. You also won't have ongoing continuous SMART monitoring, scrubs, etc.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Define "no network usage". There will always be some level of network usage... broadcast traffic, ARPs, etc.

I almost posted this exact same thing. In modern computers that function for the sole purpose of being on a network, there is no " no network activity"
 

nuttytech

Cadet
Joined
Oct 20, 2015
Messages
7
Define "no network usage". There will always be some level of network usage... broadcast traffic, ARPs, etc. Your best bet is to shut the system down manually or via a script at a predetermined time, then bring it back to life via wake-on-LAN. Just use caution... components, drives, etc. don't always take kindly to being power-cycled over and over. You also won't have ongoing continuous SMART monitoring, scrubs, etc.

by "no network usage" I mean at a set speed or packet on the network (e.g 200kb/s )

As for a script that sleep/shutdown at predetermined time I don't know the predetermined time as user may boot the server to look at file's on the server or to copy file on the servers they all take different amount of times to do.

Just use caution... components, drives, etc. don't always take kindly to being power-cycled over and over. I'm aware of this fact that why the server do only get use 1-2 times a week. All the Frequently used file are on anther server.
 

tvsjr

Guru
Joined
Aug 29, 2015
Messages
959
How do you envision this working? The only thing that's going to bring a server back from cold shutdown is a Wake-on-LAN packet (if properly configured) or a boot command via IPMI. Nothing's going to say "hey, Joe User just initiated an SMB copy from \\OLDSERVER, let me boot it up!" Even if you could do this, any of the protocols you'd use to access your files with would time out before the system could boot, stabilize, and begin serving traffic.

You're asking for the system for be prescient - to know to boot up before someone wants to copy a file, and to know when everyone's done so it can shut down. It doesn't work this way.

If you don't want to run two systems, I'd suggest adding additional storage to the file server that's up all the time, move the seldom-accessed data there, and just scratch the second system entirely.
 

nuttytech

Cadet
Joined
Oct 20, 2015
Messages
7
How do you envision this working? The only thing that's going to bring a server back from cold shutdown is a Wake-on-LAN packet (if properly configured) or a boot command via IPMI. Nothing's going to say "hey, Joe User just initiated an SMB copy from \\OLDSERVER, let me boot it up!" Even if you could do this, any of the protocols you'd use to access your files with would time out before the system could boot, stabilize, and begin serving traffic.

All users are using Linux (Ubuntu) with there beaning 2 drive. With one of the folder wol_server where I have made a script that when the folder is used. It will send a wol to the server that need to wake up.After the server boot up (1-5mins) the other drive is able to be used. That what I'm using now. I need a way to sleep/shutdown the server after users are done copy/using the server
 

tvsjr

Guru
Joined
Aug 29, 2015
Messages
959
Wow, that sounds horribly klugey. Create a user account on the FreeNAS box with proper rights and give the users a shutdown script they can run when they're done. Works great, until two people are using it at once.

You'll get the square peg in the round hole, sooner or later...
 
Status
Not open for further replies.
Top