vizi0n Posted November 5, 2016 Share Posted November 5, 2016 Hi everyone, I'm a total newbie when it gets to unRAID as I am only on my 3rd day using it so please bear with me So far it works great but I'm trying to figure out how I can prevent from having to reboot when I add disks? I am running an Adaptec 51245 controller with disks as JBOD in Rosewill 4x3 enclosures. Every device detected at boot work great, but when I add new drives (is that called hot-add?) unRAID doesn't see them in the unassigned section. If I go to Tools / System devices, the "new drives" appear in the SCSI devices list . Is there anything I can do to have unRAID detect those drives without rebooting so I can preclear them, stop the array, add them, and restart the array? The drives are WD10EALX and WD10EARS Thanks! SCSI Devices [0:0:0:0] disk SanDisk Ultra Fit 1.00 /dev/sda 15.3GB [1:1:1:0] disk ST500DM002-1BD14 KC45 /dev/sdb 499GB [1:1:2:0] disk ST500DM002-1BD14 KC45 /dev/sdc 499GB [1:1:3:0] disk ST3160827AS 3.42 /dev/sdd 159GB [1:1:5:0] disk WDC WD10EALX-229 15.0 - - [1:1:6:0] disk WDC WD10EARS-00Y 80.0 - - [1:1:7:0] disk Hitachi HUA722020ALA331 JKAO /dev/sde 1.99TB [1:1:8:0] disk Hitachi HUA722020ALA331 JKAO /dev/sdf 1.99TB [1:1:9:0] disk Hitachi HUA722020ALA331 JKAO /dev/sdg 1.99TB [1:1:10:0] disk Hitachi HUA722020ALA331 JKAO /dev/sdh 1.99TB [1:1:11:0] disk Hitachi HUA722020ALA331 JKAO /dev/sdi 1.99TB [7:0:0:0] cd/dvd HL-DT-ST BD-RE WH10LS30 1.00 /dev/sr0 - Quote Link to comment
Squid Posted November 5, 2016 Share Posted November 5, 2016 unRaid doesn't officially support this, but IIRC most of the time, simply stopping the array will get unRaid to recognize the drive. Quote Link to comment
vizi0n Posted November 6, 2016 Author Share Posted November 6, 2016 Unfortunately that didn't work. I ended up rebooting the server, causing chaos in the house because kids were watching a movie! Some kind of "refresh drives" button/feature would be neat! Quote Link to comment
bonienl Posted November 6, 2016 Share Posted November 6, 2016 Underlying Linux supports adding disks on the fly. Once a new disk is added and recognized by Linux, then stop the array and it will be available as a new choice. If the array is already stopped, then refresh the GUI. ps. I assume your hardware supports hot swapping, i.e. using drive cages. Quote Link to comment
ken-ji Posted November 6, 2016 Share Posted November 6, 2016 As somebody with a hot swap cage, some work needs be done by the user to properly detect new drives (or removed drives) echo "- - -" > /sys/class/scsi_host/host0/scan host0 kinda depends on your system though (its probably host0 or host1) you'll notice that your scsi devices list list the drives without the /dev/sdX names, meaning linux is not aware they exist. until linux is aware, restarting the array is not going to work. Quote Link to comment
vizi0n Posted November 7, 2016 Author Share Posted November 7, 2016 As somebody with a hot swap cage, some work needs be done by the user to properly detect new drives (or removed drives) echo "- - -" > /sys/class/scsi_host/host0/scan host0 kinda depends on your system though (its probably host0 or host1) you'll notice that your scsi devices list list the drives without the /dev/sdX names, meaning linux is not aware they exist. until linux is aware, restarting the array is not going to work. Aaaah that's the missing bit! Thanks for your input! Can't try it right now though but I'm keeping note of it Quote Link to comment
vizi0n Posted December 11, 2016 Author Share Posted December 11, 2016 Unfortunately that didn't work. I know, its been a while, but I had to reorganize my drives today, and after swapping bays. I see them in the new order on the system devices page but no /dev/sdx assigned to the swapped drives. When I run echo "- - -" > /sys/class/scsi_host/host7/scan" nothing special happens. They don't obtain a /dev/sdx I've had to reboot, and now evertything is back to normal. Quote Link to comment
ken-ji Posted December 13, 2016 Share Posted December 13, 2016 Unfortunately that didn't work. I know, its been a while, but I had to reorganize my drives today, and after swapping bays. I see them in the new order on the system devices page but no /dev/sdx assigned to the swapped drives. When I run echo "- - -" > /sys/class/scsi_host/host7/scan" nothing special happens. They don't obtain a /dev/sdx I've had to reboot, and now evertything is back to normal. Well judging from lsscsi ouput above, I'd say you should have been scanning against host1, not host7. But yesa a reboot will definite work out the kinks Quote Link to comment
vizi0n Posted December 13, 2016 Author Share Posted December 13, 2016 Is host the 1st number or the second? Because they were 7:x:x:x when I did the commands, and now after the reboot they're 2:1:x:x Quote Link to comment
ken-ji Posted December 13, 2016 Share Posted December 13, 2016 i think its the 1st number... that's how it is in my case. But it won't hurt to run that command against all the hosts ... unless you have a broken/flaky host/device. Quote Link to comment
vizi0n Posted December 16, 2016 Author Share Posted December 16, 2016 I have finally managed to hotadd a new drive today using Adaptec's "arcconf" command line tool. Finally! Quote Link to comment
DrLucasMendes Posted August 25, 2020 Share Posted August 25, 2020 On 12/15/2016 at 11:35 PM, vizi0n said: I have finally managed to hotadd a new drive today using Adaptec's "arcconf" command line tool. Share with us. Quote Link to comment
vizi0n Posted July 20, 2021 Author Share Posted July 20, 2021 (edited) On 8/24/2020 at 10:47 PM, DrLucasMendes said: Share with us. Good idea, because here I am today, looking again for how to do this because I want to upgrade my cache disk! lol ** These steps are for my Adaptec 51245 controller ** Step 1: arcconf getconfig 1 This prints a list of all drives connected to controller #1 Step 2: find your new drive in the list, it will most likely be the only one that doesn't say "JBOD" next to its state. Note the "Reported Channel,Device(T:L)" (example : 0,11 this is channel 0, device 11) Step 3 : create a JBOD drive out of the new drive : arcconf CREATE 1 JBOD 0 11 (still using the example from above). This create a JBOD drive, on controller 1, channel 0, drive 11) Step 4 : you should now see the new drive in your MAIN section of Unraid. If you dont, stop the array and it should be in the list. ============ Here's my controller configuration if that can help. You can find that with "arcconf getconfig 1 ad" Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 51245 Controller Serial Number : 1D4211CB859 Temperature : 82 C/ 179 F (Normal) Installed memory : 512 MB Copyback : Disabled Background consistency check : Disabled Automatic Failover : Disabled Global task priority : High Performance Mode : Default/Dynamic Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 0/0/0 SSDs assigned to MaxCache pool : 0 Maximum SSDs allowed in MaxCache pool : 8 MaxCache Read Cache Pool Size : 0.000 GB MaxCache flush and fetch rate : 0 MaxCache Read, Write Balance Factor : 3,1 NCQ status : Enabled Statistics data collection mode : Enabled -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (18948) Firmware : 5.2-0 (18948) Driver : 1.2-1 (50983) Boot Flash : 5.2-0 (18948) -------------------------------------------------------- Controller Battery Information -------------------------------------------------------- Status : Not Installed Also interesting information: if you want to be able to view the SMART data from the Unraid devices pages, you need to set the "SMART Controller Type" to "SAT" with nothing in the 2 fields on the same row as SAT. Edited July 20, 2021 by vizi0n 1 Quote Link to comment
ChrisCox462 Posted September 22, 2021 Share Posted September 22, 2021 I see you posted the steps for the software, but what version worked with slackware? can you provide the file you used for arcconf and where you put it? sorry to necropost but I must know. 1 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.