Wake up Lan NAS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • master_marcel
    Junior Member
    • Jan 2009
    • 12

    Wake up Lan NAS

    Hi,

    I'll hope this is the right forum.

    Let me explain the situation.

    I have a server running. Onto that server i installed Squeezebox server. This server is always on. I also have a DIY build NAS. I only use the NAS for file storage. So all music is stored on the NAS. I want all running services seperate from my storage. The NAS is going in sleep mode when not used.

    I already mounted the share where my music is stored (onto the NAS).

    Now the question. Is it possible to wake up the NAS when Squeezebox Server needs the music files?
    Last edited by master_marcel; 2010-07-12, 20:50.
  • epoch1970
    Senior Member
    • Apr 2008
    • 2280

    #2
    Ideas ?

    Something like iPeng could give you this for free, because it has the capacity to send, when you start it, a wol packet to an arbitrary MAC address.
    Regular SB players will register the MAC address of the server, making their WOL feature useless. I do not have a running solution (and I fear of timeouts and other issues in practice) but I guess running a proxy service on the server could be an idea.
    - Some sort of wol proxy: when a wol packet is sent to the server, send another one to the NAS. Built using a raw socket + iptables (on linux)? There are "wol proxies" out there, I don't know what they do.
    - HTTP proxy: same idea, listening to server:9000. More flexible since every player action could trigger the wake (but timeout may apply)
    - Automount script map (linux et al.): when the NAS is down, access to a specific file hierarchy on the server is preceded with a wol packet. Something like this (the auto.nas file, specifically). Timeout issues *will* apply.

    I'd be interested to read other suggestions. Routing, proxy arp ??
    Last edited by epoch1970; 2010-07-15, 08:19.
    2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone + iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa • Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

    Comment

    • master_marcel
      Junior Member
      • Jan 2009
      • 12

      #3
      Thanks for your suggestions epoch1970. I almost gave up this setup, but checking this thread this morning i found your answer.

      I really like to keep my storage separate from my running services. It would be nice to get this working. I'll checkout your suggestions.

      I'll think i do a feature request to build in a option (if possible) to wake up other devices (NAS).

      Comment

      • master_marcel
        Junior Member
        • Jan 2009
        • 12

        #4
        epoch1970,

        When i use a http proxy, how to get this working? I never used a proxy before.

        Comment

        • master_marcel
          Junior Member
          • Jan 2009
          • 12

          #5
          The only two thing what have to be execute is:

          wolcmd mac address ip address subnet mask port(from windows client).

          mount //ip address/Compact-Disc-Flac /mnt/samba/Compact-Disc-Flac cifs username=someone,password=somepassword

          Comment

          Working...