What you COULD do.. a camcontrol devlist which lists how many 3ware drives there are and the daXX values and then do a tw_cli /c0 show and parse out the drives and then match each uXX to each daXX in order.
camcontrol devlist output:
Then run tw_cli /c0 show
tw_cli /c0 show output:
Now we know that da0 matches u0, da1 matches u1, etc...
Do tw_cli /c0/u0 show serial for output of:
Then pull out the serial and you have a /dev/daXX matching a given serial number! Dump that into the FreeNAS GUI and all is working :D
camcontrol devlist output:
Code:
<AMCC 9650SE-24M DISK 4.10> at scbus3 target 0 lun 0 (pass0,da0) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 1 lun 0 (pass1,da1) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 2 lun 0 (pass2,da2) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 3 lun 0 (pass3,da3) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 4 lun 0 (pass4,da4) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 5 lun 0 (pass5,da5) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 6 lun 0 (pass6,da6) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 7 lun 0 (pass7,da7) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 8 lun 0 (pass8,da8) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 9 lun 0 (pass9,da9) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 10 lun 0 (pass10,da10) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 11 lun 0 (pass11,da11) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 12 lun 0 (pass12,da12) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 13 lun 0 (pass13,da13) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 14 lun 0 (pass14,da14) <AMCC 9650SE-24M DISK 4.10> at scbus3 target 15 lun 0 (pass15,da15) <Corsair Voyager 1100> at scbus11 target 0 lun 0 (pass16,da16)
Then run tw_cli /c0 show
tw_cli /c0 show output:
Code:
VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 1.36 TB SATA 0 - WDC WD15EADS-00S2B0 p1 OK u1 931.51 GB SATA 1 - ST31000340AS p2 OK u2 931.51 GB SATA 2 - ST31000528AS p3 OK u3 1.36 TB SATA 3 - ST31500341AS p4 OK u4 931.51 GB SATA 4 - ST31000340AS p5 OK u5 1.36 TB SATA 5 - ST31500341AS p6 OK u6 1.36 TB SATA 6 - ST31500341AS p7 OK u7 931.51 GB SATA 7 - ST31000340AS p8 OK u8 931.51 GB SATA 8 - ST31000340AS p9 OK u9 1.36 TB SATA 9 - ST31500341AS p10 OK u10 931.51 GB SATA 10 - ST31000528AS p11 OK u11 1.36 TB SATA 11 - ST31500341AS p12 OK u12 931.51 GB SATA 12 - ST31000340AS p13 OK u13 1.36 TB SATA 13 - ST31500341AS p19 OK u14 931.51 GB SATA 19 - ST31000340AS p23 OK u15 1.36 TB SATA 23 - ST31500341AS
Now we know that da0 matches u0, da1 matches u1, etc...
Do tw_cli /c0/u0 show serial for output of:
Code:
/c0/u0 serial number = ******************
Then pull out the serial and you have a /dev/daXX matching a given serial number! Dump that into the FreeNAS GUI and all is working :D