Disk numbers and device names

198
37
NAS
DS920+, DS918+, DS214+, DS211j
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
  2. iOS
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
 
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.
 
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
 
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

And your Client should from now take always incremental backups using Hyper Backup.
Replies
2
Views
709
The default DSM ports are HTTP 5000 and HTTPS 5001. I was meaning you to replace NAS_LAN_IP with your...
Replies
5
Views
463
Just say "NO". These unsupported articles have been around for years, and they are always plagued by...
Replies
19
Views
1,941

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Back
Top