Re: DEVICESCAN on Solaris

Ben RUBSON <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
So, for dev team, I found the issue.

I added "disk" into uscsidrvrs, in os_solaris.cpp :

static const char *uscsidrvrs[] = {
        "sd",
        "ssd",
        "st",
        "disk"
};

Now disks are correctly detected :
/dev/rdsk/c0t55CD2E404B7909DEd0s0 -d scsi # /dev/rdsk/c0t55CD2E404B7909DEd0s0, SCSI device
/dev/rdsk/c0t55CD2E404B792692d0s0 -d scsi # /dev/rdsk/c0t55CD2E404B792692d0s0, SCSI device
/dev/rdsk/c0t55CD2E404B793179d0s0 -d scsi # /dev/rdsk/c0t55CD2E404B793179d0s0, SCSI device
/dev/rdsk/c1t5000CCA07324626Dd0s0 -d scsi # /dev/rdsk/c1t5000CCA07324626Dd0s0, SCSI device
/dev/rdsk/c1t5000CCA073270CF5d0s0 -d scsi # /dev/rdsk/c1t5000CCA073270CF5d0s0, SCSI device
/dev/rdsk/c1t5000CCA073272B4Dd0s0 -d scsi # /dev/rdsk/c1t5000CCA073272B4Dd0s0, SCSI device
/dev/rdsk/c1t5000CCA073276F5Dd0s0 -d scsi # /dev/rdsk/c1t5000CCA073276F5Dd0s0, SCSI device
/dev/rdsk/c1t5000CCA07327719Dd0s0 -d scsi # /dev/rdsk/c1t5000CCA07327719Dd0s0, SCSI device

Perhaps this could be added as a patch to the next release ?

My controller is a LSI 9211-8i / SAS2208.

Thank you,

Best regards,

Ben



> Le 23 oct. 2015 à 19:47, Ben RUBSON <[email protected]> a écrit :
> 
> Hello,
> 
> Smartctl does not automatically detect my disks on Solaris.
> 
> I would have liked to only put a DEVICESCAN rule into smartd.conf so that all devices (currently installed and added in the future) automatically get the same rule.
> 
> Is there any way to have devices auto detected under Solaris ?
> 
> Eventually, as a workaround, to have only one rule into smartd.conf, can device name use a regex ?
> For example :
> /dev/rdsk/*d0 -a -o on -S on -s (S/../.././02|L/../../6/03)
> 
> Following are some debugging commands from the server.
> 
> Thank you very much !
> 
> Ben
> 
> 
> 
> root@solaris:~/smartmontools-6.4# uname -a
> SunOS solaris 5.11 11.3 i86pc i386 i86pc
> 
> 
> root@solaris:~/smartmontools-6.4# ./smartctl -V
> smartctl 6.4 2015-06-04 r4109 [i386-pc-solaris2.11] (local build)
> Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
> 
> smartctl comes with ABSOLUTELY NO WARRANTY. This is free
> software, and you are welcome to redistribute it under
> the terms of the GNU General Public License; either
> version 2, or (at your option) any later version.
> See http://www.gnu.org for further details.
> 
> smartmontools release 6.4 dated 2015-06-04 at 16:29:41 UTC
> smartmontools SVN rev 4109 dated 2015-06-04 at 16:30:15
> smartmontools build host: i386-pc-solaris2.11
> smartmontools build with: GCC 4.8.2
> smartmontools configure arguments: [no arguments given]
> 
> 
> root@solaris:~/smartmontools-6.4# ./smartctl —scan
> 
> 
> root@solaris:~/smartmontools-6.4# ./smartctl -d scsi --scan
> 
> 
> root@solaris:~/smartmontools-6.4# ls -1 /dev/rdsk/*d0
> /dev/rdsk/c0t55CD2E404B7909DEd0
> /dev/rdsk/c0t55CD2E404B792692d0
> /dev/rdsk/c0t55CD2E404B793179d0
> /dev/rdsk/c1t5000CCA07324626Dd0
> /dev/rdsk/c1t5000CCA073270CF5d0
> /dev/rdsk/c1t5000CCA073272B4Dd0
> /dev/rdsk/c1t5000CCA073276F5Dd0
> /dev/rdsk/c1t5000CCA07327719Dd0
> 
> 
> root@solaris:~/smartmontools-6.4# ./smartctl -d scsi /dev/rdsk/c0t55CD2E404B7909DEd0 | grep opened
> SCSI device successfully opened
> root@solaris:~/smartmontools-6.4# ./smartctl -d scsi /dev/rdsk/c1t5000CCA07324626Dd0 | grep opened
> SCSI device successfully opened
> root@solaris:~/smartmontools-6.4# ./smartctl -d scsi /dev/rdsk/c1t5000CCA073276F5Dd0 | grep opened
> SCSI device successfully opened
> 


------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.