Disk numbers and device names

Currently reading
Disk numbers and device names

153
24
NAS
DS918+, DS916+, DS214+, DS211j
Hi!

I'm querying my Synology metrics using SNMP. Some metrics do return disk numbers like disk1, disk2 and more others return sda, sdb, sdc, sdd, sdq and even sdr.

Now, I'm trying to find out which disk number corresponds to which device name. Is there any Linux command that will give me those associations? Command df does not, just checked.

Thx,
Michael
 

jeyare

Subscriber
2,486
833
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
in Synology is valid this setup:
- physical Disk1 to Disk-n ... from left bay to right, or from upper bay to lowest
- then use CLI command: lsblk --nodeps -no name,serial,type,tran
you will see output like this:
sda 0000000012400917BA30 disk sata
sdb 0000000012400917BA96 disk sata
sr0 4B583242334C453233353320 rom usb

or command: inxi -Dxx
then you will see:
Drives: HDD Total Size: 810.2GB (42.9% used)
ID-1: /dev/sdc model: ST3160827AS size: 160.0GB serial: 5MT2HMH6
ID-2: /dev/sdb model: WDC_WD3200JD size: 320.1GB serial: WD-WCAMR1302926
ID-3: /dev/sda model: ST380817AS size: 80.0GB serial: 4MR2EWBE
ID-4: /dev/sdd model: ST3250824AS size: 250.1GB serial: 9ND08GKX
last - you need mapping your MBI.
 
153
24
NAS
DS918+, DS916+, DS214+, DS211j
Hi,

just found some time to check your suggestions, however, none of those commands exist on my NAS. I tried using lsblk or inxi within SSH, even with sudo, to no avail: command not found.

Maybe I missed something?

Michael
 

jeyare

Subscriber
2,486
833
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
you need to install Optware to your NAS:
1. find right bootstrap script by used CPU in yourNAS ... name contains “bootstrap”
here
If you don’t know what CPU is in your NAS, here is a help

2. download bootstrap script:
wget link-to-the-script ....include http://

3. make the scrip executable:
chmod +x name-of-the-script

4. run the script:
sh name-of-the-script

5. for clean installation, remove the script
rm name-of-the-script

6. Restart your NAS

7. update or upgrade your packages:
/opt/bin/ipkg update
/opt/bin/ipkg upgrade

when your ipkg failed to start, delete (uncomment) # from these rows in .. /root/.profil
#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
#export PATH


then you can install your tools by:

ipkg install name-of-the-tools

done
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Thanks for clarification. Can you change the location of the shared folder that stores the VM to the other...
Replies
3
Views
306
I found a solution, i created 3 SSD cache for 3 volumes, its working now :) Thank you sir!
Replies
6
Views
516
  • Question
Add the new, larger drive to the empty slot... Create a new pool with that drive. When complete, go to...
Replies
1
Views
929
Thanks Telos! That makes sense. And I can somewhat see Synology’s stand on this as I’m sure they field a...
Replies
6
Views
1,177
From my experiences breaking the HA and then upgrading both units separately works best. The bottom line...
Replies
1
Views
1,016
During the process the Synology migration tool will tell you if the data can be migrated or not. It is a...
Replies
2
Views
1,041

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top