Custom Query (1542 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 1542)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#1390 fixed -d ignore doesn't work if target is a symbolic link to a device Christian Franke rogach
Description

Setup:

$ ls -l /dev/disk/by-id/wwn-0x5000xxxx
lrwxrwxrwx 9 root 2020-10-31 15:15 /dev/disk/by-id/wwn-0x5000xxxx -> ../../sda
$ cat /etc/smartd.conf
/dev/disk/by-id/wwn-0x5000xxxx -d ignore
DEVICESCAN -a

Expected result:

Device with specified id is ignored.

Actual result:

Device (/dev/sda in this example) is not ignored.

Analysis:

This issue seems to be similar to #313.

Duplicate detection (is_duplicate_dev_idinfo) relies on populated dev_idinfo, and that is done in ATADeviceScan. But "-d ignore" bypasses any scanning altogether, thus duplicate detection is unable to deduce that /dev/sda and /dev/disk/by-id/wwn-0x5000xxxx are actually the same device.

There is another duplicate detection function (is_duplicate_device), but it relies on dev_names being exactly equal. I attempted to fix the issue by checking if dev_name is a symbolic link and resolving the link to actual file in such cases - seems to work correctly.

Please find attached for your consideration a patch that implements symlink resolution for device names (apply with patch --input=resolve_device_symlinks.patch in source directory).

#15 fixed -d megaraid with SATA drives requires -T permissive to work somebody Alex Samorukov
Description

I have 2 DELL PERC 6/i controllers on different servers. Only difference is that first is connected to SATA drives and second - to SAS. While there is no problems at all with SAS drive, SATA is not working w/o -T permissive:

Output from controller with SAS drives:

smartctl 5.39 2009-09-22 r2922M [x86_64-unknown-linux-gnu] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

Creating /dev/megaraid_sas_ioctl_node = 17 Got MegaRAID inquiry.. FUJITSU MAX3073RC D206 Device: FUJITSU MAX3073RC Version: D206 Serial number: DQA3P6700JF9 Device type: disk Transport protocol: SAS Local Time is: Wed Sep 23 17:29:54 2009 EDT Device supports SMART and is Enabled Temperature Warning Disabled or Not Supported SMART Health Status: OK

Current Drive Temperature: 29 C [SKIP]

Output from controller with SATA drives: [root@var-dev smartmontools]# ./smartctl /dev/sda -d megaraid,0 -i -a smartctl 5.39 2009-09-22 r2922 [x86_64-unknown-linux-gnu] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

Creating /dev/megaraid_sas_ioctl_node = 17 Got MegaRAID inquiry.. ATA WDC WD5000AACS-01B01 /dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid' to 'sat'

START OF INFORMATION SECTION

Model Family: Western Digital Caviar Green family Device Model: WDC WD5000AACS-00ZUB0 Serial Number: WD-WCASU7381205 Firmware Version: 01.01B01 User Capacity: 500,107,862,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Wed Sep 23 14:31:46 2009 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled

Rejecting SMART/ATA command to controller Rejecting SMART/ATA command to controller Error SMART Status command failed Please get assistance from http://smartmontools.sourceforge.net/ A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

Trying -T permissive, and, bingo, it works!

smartctl 5.39 2009-09-22 r2922 [x86_64-unknown-linux-gnu] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

Creating /dev/megaraid_sas_ioctl_node = 17 Got MegaRAID inquiry.. ATA WDC WD5000AACS-01B01 /dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid' to 'sat'

START OF INFORMATION SECTION

Model Family: Western Digital Caviar Green family Device Model: WDC WD5000AACS-00ZUB0 Serial Number: WD-WCASU7381205 Firmware Version: 01.01B01 User Capacity: 500,107,862,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Wed Sep 23 14:32:31 2009 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled

Rejecting SMART/ATA command to controller Rejecting SMART/ATA command to controller Error SMART Status command failed Please get assistance from http://smartmontools.sourceforge.net/

START OF READ SMART DATA SECTION

SMART overall-health self-assessment test result: PASSED

General SMART Values: Offline data collection status: (0x84) Offline data collection activity

was suspended by an interrupting command from host. Auto Offline Data Collection: Enabled.

Self-test execution status: ( 0) The previous self-test routine completed

without error or no self-test has ever been run.

[SKIP]

#734 fixed -d megaraid,N is not implemented, FreeBSD 10.3 w/ LSI MegaRAID 9271-8i SATA/SAS and mrsas (4) driver Alex Samorukov Andrii Stesin
Description

FreeBSD 10.3 system with LSI MegaRAID 9271-8i SATA/SAS RAID controller.

Recommended (and supported) driver for this newer controller is mrsas (4) (and old mfi (4) driver is neither supported by LSI nor actively developed, it supports new controllers in some obsolete ineffective way).

mrsas (4) gives virtual drives to the OS as devices /dev/daXX although I found that /dev/passX devices are also created (/dev/daN has corresponding /dev/passN) in case it matters.

I have smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)

I want to get S.M.A.R.T. status of an SSD which MegaRAID-assigned device ID is 12, and it is hidden under /dev/da0 virtual drive.

Now what I get:

[root@chort /]# smartctl -a /dev/da0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               LSI
Product:              MR9271-8i
Revision:             3.46
User Capacity:        199,481,098,240 bytes [199 GB]
Logical block size:   512 bytes
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
[root@chort /]# 
[root@chort /]# smartctl -a /dev/pass0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               LSI
Product:              MR9271-8i
Revision:             3.46
User Capacity:        199,481,098,240 bytes [199 GB]
Logical block size:   512 bytes
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
[root@chort /]# 
[root@chort /]# smartctl -a -d megaraid,12 /dev/da0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/da0: Unknown device type 'megaraid,12'
=======> VALID ARGUMENTS ARE: ata, scsi, nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, 3ware,N, hpt,L/M/N, cciss,N, areca,N/E, atacam, auto, test <=======

Use smartctl -h to get a usage summary

[root@chort /]#

Can anything be done about this? I badly need to monitor S.M.A.R.T. status of my SAS/SATA drives under the MegaRAID...

Thanks in advance! WBR, Andrii

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.