[SOLVED] Commands to start and stop array


jonnyczi

Recommended Posts

Hi everyone!

 

I'm new to the forum.

 

I have three Unraid servers and remote access has become a primary goal for me recently. I can't for the life of me find the commands that I can run via SSH to start and stop the array.

 

For example I upgraded my server to 6.2 remotely and rebooted. Now I'm stuck with SSH access and in order to access the web gui I need to start Docker which needs the array to be up. One of my containers contains a proxy server that allows me to access the web gui. I'm guessing that on this server I forgot to enable "Auto Start Array"

 

Thank you for your help!

Link to comment

Hi everyone!

 

I'm new to the forum.

 

I have three Unraid servers and remote access has become a primary goal for me recently. I can't for the life of me find the commands that I can run via SSH to start and stop the array.

 

For example I upgraded my server to 6.2 remotely and rebooted. Now I'm stuck with SSH access and in order to access the web gui I need to start Docker which needs the array to be up. One of my containers contains a proxy server that allows me to access the web gui. I'm guessing that on this server I forgot to enable "Auto Start Array"

 

Thank you for your help!

Start:

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStart=Start

 

Stop:

 

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStop=Stop

Link to comment

Start:

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStart=Start

 

Stop:

 

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStop=Stop

 

Yikes!  Probably works though.  Might want to appeal to Tom for a return to the simpler mdcmd commands.

Link to comment

Start:

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStart=Start

 

Stop:

 

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStop=Stop

 

Yikes!  Probably works though.  Might want to appeal to Tom for a return to the simpler mdcmd commands.

Eric gave them to me for another plugin thats fallen by the wayside.  Its just hitting the webUI to do it.  There is no "command" per se to accomplish starts and stops
  • Like 1
Link to comment

Start:

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStart=Start

 

Stop:

 

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStop=Stop

 

Yikes!  Probably works though.  Might want to appeal to Tom for a return to the simpler mdcmd commands.

Eric gave them to me for another plugin thats fallen by the wayside.  Its just hitting the webUI to do it.  There is no "command" per se to accomplish starts and stops

I think there used to be, long ago, something very simple like 'mdcmd start' and 'mdcmd stop'...

Link to comment

I think there used to be, long ago, something very simple like 'mdcmd start' and 'mdcmd stop'...

This day and age there is a ton of other services (docker, vms) that need to be started / stopped that the basic array commands (mdcmd) do not take into consideration.  Hence all the bugaboo going on with a replacement for powerdown now.
Link to comment

Start:

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStart=Start

 

Stop:

 

wget -qO /dev/null http://localhost:$(lsof -nPc emhttp | grep -Po 'TCP[^\d]*\K\d+')/update.htm?cmdStop=Stop

 

Awesome it works! Never though to do it this way! Thank a bunch!

;D

Link to comment
  • 2 years later...
  • 8 months later...
  • 6 months later...
On 9/1/2019 at 5:55 PM, J.Nerdy said:

If the webgui is corrupted (have an open thread) is there a way to manual start the array that does not invoke the GUI?

I second that question!

I have 500 Internal error on time to time so have to do a host reset, which lead on a parity check after restart...

Link to comment
  • 1 year later...
8 hours ago, brianvicente said:

what parameter would I need to add to that command if my drives are with a passphrase? 

a file called keyfile is created so you can create before running the command. File is in /root and it is called keyfile. 

 

I get the file via ftp from another device i.e. Raspberry PI to allow autostart in my go.

 

# Start the Management Utility
wget --ftps-implicit --user=pi  --password='raspberry' ftp://x.x.x.x/files/keyfile -O /root/keyfile

 

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.