![]() usr/bin/wget -q -O - localhost/blank. ![]() Model=`grep "rdevModel.$i"= /tmp/$$unmenu_status|ĭisk_device=`echo $" != "parity" ] Serial=`grep "rdevSerial.$i"= /tmp/$$unmenu_status| ![]() Rdevname=`grep "rdevName.$i"= /tmp/$$unmenu_status| RESYNCFINISH=`grep "^mdResyncFinish" /tmp/$$unmenu_status | RESYNCPERCENT=`grep "^mdResyncPrcnt" /tmp/$$unmenu_status | RESYNC=`grep "^mdResync" /tmp/$$unmenu_status | NUMDISKS_IN_SB=`grep "^sbNumDisks" /tmp/$$unmenu_status | then the rsync command would be getting a single string as its argument, because all the variables are expanded inside double quotes. NUMDISKS_IN_ARRAY=`grep "^mdNumProtected" /tmp/$$unmenu_status | It will accept a source array, an updated version of that source. STATUS=`grep mdState /tmp/$$unmenu_status | cut -d "=" -f2` array-sync is a complete data synchronization module for Node.js, highly customizable. IFS= read -t $DELAY -r -s -n1 -d '' Query the "md" module and get the current statusĬmd status | strings >/tmp/$$unmenu_status # Timed read of a single key from the user In the future we could consider supporting relative commands, but we would have to decide on how to. Trap 'stty sane rm /tmp/$$unmenu_status ' EXIT If power, 1x109 (with 9 in a super script). The screen on the unmenu refreshes automatically every 30 seconds or whenever a key is pressed on the keyboard. Then to invoke it log in via telnet and then type: To install it, unzip the attachment to this post and drag it to your flash drive. All the "management" commands must be typed as upper-case (hold down the shift key when typing the command) This is to help prevent any accidental commands from being issued. It can also let you reboot the server, or issue a "powerdown" command to safely stop the array prior to shutting off the power supplies. What it can do is show you disk status, disk statistics, and let you start and stop a background parity check. It cannot be used to add a disk to an array, or to format disks, or to initialize the array, or even to start the array if it is stopped. It does not perform all functions the web-based interface can perform. It is named "unmenu" and might be helpful to some unRaid owners. I put together a UNIX shell script that allows for some basic management of the unRaid array when logged in via telnet.
0 Comments
Leave a Reply. |