Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Server Development (http://www.linux-archive.org/ubuntu-server-development/)
-   -   3w-9xxx: scsi0: ERROR (http://www.linux-archive.org/ubuntu-server-development/283503-3w-9xxx-scsi0-error.html)

Kaushal Shriyan 11-20-2009 06:00 AM

3w-9xxx: scsi0: ERROR
 
Hi

I have the below information in the syslog.

Nov 19 22:55:22 host0104 kernel: [19938.001554] program smartctl is
using a deprecated SCSI ioctl, please convert it to SG_IO
Nov 19 22:55:22 host0104 kernel: [19938.002814] 3w-9xxx: scsi0: ERROR:
(0x03:0x0101): Invalid command opcode:opcode=0x80.

Any ideas to fix the above issue?

Thanks,

Kaushal

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Andy Smith 11-20-2009 10:32 AM

3w-9xxx: scsi0: ERROR
 
Hi Kaushal,

On Fri, Nov 20, 2009 at 12:30:27PM +0530, Kaushal Shriyan wrote:
> I have the below information in the syslog.
>
> Nov 19 22:55:22 host0104 kernel: [19938.001554] program smartctl is
> using a deprecated SCSI ioctl, please convert it to SG_IO
> Nov 19 22:55:22 host0104 kernel: [19938.002814] 3w-9xxx: scsi0: ERROR:
> (0x03:0x0101): Invalid command opcode:opcode=0x80.
>
> Any ideas to fix the above issue?

Do you know that it's an actual problem? I believe I have seen this
before when SMART commands are sent to the wrong device.

Do you have something like smartctld or hddtemp installed or did you
simply run smartctl?

On my machines with 3ware 9xxx cards, the way to call smartctl is:

sudo smartctl -d 3ware,0 -a /dev/twa0

where the number after the comma is the disk number, e.g. 0 is the
first disk.

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting

"I am the permanent milk monitor of all hobbies!" -- Simon Quinlank
--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Kaushal Shriyan 11-20-2009 11:29 AM

3w-9xxx: scsi0: ERROR
 
On Fri, Nov 20, 2009 at 5:02 PM, Andy Smith <andy@strugglers.net> wrote:
> Hi Kaushal,
>
> On Fri, Nov 20, 2009 at 12:30:27PM +0530, Kaushal Shriyan wrote:
>> I have the below information in the syslog.
>>
>> Nov 19 22:55:22 host0104 kernel: [19938.001554] program smartctl is
>> using a deprecated SCSI ioctl, please convert it to SG_IO
>> Nov 19 22:55:22 host0104 kernel: [19938.002814] 3w-9xxx: scsi0: ERROR:
>> (0x03:0x0101): Invalid command opcode:opcode=0x80.
>>
>> Any ideas to fix the above issue?
>
> Do you know that it's an actual problem? *I believe I have seen this
> before when SMART commands are sent to the wrong device.
>
> Do you have something like smartctld or hddtemp installed or did you
> simply run smartctl?
>
> On my machines with 3ware 9xxx cards, the way to call smartctl is:
>
> sudo smartctl -d 3ware,0 -a /dev/twa0
>
> where the number after the comma is the disk number, e.g. 0 is the
> first disk.

Hi Andy,

I did that too already. The issue is that the server is very much
unstable and it freezes.

Below are the details of the SMART Test

# smartctl -i -d 3ware,0 /dev/twa0
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6
Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar RE Serial ATA series
Device Model: WDC WD4000YR-01PLB0
Serial Number: WD-WMAMY1085515
Firmware Version: 01.06A01
User Capacity: 400,088,457,216 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 published, ANSI INCITS 397-2005
Local Time is: Thu Nov 19 23:36:10 2009 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

# smartctl -l error -d 3ware,0 /dev/twa0
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6
Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
No Errors Logged

# smartctl -A -d 3ware,0 /dev/twa0
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6
Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE
UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 200 200 051 Pre-fail
Always - 0
3 Spin_Up_Time 0x0007 247 227 021 Pre-fail
Always - 4691
4 Start_Stop_Count 0x0032 100 100 040 Old_age
Always - 55
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail
Always - 0
7 Seek_Error_Rate 0x000b 200 200 051 Pre-fail
Always - 0
9 Power_On_Hours 0x0032 051 051 000 Old_age
Always - 36479
10 Spin_Retry_Count 0x0013 100 253 051 Pre-fail
Always - 0
11 Calibration_Retry_Count 0x0013 100 253 051 Pre-fail
Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age
Always - 55
194 Temperature_Celsius 0x0022 137 118 000 Old_age
Always - 15
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age
Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age
Always - 0
198 Offline_Uncorrectable 0x0012 200 200 000 Old_age
Always - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age
Always - 0
200 Multi_Zone_Error_Rate 0x0009 200 200 051 Pre-fail
Offline - 0

# smartctl -Hc -d 3ware,0 /dev/twa0
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6
Bruce Allen
Home page is 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.
Total time to complete Offline
data collection: (10530) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 152) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.

smartctl -l selftest -d 3ware,0 /dev/twa0
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6
Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining
LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00%
2 -

Please suggest/guide.

Thanks,

Kaushal

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Ante Karamatić 11-20-2009 11:47 AM

3w-9xxx: scsi0: ERROR
 
Kaushal Shriyan wrote:

> I did that too already. The issue is that the server is very much
> unstable and it freezes.

Ignore those errors. Those errors happen when you run smartctl on
/dev/sdX, instead on /dev/tw[e|a]X.

If server is unstable, check your memory; it's the most common source of
random lock ups and crashes.

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Ante Karamatić 11-20-2009 11:49 AM

3w-9xxx: scsi0: ERROR
 
Ante Karamatić wrote:

> Ignore those errors. Those errors happen when you run smartctl on
^^^^^^^^
or old tw_cli or old 3dm.


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Kaushal Shriyan 11-20-2009 04:08 PM

3w-9xxx: scsi0: ERROR
 
2009/11/20 Ante Karamatić <ivoks@grad.hr>:
> Kaushal Shriyan wrote:
>
>> I did that too already. The issue is that the server is very much
>> unstable and it freezes.
>
> Ignore those errors. Those errors happen when you run smartctl on
> /dev/sdX, instead on /dev/tw[e|a]X.
>
> If server is unstable, check your memory; it's the most common source of
> random lock ups and crashes.

Hi Ante,

So do i need to run memtest86 available on Ubuntu Server Grub Splash
Screen to nail down the issue ?

Please guide.

Thanks,

Kaushal

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


All times are GMT. The time now is 10:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.