jonnyczi Posted September 24, 2016 Share Posted September 24, 2016 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! Quote Link to comment
Squid Posted September 24, 2016 Share Posted September 24, 2016 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 Quote Link to comment
RobJ Posted September 24, 2016 Share Posted September 24, 2016 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. Quote Link to comment
Squid Posted September 24, 2016 Share Posted September 24, 2016 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 1 Quote Link to comment
RobJ Posted September 24, 2016 Share Posted September 24, 2016 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'... Quote Link to comment
Squid Posted September 24, 2016 Share Posted September 24, 2016 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. Quote Link to comment
jonnyczi Posted September 25, 2016 Author Share Posted September 25, 2016 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! Quote Link to comment
bphillips330 Posted December 3, 2018 Share Posted December 3, 2018 I know this is a very old thread. Will this work if array is encrypted? How to mount encrypted array Quote Link to comment
Squid Posted December 3, 2018 Share Posted December 3, 2018 8 hours ago, bphillips330 said: I know this is a very old thread. Will this work if array is encrypted? How to mount encrypted array That command basically pushes the stop array button. So no reason why encryption would make a difference either way Quote Link to comment
bphillips330 Posted December 9, 2018 Share Posted December 9, 2018 Is there a "start" button so to speak. and a spot to put in encryption key from the cli? Quote Link to comment
Squid Posted December 9, 2018 Share Posted December 9, 2018 No there isn't. You would have to say have the array autostart and utilize a key file from somewhere in order to accomplish this. Don't use encryption, so can't particularly help. Quote Link to comment
J.Nerdy Posted September 1, 2019 Share Posted September 1, 2019 If the webgui is corrupted (have an open thread) is there a way to manual start the array that does not invoke the GUI? Quote Link to comment
Reynald Posted March 31, 2020 Share Posted March 31, 2020 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... Quote Link to comment
brianvicente Posted March 25, 2022 Share Posted March 25, 2022 what parameter would I need to add to that command if my drives are with a passphrase? Quote Link to comment
JonathanM Posted March 25, 2022 Share Posted March 25, 2022 20 minutes ago, brianvicente said: what parameter would I need to add to that command if my drives are with a passphrase? Not possible Quote Link to comment
SimonF Posted March 26, 2022 Share Posted March 26, 2022 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 Quote Link to comment
Recommended Posts
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.