[GH-ISSUE #9] I have 5 drives installed but only 2 of them shown. #2

Closed
opened 2026-03-07 19:21:57 +03:00 by kerem · 14 comments
Owner

Originally created by @dr-incredible on GitHub (Nov 16, 2024).
Original GitHub issue: https://github.com/007revad/Synology_SMART_info/issues/9

As the title, any idea why that happens?

Originally created by @dr-incredible on GitHub (Nov 16, 2024). Original GitHub issue: https://github.com/007revad/Synology_SMART_info/issues/9 As the title, any idea why that happens?
kerem closed this issue 2026-03-07 19:21:58 +03:00
Author
Owner

@dr-incredible commented on GitHub (Nov 16, 2024):

I only run extended SMART for those two, is it a prerequest to have the driver run extended smart?

<!-- gh-comment-id:2480754399 --> @dr-incredible commented on GitHub (Nov 16, 2024): I only run extended SMART for those two, is it a prerequest to have the driver run extended smart?
Author
Owner

@007revad commented on GitHub (Nov 16, 2024):

Which model Synology do you have?

Are all 5 drives in the NAS are 3 of them in an expansion unit?

Can you provide a screenshot of the script output?

<!-- gh-comment-id:2480840267 --> @007revad commented on GitHub (Nov 16, 2024): Which model Synology do you have? Are all 5 drives in the NAS are 3 of them in an expansion unit? Can you provide a screenshot of the script output?
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

I am using DS1019+, and all drives are in NAS. The following is the screenshot from both the terminal and the DSM (Please ignore the USB drive, that's something I attached to DS1019)
Screenshot 2024-11-16 at 5 39 16 PM
Screenshot 2024-11-16 at 5 39 56 PM

<!-- gh-comment-id:2480884387 --> @dr-incredible commented on GitHub (Nov 17, 2024): I am using DS1019+, and all drives are in NAS. The following is the screenshot from both the terminal and the DSM (Please ignore the USB drive, that's something I attached to DS1019) <img width="607" alt="Screenshot 2024-11-16 at 5 39 16 PM" src="https://github.com/user-attachments/assets/2bb402e2-aaf6-44ec-abed-ab1ef195392a"> <img width="997" alt="Screenshot 2024-11-16 at 5 39 56 PM" src="https://github.com/user-attachments/assets/e9208d78-9b07-4e14-a0d6-6a44ec2bdaa3">
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

What does this command return:

for drive in /sys/block/sd*; do (echo "$drive"; smartctl -i -d sat /dev/$(basename $drive)); done

EDIT I changed sata* to sd* in the command to suit the DS1019+.

<!-- gh-comment-id:2480896143 --> @007revad commented on GitHub (Nov 17, 2024): What does this command return: ``` for drive in /sys/block/sd*; do (echo "$drive"; smartctl -i -d sat /dev/$(basename $drive)); done ``` **EDIT** I changed `sata*` to `sd*` in the command to suit the DS1019+.
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

This shows all disks! Here are the detailed output (I remove the serial Number and Device Id):

/sys/block/sda
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Exos X24
Device Model:     ST24000NM002H-3KS133
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SE04
User Capacity:    24,000,277,250,048 bytes [24.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x1fe0) (minor revision not indicated)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:14 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

/sys/block/sdb
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Exos X18
Device Model:     ST18000NM000J-2TV103
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SN02
User Capacity:    18,000,207,937,536 bytes [18.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x0fe0) (minor revision not indicated)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:14 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

/sys/block/sdc
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Exos X24
Device Model:     ST24000NM002H-3KS133
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SE04
User Capacity:    24,000,277,250,048 bytes [24.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x1fe0) (minor revision not indicated)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:14 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

/sys/block/sdd
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Exos X18
Device Model:     ST18000NM000J-2TV103
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SN02
User Capacity:    18,000,207,937,536 bytes [18.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x0fe0) (minor revision not indicated)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:14 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

/sys/block/sde
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Exos X14
Device Model:     ST12000NM0008-2H3101
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SN02
User Capacity:    12,000,138,625,024 bytes [12.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x0fe0), ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:14 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

/sys/block/sdq
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Exos X14
Device Model:     ST12000NM0008-2H3101
Serial Number:   XXXXXX
LU WWN Device Id: XXXXXXX
Firmware Version: SN02
User Capacity:    12,000,138,625,024 bytes [12.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x0fe0), ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov 16 18:56:25 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

<!-- gh-comment-id:2480902476 --> @dr-incredible commented on GitHub (Nov 17, 2024): This shows all disks! Here are the detailed output (I remove the serial Number and Device Id): ``` /sys/block/sda smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Seagate Exos X24 Device Model: ST24000NM002H-3KS133 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SE04 User Capacity: 24,000,277,250,048 bytes [24.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x1fe0) (minor revision not indicated) SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:14 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled /sys/block/sdb smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Exos X18 Device Model: ST18000NM000J-2TV103 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SN02 User Capacity: 18,000,207,937,536 bytes [18.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x0fe0) (minor revision not indicated) SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:14 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled /sys/block/sdc smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Seagate Exos X24 Device Model: ST24000NM002H-3KS133 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SE04 User Capacity: 24,000,277,250,048 bytes [24.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x1fe0) (minor revision not indicated) SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:14 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled /sys/block/sdd smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Exos X18 Device Model: ST18000NM000J-2TV103 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SN02 User Capacity: 18,000,207,937,536 bytes [18.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x0fe0) (minor revision not indicated) SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:14 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled /sys/block/sde smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Seagate Exos X14 Device Model: ST12000NM0008-2H3101 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SN02 User Capacity: 12,000,138,625,024 bytes [12.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x0fe0), ACS-4 T13/BSR INCITS 529 revision 5 SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:14 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled /sys/block/sdq smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-4.4.302+] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Seagate Exos X14 Device Model: ST12000NM0008-2H3101 Serial Number: XXXXXX LU WWN Device Id: XXXXXXX Firmware Version: SN02 User Capacity: 12,000,138,625,024 bytes [12.0 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: Unknown(0x0fe0), ACS-4 T13/BSR INCITS 529 revision 5 SATA Version is: SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 16 18:56:25 2024 PST SMART support is: Available - device has SMART capability. SMART support is: Enabled ```
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

How should I make the change or would you mind make a new commit?

<!-- gh-comment-id:2480902583 --> @dr-incredible commented on GitHub (Nov 17, 2024): How should I make the change or would you mind make a new commit?
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

I'll make a new commit once I know where in the script the first 3 drives are going missing.

Did you change the USB drive? It was showing as DB987654321F before.

24TB	sda  <-- internal
18TB	sdb  <-- internal
24TB	sdc  <-- internal
18TB	sdd  <-- internal
12TB	sde  <-- internal
12TB	sdq  <-- USB

I was going to use the serial number to confirm which 18TB was missing when you ran the script. Can you confirm that the missing 18TB drive is drive 2?

<!-- gh-comment-id:2480906349 --> @007revad commented on GitHub (Nov 17, 2024): I'll make a new commit once I know where in the script the first 3 drives are going missing. Did you change the USB drive? It was showing as DB987654321F before. ``` 24TB sda <-- internal 18TB sdb <-- internal 24TB sdc <-- internal 18TB sdd <-- internal 12TB sde <-- internal 12TB sdq <-- USB ``` I was going to use the serial number to confirm which 18TB was missing when you ran the script. Can you confirm that the missing 18TB drive is drive 2?
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

What do these commands return?

synodisk --get_location_form /dev/sda
synodisk --get_location_form /dev/sdb
synodisk --get_location_form /dev/sdc
synodisk --get_location_form /dev/sdd
<!-- gh-comment-id:2480912656 --> @007revad commented on GitHub (Nov 17, 2024): What do these commands return? ``` synodisk --get_location_form /dev/sda synodisk --get_location_form /dev/sdb synodisk --get_location_form /dev/sdc synodisk --get_location_form /dev/sdd ```
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

Can you run this test script and tell me what it outputs:
https://github.com/007revad/Synology_SMART_info/blob/test/syno_smart_info_debug.sh

<!-- gh-comment-id:2480913939 --> @007revad commented on GitHub (Nov 17, 2024): Can you run this test script and tell me what it outputs: https://github.com/007revad/Synology_SMART_info/blob/test/syno_smart_info_debug.sh
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

Can you confirm that the missing 18TB drive is drive 2?

Yes, the missing drive 18T is drive 2, and I'm missing drive 1,2 and 3. (which corresponds to sda, sdb and sdc)

What do these commands return?

synodisk --get_location_form /dev/sda
synodisk --get_location_form /dev/sdb
synodisk --get_location_form /dev/sdc
synodisk --get_location_form /dev/sdd

the return results are:

Disk id: 1
Disk cnr: 1
Disk cnridx: 0
Disk Locatoin: 0-1
Convert to: /dev/sda
Disk id: 2
Disk cnr: 1
Disk cnridx: 0
Disk Locatoin: 0-2
Convert to: /dev/sdb
Disk id: 3
Disk cnr: 1
Disk cnridx: 0
Disk Locatoin: 0-3
Convert to: /dev/sdc
Disk id: 4
Disk cnr: 1
Disk cnridx: 0
Disk Locatoin: 0-4
Convert to: /dev/sdd
<!-- gh-comment-id:2481314200 --> @dr-incredible commented on GitHub (Nov 17, 2024): > Can you confirm that the missing 18TB drive is drive 2? Yes, the missing drive 18T is drive 2, and I'm missing drive 1,2 and 3. (which corresponds to sda, sdb and sdc) > What do these commands return? > > synodisk --get_location_form /dev/sda > synodisk --get_location_form /dev/sdb > synodisk --get_location_form /dev/sdc > synodisk --get_location_form /dev/sdd the return results are: ``` Disk id: 1 Disk cnr: 1 Disk cnridx: 0 Disk Locatoin: 0-1 Convert to: /dev/sda ``` ``` Disk id: 2 Disk cnr: 1 Disk cnridx: 0 Disk Locatoin: 0-2 Convert to: /dev/sdb ``` ``` Disk id: 3 Disk cnr: 1 Disk cnridx: 0 Disk Locatoin: 0-3 Convert to: /dev/sdc ``` ``` Disk id: 4 Disk cnr: 1 Disk cnridx: 0 Disk Locatoin: 0-4 Convert to: /dev/sdd ```
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

Can you run this test script and tell me what it outputs:
https://github.com/007revad/Synology_SMART_info/blob/test/syno_smart_info_debug.sh

The output is (similar to before):

Synology_SMART_info_debug v1.2.9 - by 007revad
TreasureIsland DS1019+ DSM 7.2.2-72806-1

/sys/block/sda

/sys/block/sdb

/sys/block/sdc

/sys/block/sdd
/sys/block/sdd added to 'drives' array

/sys/block/sde
/sys/block/sde added to 'drives' array

/sys/block/sdq
/sys/block/sdq added to 'drives' array

drives array contains:
sdd
sde
sdq



drive_num: Drive 4
model: ST18000NM000J-2TV103

Drive 4  ST18000NM000J-2TV103  ZR587N3S
show_health sata# style here


drive_num: Drive 5
model: ST12000NM0008-2H3101

Drive 5  ST12000NM0008-2H3101  ZL000S6G
show_health sata# style here


drive_num: USB Drive
model:

USB Drive    DB9876543213F
show_health sata# style here

Finished
<!-- gh-comment-id:2481314626 --> @dr-incredible commented on GitHub (Nov 17, 2024): > Can you run this test script and tell me what it outputs: > https://github.com/007revad/Synology_SMART_info/blob/test/syno_smart_info_debug.sh The output is (similar to before): ``` Synology_SMART_info_debug v1.2.9 - by 007revad TreasureIsland DS1019+ DSM 7.2.2-72806-1 /sys/block/sda /sys/block/sdb /sys/block/sdc /sys/block/sdd /sys/block/sdd added to 'drives' array /sys/block/sde /sys/block/sde added to 'drives' array /sys/block/sdq /sys/block/sdq added to 'drives' array drives array contains: sdd sde sdq drive_num: Drive 4 model: ST18000NM000J-2TV103 Drive 4 ST18000NM000J-2TV103 ZR587N3S show_health sata# style here drive_num: Drive 5 model: ST12000NM0008-2H3101 Drive 5 ST12000NM0008-2H3101 ZL000S6G show_health sata# style here drive_num: USB Drive model: USB Drive DB9876543213F show_health sata# style here Finished ```
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

Okay. The problem is in the not_flash_drive function.

Try this version. https://github.com/007revad/Synology_SMART_info/blob/develop/syno_smart_info.sh

<!-- gh-comment-id:2481399001 --> @007revad commented on GitHub (Nov 17, 2024): Okay. The problem is in the not_flash_drive function. Try this version. https://github.com/007revad/Synology_SMART_info/blob/develop/syno_smart_info.sh
Author
Owner

@dr-incredible commented on GitHub (Nov 17, 2024):

Great! Confirmed it's working with all drives displayed, thanks!

<!-- gh-comment-id:2481634026 --> @dr-incredible commented on GitHub (Nov 17, 2024): Great! Confirmed it's working with all drives displayed, thanks!
Author
Owner

@007revad commented on GitHub (Nov 17, 2024):

Awesome. Thanks for confirming.

<!-- gh-comment-id:2481642587 --> @007revad commented on GitHub (Nov 17, 2024): Awesome. Thanks for confirming.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_SMART_info#2
No description provided.