Jump to content

spinning disks up/down


Recommended Posts

In my home theater all my movies are kept on my unraid NAS.  To speed up a load of a particular movie,  I would like to be able to spin up (or spin down)  all of the disks on my unraid system using TCP/IP.  Is there a TCP sequence I can use to do that?.  I know I did this many years ago, using a command like the following sent to port 80:

GET /update.htm?cmdSpinupAll=Spin%20Up HTTP/1.1
Host: 192.168.1.209
Connection: Keep-Alive
Accept-Language: en-US
Accept-Encoding: gzip, deflate
(blank Line)
(blank Line)

 

What is the proper method with the current Unraid version and what should I expect as a reply 

Link to comment

I have merged your topics about this. Please don't post in multiple threads for the same question. It is impossible to coordinate responses when you post in multiple threads. "Crossposting" has been considered bad form on message boards since before the World Wide Web.

 

If you feel your question hasn't received enough attention after a reasonable time, please post again in the original thread. People often will just quote their original question in a new post in the same thread, or simply make a new post in that thread just saying "bump".

Link to comment
  • 2 weeks later...

Bump. 

There must be a way to spin drives up/down. using a command over TCP (HTTP, Telnet, ????).  I know previous versions of Unraid have had that capability as I incorporated that capability using an HTTP GET in my home theater system.  I generally have all the drives spun down, and I know of the option to spin down the drives after a time lapse.  The WEB interface has the capability ("Spin up all" and "Spin down all" buttons). 

 

I send the following over TCP/IP:

 

GET /update.htm?cmdSpinupAll=Spin%20Up HTTP/1.1
Host: 192.168.1.209
Connection: Keep-Alive
Accept-Language: en-US
Accept-Encoding: gzip, deflate
 

I receive back a large web page which starts as:


HTTP/1.1 200 OK
Server: nginx
Date: Mon, 30 Nov 2020 13:47:29 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Cache-Control: no-cache
X-Frame-Options: SAMEORIGIN
(blank Line)
d55

<!DOCTYPE HTML>
<html>
<head>
<meta name="robots" content="noindex, nofollow">
<style>
@font-face{
font-family:'clear-sans';font-weight:normal;font-style:normal;
src:url('/webGui/styles/clear-sans.eot');src:url('/webGui/styles/clear-sans.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/clear-sans.woff') format('woff'),url('/webGui/styles/clear-sans.ttf') format('truetype'),url('/webGui/styles/clear-sans.svg#clear-sans') format('svg');
}
@font-face{
font-family:'clear-sans';font-weight:bold;font-style:normal;
src:url('/webGui/styles/clear-sans-bold.eot');src:url('/webGui/styles/clear-sans-bold.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/clear-sans-bold.woff') format('woff'),url('/webGui/styles/clear-sans-bold.ttf') format('truetype'),url('/webGui/styles/clear-sans-bold.svg#clear-sans-bold') format('svg');
}
@font-face{
font-family:'clear-sans';font-weight:normal;font-style:italic;
src:url('/webGui/styles/clear-sans-italic.eot');src:url('/webGui/styles/clear-sans-italic.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/clear-sans-italic.woff') format('woff'),url('/webGui/styles/clear-sans-italic.ttf') format('truetype'),url('/webGui/styles/clear-sans-italic.svg#clear-sans-italic') format('svg');
}
@font-face{
font-family:'clear-sans';font-weight:bold;font-style:italic;
src:url('/webGui/styles/clear-sans-bold-italic.eot');src:url('/webGui/styles/clear-sans-bold-italic.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/clear-sans-bold-italic.woff') format('woff'),url('/webGui/styles/clear-sans-bold-italic.ttf') format('truetype'),url('/webGui/styles/clear-sans-bold-italic.svg#clear-sans-bold-italic') format('svg');
}
@font-face{
font-family:'bitstream';font-weight:normal;font-style:normal;
src:url('/webGui/styles/bitstream.eot');src:url('/webGui/styles/bitstream.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/bitstream.woff') format('woff'),url('/webGui/styles/bitstream.ttf') format('truetype'),url('/webGui/styles/bitstream.svg#bitstream') format('svg');
}
html{font-family:clear-sans;font-size:62.5%;height:100%}
body{font-size:1.3rem;color:#1c1c1c;background:#f2f2f2;padding:0;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.logLine{font-family:bitstream;font-size:1.2rem;margin:0 8px;padding:0}
.logLine.spacing{margin:10px;}
</style>
<script>
parent.document.getElementById('progressFrame').style.zIndex = 10;

origin = parent.location.origin;
search = parent.location.search;

function replaceName(name) {
  var x = search.indexOf("name=");
  if (x) search = search.substring(0,x+5) + name;
}

function replaceOrigin(new_origin,new_port) {
  if (parent.location.hostname == "localhost")
    origin = parent.location.protocol + "//" + parent.location.hostname + ":" + new_port;
  else
    origin = new_origin;
}

function addLog(logLine) {
  document.body.innerHTML += logLine;
  window.scrollTo(0,document.body.scrollHeight);
}

function disablePage() {
  for (var i=0,element; element=top.document.querySelectorAll('input,button,select'); i++) element.disabled = true;
  for (var i=0,link; link=top.document.getElementsByTagName('a'); i++) link.style.color = "gray"; //fake disable
}

function enablePage() {
  parent.location.assign(origin + parent.location.pathname + search);
}

disablePage();
</script>
</head>
<body class="logLine" onload="enablePage();"></body>
</html>

 

 

Can somebody please help me?

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...