1 |
On 02/03/17 18:03, Stefan G. Weichinger wrote: |
2 |
> Am 2017-03-01 um 23:21 schrieb Bill Kenworthy: |
3 |
> |
4 |
>> Is there actually a disk on that interface? - I have a system where one |
5 |
>> sdx allocated to an unused sata port with nothing attached - it returns |
6 |
>> similar information to yours above - check the other entries. |
7 |
> |
8 |
> I checked them, sure. |
9 |
> to me it seems that there are 2 sg-devices created per port or so. |
10 |
> |
11 |
> One as ICP-device: does not tell me serials or so, but has an sd-device |
12 |
> mapped to it according to sg_map |
13 |
> |
14 |
> # smartctl -d auto -i /dev/sg2 |
15 |
> smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local |
16 |
> build) |
17 |
> Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
18 |
> |
19 |
> === START OF INFORMATION SECTION === |
20 |
> Vendor: ICP |
21 |
> Product: SAS1 |
22 |
> Revision: V1.0 |
23 |
> User Capacity: 73,284,976,640 bytes [73.2 GB] |
24 |
> Logical block size: 512 bytes |
25 |
> scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 |
26 |
> scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 |
27 |
>>> Terminate command early due to bad response to IEC mode page |
28 |
> A mandatory SMART command failed: exiting. To continue, add one or more |
29 |
> '-T permissive' options. |
30 |
> |
31 |
> --- |
32 |
> |
33 |
> and the higher ones tell me stuff via smartctl, but I don't know exactly |
34 |
> which sd-device they are mapped to: |
35 |
> |
36 |
> |
37 |
> # smartctl -d auto -i /dev/sg11 |
38 |
> smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local |
39 |
> build) |
40 |
> Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org |
41 |
> |
42 |
> === START OF INFORMATION SECTION === |
43 |
> Vendor: SEAGATE |
44 |
> Product: ST373455SS |
45 |
> Revision: 0002 |
46 |
> User Capacity: 73,407,868,928 bytes [73.4 GB] |
47 |
> Logical block size: 512 bytes |
48 |
> Rotation Rate: 15015 rpm |
49 |
> Logical Unit id: 0x5000c50002448407 |
50 |
> Serial number: 3LQ11JWH00009748U10J |
51 |
> Device type: disk |
52 |
> Transport protocol: SAS (SPL-3) |
53 |
> Local Time is: Thu Mar 2 11:06:33 2017 CET |
54 |
> SMART support is: Available - device has SMART capability. |
55 |
> SMART support is: Enabled |
56 |
> Temperature Warning: Enabled |
57 |
> |
58 |
> --- |
59 |
> |
60 |
> |
61 |
> btw: the serial in this query is a valid one. |
62 |
> This is what I am looking for. |
63 |
> |
64 |
> |
65 |
|
66 |
try lshw to get that info: |
67 |
|
68 |
*-scsi:0 |
69 |
physical id: 1 |
70 |
logical name: scsi0 |
71 |
capabilities: emulated |
72 |
*-disk |
73 |
description: ATA Disk |
74 |
product: INTEL SSDSC2CW12 |
75 |
physical id: 0.0.0 |
76 |
bus info: scsi@0:0.0.0 |
77 |
logical name: /dev/sda |
78 |
version: 400i |
79 |
serial: CVCV247001A3120BGN |
80 |
size: 111GiB (120GB) |
81 |
capabilities: partitioned partitioned:dos |
82 |
configuration: ansiversion=5 sectorsize=512 signature=11afac57 |
83 |
*-volume:0 |
84 |
description: Linux filesystem partition |
85 |
vendor: Linux |
86 |
physical id: 1 |
87 |
bus info: scsi@0:0.0.0,1 |
88 |
logical name: /dev/sda1 |
89 |
version: 1.0 |
90 |
serial: 8ad3b35a-8ecf-4b8b-8098-c3c9518a3307 |
91 |
size: 128MiB |
92 |
capacity: 128MiB |
93 |
capabilities: primary extended_attributes ext2 initialized |
94 |
configuration: filesystem=ext2 modified=2017-03-02 |
95 |
19:49:54 state=clean |
96 |
*-volume:1 |
97 |
description: Linux swap volume |
98 |
physical id: 2 |
99 |
bus info: scsi@0:0.0.0,2 |
100 |
logical name: /dev/sda2 |
101 |
version: 1 |
102 |
serial: 9d440711-04e3-46f4-9ec5-0495daed6896 |
103 |
size: 23GiB |
104 |
capacity: 23GiB |
105 |
capabilities: primary nofs swap initialized |
106 |
configuration: filesystem=swap pagesize=4096 |
107 |
*-volume:2 |
108 |
description: EXT4 volume |
109 |
vendor: Linux |
110 |
physical id: 3 |
111 |
bus info: scsi@0:0.0.0,3 |
112 |
logical name: /dev/sda3 |
113 |
logical name: / |
114 |
version: 1.0 |
115 |
serial: bc719d32-cecc-47f1-9826-a8b12827ee3b |
116 |
size: 87GiB |
117 |
capacity: 87GiB |
118 |
capabilities: primary journaled extended_attributes |
119 |
large_files huge_files dir_nlink recover extents ext4 ext2 initialized |
120 |
configuration: created=2013-07-02 06:41:32 |
121 |
filesystem=ext4 lastmountpoint=/ modified=2016-12-09 21:09:25 |
122 |
mount.fstype=ext4 mount.options=rw,noatime,discard,data=ordered |
123 |
mounted=2017-02-11 11:17:20 state=mounted |