On 02/03/17 18:03, Stefan G. Weichinger wrote: > Am 2017-03-01 um 23:21 schrieb Bill Kenworthy: > >> Is there actually a disk on that interface? - I have a system where one >> sdx allocated to an unused sata port with nothing attached - it returns >> similar information to yours above - check the other entries. > > I checked them, sure. > to me it seems that there are 2 sg-devices created per port or so. > > One as ICP-device: does not tell me serials or so, but has an sd-device > mapped to it according to sg_map > > # smartctl -d auto -i /dev/sg2 > smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local > build) > Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org > > === START OF INFORMATION SECTION === > Vendor: ICP > Product: SAS1 > Revision: V1.0 > User Capacity: 73,284,976,640 bytes [73.2 GB] > Logical block size: 512 bytes > scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 > scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 >>> 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. > > --- > > and the higher ones tell me stuff via smartctl, but I don't know exactly > which sd-device they are mapped to: > > > # smartctl -d auto -i /dev/sg11 > smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local > build) > Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org > > === START OF INFORMATION SECTION === > Vendor: SEAGATE > Product: ST373455SS > Revision: 0002 > User Capacity: 73,407,868,928 bytes [73.4 GB] > Logical block size: 512 bytes > Rotation Rate: 15015 rpm > Logical Unit id: 0x5000c50002448407 > Serial number: 3LQ11JWH00009748U10J > Device type: disk > Transport protocol: SAS (SPL-3) > Local Time is: Thu Mar 2 11:06:33 2017 CET > SMART support is: Available - device has SMART capability. > SMART support is: Enabled > Temperature Warning: Enabled > > --- > > > btw: the serial in this query is a valid one. > This is what I am looking for. > >
try lshw to get that info: *-scsi:0 physical id: 1 logical name: scsi0 capabilities: emulated *-disk description: ATA Disk product: INTEL SSDSC2CW12 physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: 400i serial: CVCV247001A3120BGN size: 111GiB (120GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 sectorsize=512 signature=11afac57 *-volume:0 description: Linux filesystem partition vendor: Linux physical id: 1 bus info: scsi@0:0.0.0,1 logical name: /dev/sda1 version: 1.0 serial: 8ad3b35a-8ecf-4b8b-8098-c3c9518a3307 size: 128MiB capacity: 128MiB capabilities: primary extended_attributes ext2 initialized configuration: filesystem=ext2 modified=2017-03-02 19:49:54 state=clean *-volume:1 description: Linux swap volume physical id: 2 bus info: scsi@0:0.0.0,2 logical name: /dev/sda2 version: 1 serial: 9d440711-04e3-46f4-9ec5-0495daed6896 size: 23GiB capacity: 23GiB capabilities: primary nofs swap initialized configuration: filesystem=swap pagesize=4096 *-volume:2 description: EXT4 volume vendor: Linux physical id: 3 bus info: scsi@0:0.0.0,3 logical name: /dev/sda3 logical name: / version: 1.0 serial: bc719d32-cecc-47f1-9826-a8b12827ee3b size: 87GiB capacity: 87GiB capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized configuration: created=2013-07-02 06:41:32 filesystem=ext4 lastmountpoint=/ modified=2016-12-09 21:09:25 mount.fstype=ext4 mount.options=rw,noatime,discard,data=ordered mounted=2017-02-11 11:17:20 state=mounted