Jump to content

NAS "sleep mode"?

I built a NAS a while back, nothing special, specs in sig. Since I am the only one in my house that uses my NAS (everyone else isn't very tech savvy) I only need it on when I am using my computer. Is there a way for it to go to "sleep" when I shut down my PC? I want it to be completely off but start up again when I turn my main PC on. It's running FreeNAS if that helps.

MAIN RIG: Dell Precision T5500 -CPU: Intel Xeon W5580 (4c,8t@ 3.2ghz,turbo 3.46) -MOTHERBOARD: Dell Precision T5500 OEM -RAM: 16gb ECC DDR3 FBDIMM (Hynix) -GPU: Gigabyte GTX 770  OC WINDFORCE X3 -Case: Dell Precision T5500 OEM -STORAGE: 240gb ADATA Premier SP550 (OS, Programs), 2x 500GB WD Caviar WD5000AAKS (Games, Files) (RAID 0) -PSU: Dell Precision T5500 OEM (875w) -DISPLAY(S): Primary: Acer AL2016w (1680x1050), Left and Right: Gateway FPD1976W (1440x900), Extra displays around the room: 42" Vizio TV (1920x1080) -COOLING: Dell Precision T5500 OEM -KEYBOARD: Logitech G710+ -MOUSE: Logitech G502 Proteus Core -SOUND: Logitech x320 and Razer Electras -OPERATING SYSTEM: Windows 10 Pro x64

 

LAPTOP: Dell Precision M6500 -CPU: Intel Core i7 920xm (4c,8t@2.0ghz,turbo 3.2ghz) -RAM: 12gb DDR3 -GPU: ATi Firepro M7820 -STORAGE: 240gb ADATA Premier SP550 (OS, Programs), 500GB Seagate STL500LM000 SSHD (Games, Files) -DISPLAY: 1920x1200 17.3” -OPERATING SYSTEM: Windows 10 Pro x64

 

SECONDARY RIG: -CPU: 2x Intel Xeon x5450 (4c, 4t ea., 8c, 8t @3ghz total) -MOTHERBOARD: Corvalent BDPEX -RAM: 14GB ECC DDR2 (Mix Match of Brands) -GPU: Nvidia Quadro NVS 285 -CASE: No Case (Everything is mounted on the wall in my closet) -STORAGE: 160GB WD Caviar SE WD1600AAJS (OS, Programs, Files) -PSU: 450w BFG -DISPLAY: Samsung UN22D5000 (1920X1080) -COOLING: Dell Precision T5400 Heatsinks and some random fans -KEYBOARD: Logitech G105 -MOUSE: Logitech M215 Wireless Mouse -OPERATING SYSTEM: Windows 7 Professional x64

 

NAS: -CPU: Intel Pentium e2180 (2c, 2t@2ghz) -MOTHERBOARD: HP Compaq DC5800 OEM -RAM: 2GB DDR2 (Unsure of Brand) -CASE: No Case (Everything is mounted on the wall in my closet) -STORAGE: 500GB HGST (Backup) -PSU: HP Compaq DC5800 OEM (300w) -DISPLAY: Samsung UN22D5000 (1920X1080) -COOLING: Cooler Master Hyper 101a (Zip Tied) and some random fans -OPERATING SYSTEM: FreeNAS 9.10 (Running From USB Flash Drive)

 

FOLDING RIG: Dell Precision T5400 -CPU: 2x Intel Xeon X5450 (4c, 4t ea., 8c, 8t @3ghz total) -MOTHERBOARD: Dell Precision T5400 OEM -RAM: 32gb ECC DDR2 (Hynix) -GPU: Nvidia Quadro NVS 290 -CASE: Dell Precision T5400 OEM -STORAGE: 250gb WD 250ABYS (OS, Programs, Files) -PSU: Dell Precision T5400 OEM -DISPLAY: Dell 1707FP (1280x1024) -COOLING: Dell Precision T5400 OEM -OPERATING SYSTEM: Windows 10 Pro x64


PHONE: iPhone 7 32GB Matte Black (Sprint)

 

Link to comment
Share on other sites

Link to post
Share on other sites

Well I have asked myself the same question a while back. In the end I made some kind of workaround, which might not be what you want but it is a start.

 

I made a cronjob that sends a "shutdown -p now" at 3 am on Fridays and Saturdays. The rest of the time it shuts off at midnight (I'm working full hours I almost never need to adjust that schedule. If I'd need to adjust it more often I'd simply write a bash script that rewrites the cronjob.

 

Now to start it again I'm using wake on lan, it's pretty easy to enable on FreeNAS. I'm using my mobile phone when I'm at home to start it and a raspberry Pi if I'm working and need access to some files. 

This works like a charm if you're interested.

http://www.jeremyblum.com/2013/07/14/rpi-wol-server/

 

Else if you really only need it when you start your PC then you can simply write a script that sends the wake on lan package to the MAC Adress of your NAS and let it start with your PC.The same thing can be done to shut it down again. Just write a shutdown script for your PC that also logs into your freenas via SSH and sends a shutdown there aswell.

Link to comment
Share on other sites

Link to post
Share on other sites

Version 9.10 needs a bit of a workaround, other than that it works.

 

1. ~# mount -w /
2. ~# nano -w /conf/base/etc/rc.shutdown
3. Comment out #/sbin/ifconfig -l | /usr/bin/xargs -n 1 -J % /sbin/ifconfig % down
4. ~# mount -r /

For me it wasn't necessary to "mount /" it's already mounted normally.

 

In addition to that activate "wake on lan" or "wake on pci/pcie" in the bios.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×