Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sg_map etc
Date: Thu, 02 Mar 2017 10:03:58
Message-Id: 90d02892-99f0-58b7-a8bf-e0f40d89cf6f@xunil.at
In Reply to: Re: [gentoo-user] sg_map etc by Bill Kenworthy
1 Am 2017-03-01 um 23:21 schrieb Bill Kenworthy:
2
3 > Is there actually a disk on that interface? - I have a system where one
4 > sdx allocated to an unused sata port with nothing attached - it returns
5 > similar information to yours above - check the other entries.
6
7 I checked them, sure.
8 to me it seems that there are 2 sg-devices created per port or so.
9
10 One as ICP-device: does not tell me serials or so, but has an sd-device
11 mapped to it according to sg_map
12
13 # smartctl -d auto -i /dev/sg2
14 smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
15 build)
16 Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
17
18 === START OF INFORMATION SECTION ===
19 Vendor: ICP
20 Product: SAS1
21 Revision: V1.0
22 User Capacity: 73,284,976,640 bytes [73.2 GB]
23 Logical block size: 512 bytes
24 scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
25 scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
26 >> Terminate command early due to bad response to IEC mode page
27 A mandatory SMART command failed: exiting. To continue, add one or more
28 '-T permissive' options.
29
30 ---
31
32 and the higher ones tell me stuff via smartctl, but I don't know exactly
33 which sd-device they are mapped to:
34
35
36 # smartctl -d auto -i /dev/sg11
37 smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
38 build)
39 Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
40
41 === START OF INFORMATION SECTION ===
42 Vendor: SEAGATE
43 Product: ST373455SS
44 Revision: 0002
45 User Capacity: 73,407,868,928 bytes [73.4 GB]
46 Logical block size: 512 bytes
47 Rotation Rate: 15015 rpm
48 Logical Unit id: 0x5000c50002448407
49 Serial number: 3LQ11JWH00009748U10J
50 Device type: disk
51 Transport protocol: SAS (SPL-3)
52 Local Time is: Thu Mar 2 11:06:33 2017 CET
53 SMART support is: Available - device has SMART capability.
54 SMART support is: Enabled
55 Temperature Warning: Enabled
56
57 ---
58
59
60 btw: the serial in this query is a valid one.
61 This is what I am looking for.

Replies

Subject Author
Re: [gentoo-user] sg_map etc Bill Kenworthy <billk@×××××××××.au>