April 29, 200917 yr I just added a cache drive to my system and I'd like to update Brainbone's unraid notify script to report the cache drive status as well. Brianbone's script parses the /proc/mdcmd to get the disk list. The cache drive isn't in there. Now I can probably hard code my cache drive, but I was hoping for something a bit more generic. Any thoughts?? I'm sure it's probably easy.. but I'm not an expert with the internals of UnRaid Thanks, Jim
May 1, 200917 yr Run the "mount" command. If a cache drive is installed, you will see a row like this ... /dev/sdg1 on /mnt/cache type reiserfs (rw,noatime,nodiratime,noacl,nouser_xattr) With the device (e.g., /dev/sdg), you will be able to find any other drive info you might need.
May 1, 200917 yr Author Yeah that will work to get me the device.. But what aobut other info about the disk? proc mdcmd list's the disk Id and such which is used in the report. diskId.2=ata-Maxtor_7B300S0_B61TLVLH Will I have to get that info from parsing hdparm -I ? Jim
May 3, 200917 yr Run the command ... ls -l /dev/disk/by-id It will give model info for each device. (I am answering these questions by rummaging though unMENU code written by Joe L.)
May 13, 200917 yr Author Thanks! I already wrote the hdparm parsing code before you sent this! Maybe I should look more at the unmenu code! I want to try to include a space free in the unraid notify script!
Archived
This topic is now archived and is closed to further replies.