sleinen / diskonade

When your disks are lemons...
GNU Affero General Public License v3.0
0 stars 3 forks source link

Use of uninitialized value in string eq at ./bdsm-info line XXX #37

Closed valerytschopp closed 5 years ago

valerytschopp commented 6 years ago

I tried with the last version of the script, but it still throws lots of Use of uninitialized value in string eq at ./bdsm-info line XXX on the host zhdk0032:

root@zhdk0032.zhdk.cloud /usr/local/sbin ; ./bdsm-info
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Use of uninitialized value in string eq at ./bdsm-info line 460.
Create a ticket by sending a mail along these lines:

------------------------------ SNIP ------------------------------
To: <SUPER-SECRET-TICKET-SYSTEM-ADDRESS@EXAMPLE.COM>
Use of uninitialized value in printf at ./bdsm-info line 563.
Subject: zhdk0032  (sdm) disk errors

Server serial number:  S-14.03.351
Use of uninitialized value in printf at ./bdsm-info line 567.
Disk serial number:    
Use of uninitialized value in printf at ./bdsm-info line 570.
WWN:                   
Target:                8:0:8:0
OSD Type:              Filestore
Mounted on:            /var/lib/ceph/osd/ceph-159 (/dev/sdm1)

From /var/log/kern.log:

  Nov  5 07:57:52 zhdk0032 kernel: [46373811.438013] sd 8:0:8:0: [sdm] tag#1 CDB: Read(16) 88 00 00 00 00 02 df 51 6a 40 00 00 04 00 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437951] sd 8:0:8:0: [sdm] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437953] sd 8:0:8:0: [sdm] tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437956] sd 8:0:8:0: [sdm] tag#4 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437958] sd 8:0:8:0: [sdm] tag#4 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437959] sd 8:0:8:0: [sdm] tag#2 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437961] sd 8:0:8:0: [sdm] tag#2 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437964] sd 8:0:8:0: [sdm] tag#2 CDB: Read(16) 88 00 00 00 00 02 df 51 6a 40 00 00 04 00 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437965] sd 8:0:8:0: [sdm] tag#4 CDB: Read(16) 88 00 00 00 00 03 76 8d 6b 00 00 00 00 08 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437967] blk_update_request: I/O error, dev sdm, sector 14873881344
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437970] sd 8:0:8:0: [sdm] tag#3 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437975] sd 8:0:8:0: [sdm] tag#3 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437983] sd 8:0:8:0: [sdm] tag#3 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437988] sd 8:0:8:0: [sdm] tag#3 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.437999] blk_update_request: I/O error, dev sdm, sector 7814741256
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.479824] blk_update_request: I/O error, dev sdm, sector 12336589376
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.487584] sd 8:0:8:0: [sdm] tag#5 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.487587] sd 8:0:8:0: [sdm] tag#5 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.487589] sd 8:0:8:0: [sdm] tag#5 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.487591] sd 8:0:8:0: [sdm] tag#5 CDB: Write(16) 8a 00 00 00 00 00 00 00 08 90 00 00 00 10 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.487593] blk_update_request: I/O error, dev sdm, sector 2192
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494561] sd 8:0:8:0: [sdm] tag#6 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494563] sd 8:0:8:0: [sdm] tag#6 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494567] sd 8:0:8:0: [sdm] tag#6 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494571] sd 8:0:8:0: [sdm] tag#6 CDB: Write(16) 8a 00 00 00 00 00 08 92 1f 60 00 00 00 10 00 00
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494572] blk_update_request: I/O error, dev sdm, sector 143794016
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494658] sd 8:0:8:0: [sdm] tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494665] sd 8:0:8:0: [sdm] tag#4 Sense Key : Not Ready [current] 
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494667] sd 8:0:8:0: [sdm] tag#4 Add. Sense: Logical unit not ready, cause not reportable
  Nov  5 07:57:56 zhdk0032 kernel: [46373815.494670] sd 8:0:8:0: [sdm] tag#4 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00
...20 lines omitted
------------------------------ SNIP ------------------------------

Now surf to

https://wiki.smap.switch.ch/topic/switchcloud/trouble_log?do=edit&rev=

 and write something like:

Use of uninitialized value in printf at ./bdsm-info line 645.
====== Nov  5 07:57:56 zhdk0032  (sdm) disk errors ======

[[https://ticket.switch.ch/rt/Ticket/Display.html?id=XXX|#XXX]]

root@zhdk0032.zhdk.cloud /usr/local/sbin ;