Custom Query (1434 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (232 - 234 of 1434)

Ticket Resolution Summary Owner Reporter
#252 fixed add disks on megaraid sas controller to DEVICESCAN Alex Samorukov Alex Samorukov
Description

I decided to add autoscan functionality for drives on MegaSAS controllers. Main motivation for this was that devices on such controllers having random numbers, from 0 to ~250 and it is very annoying to write smartd configuration (i used shell + MegaCli in the past). There is no ioctl documentation provided, so i did patch based on MegaCli tool behavior (with strace and LD_PRELAOD for IOCTL) and FreeBSD driver sources which contain similar code. What this patch is doing:

  • In autoscan mode, if megaraid_sas_ioctl is found in /proc/devices it is trying to identify SCSI host number with megasas controllers using sysfs (/sys/class/scsi_host/hostN/proc_name). If sysfs is not mounted it scans first 16 buses. I believe that native tool do the same.
  • If controller is found i am getting device list using driver ioctl and adding them to device list

Code changes:

  • megaraid.h updated to include constant/structures to get drive list
  • set_fd added to linux_smart_device. I need this to override is_open check in megaraid.
  • -d megaraid allows to specify devices in pseudo /dev/bus/N format. We can`t easy get drive name from the bus number, and also it is possible that drive name is not exists at all (unconfigured RAID).
  • Added private functions get_dev_megasas, megasas_dcmd_cmd and megasas_pd_get_list to the linux_smart_interface.
  • I disabled "MegaRAID SAT layer is reportedly buggy" error. Everything was fixed after chk_cond check was added. I am unable to reproduce problem with different hardware.
  • I added set_info().dev_type = strprintf("megaraid,%d", tgt) to set device number in type. Without it --scan will show just -"d megaraid" devices. Not sure if this is correct.
  • scsiata.cpp - set device type as sat+<oldname> if scsidev->get_dev_type() is not "scsi".

Example:

[root@p2986890 smartmontools]# ./smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/bus/0 -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device
/dev/bus/0 -d megaraid,7 # /dev/bus/0 [megaraid_disk_07], SCSI device
[root@p2986890 smartmontools]# ./smartctl --scan-open
# /dev/sda -d scsi # /dev/sda, SCSI device open failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'
/dev/bus/0 -d sat+megaraid,5 # /dev/bus/0 [megaraid_disk_05] [SAT], ATA device
/dev/bus/0 -d sat+megaraid,7 # /dev/bus/0 [megaraid_disk_07] [SAT], ATA device

[root@p2986890 smartmontools]# ./smartd -d 
smartd 6.1 2012-12-14 r3732M [x86_64-linux-2.6.32-279.14.1.el6.x86_64] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

No configuration file /usr/local/etc/smartd.conf found, scanning devices
glob(3) found no matches for pattern /dev/hd[a-t]
glob(3) found no matches for pattern /dev/sd[a-c][a-z]
Device: /dev/sda, open() failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'
Device: /dev/bus/0 [megaraid_disk_05], type changed from 'megaraid,5' to 'sat+megaraid,5'
Device: /dev/bus/0 [megaraid_disk_05] [SAT], opened
Device: /dev/bus/0 [megaraid_disk_05] [SAT], WDC WD1003FBYX-01Y7B1, S/N:WD-XXXX, WWN:XXXX, FW:01.01V02, 1.00 TB
Device: /dev/bus/0 [megaraid_disk_05] [SAT], found in smartd database: Western Digital RE4 Serial ATA
Device: /dev/bus/0 [megaraid_disk_05] [SAT], not capable of SMART Health Status check
Device: /dev/bus/0 [megaraid_disk_05] [SAT], is SMART capable. Adding to "monitor" list.
Device: /dev/bus/0 [megaraid_disk_07], type changed from 'megaraid,7' to 'sat+megaraid,7'
Device: /dev/bus/0 [megaraid_disk_07] [SAT], opened
Device: /dev/bus/0 [megaraid_disk_07] [SAT], WDC WD1003FBYX-01Y7B1, S/N:WD-XXXX, WWN:XXXX, FW:01.01V02, 1.00 TB
Device: /dev/bus/0 [megaraid_disk_07] [SAT], found in smartd database: Western Digital RE4 Serial ATA
Device: /dev/bus/0 [megaraid_disk_07] [SAT], not capable of SMART Health Status check
Device: /dev/bus/0 [megaraid_disk_07] [SAT], is SMART capable. Adding to "monitor" list.
Monitoring 2 ATA and 0 SCSI devices
Device: /dev/bus/0 [megaraid_disk_05] [SAT], opened ATA device
Device: /dev/bus/0 [megaraid_disk_05] [SAT], previous self-test completed without error
Device: /dev/bus/0 [megaraid_disk_07] [SAT], opened ATA device
Device: /dev/bus/0 [megaraid_disk_07] [SAT], previous self-test completed without error
#335 fixed WSCGI engine in track works incorrectly with URI containing spaces Alex Samorukov Alex Samorukov
Description

I found that urls containing spaces are not handled correnctly by trac. Most likely its about the escaping in nginx.

Sample URL is provided below: http://www.smartmontools.org/timeline?from=2011-10-20T19%3A20%3A23Z&precision=second

#342 fixed Add Apple 512Mb SSD Christian Franke Alex Samorukov
Description

Cant find any specification and attributes seems to be very non-standard. E.g. 174 and 175 according to my tests are read/write in Mb.

M-PRG-00963913:smart asamorukov$ /usr/local/sbin/smartctl /dev/disk1  -v 174,raw48,Mb_Read -v175,raw48,Mb_Write -A -i
smartctl 6.2 2013-07-26 r3841 [x86_64-apple-darwin13.2.0] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     APPLE SSD SM0512F
Firmware Version: UXM2JA1Q
User Capacity:    500,277,790,720 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jul 18 13:02:18 2014 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 40
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x001a   200   200   000    Old_age   Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       69
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       179
169 Unknown_Attribute       0x0013   253   253   010    Pre-fail  Always       -       3651410075136
173 Unknown_Attribute       0x0032   200   200   100    Old_age   Always       -       4296474628
174 Mb_Read                 0x0022   099   099   000    Old_age   Always       -       1839891
175 Mb_Write                0x0022   099   099   000    Old_age   Always       -       1862708
192 Power-Off_Retract_Count 0x0012   099   099   000    Old_age   Always       -       16
194 Temperature_Celsius     0x0022   054   054   000    Old_age   Always       -       46 (Min/Max 17/75)
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x001a   200   200   000    Old_age   Always       -       0
240 Unknown_SSD_Attribute   0x0022   100   100   000    Old_age   Always       -       0


Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.