Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



QNAP - SSH - Comman...
 
Share:
Notifications
Clear all

[Solved] QNAP - SSH - Command to list all internal disks (qcli_storage)

1 Posts
1 Users
0 Reactions
2,341 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2741
Topic starter  

Ran into this little command the other day to list all internal disks of your QNAP (tested with QTS 4.x and 5.x) in an SSH/Terminal session.
It provides the enclosure, device name, type, size, and model.

qcli_storage -d

This will generate a list something like this:

Enclosure  Port  Sys_Name          Type      Size      Alias             Signature   Partitions  Model  
NAS_HOST   1     /dev/sdb          SSD:data  465.76 GB M.2 SATA SSD 1    QNAP FLEX   5           WDC WDS500G1B0B-00AS40
NAS_HOST   2     /dev/sda          SSD:data  465.76 GB M.2 SATA SSD 2    QNAP FLEX   5           WDC WDS500G1B0B-00AS40
NAS_HOST   3     /dev/sdh          HDD:data  3.64 TB   3.5" SATA HDD 1   QNAP FLEX   5           WDC WD40EFRX-68N32N0
NAS_HOST   4     /dev/sdg          HDD:data  3.64 TB   3.5" SATA HDD 2   QNAP FLEX   5           WDC WD40EFRX-68WT0N0
NAS_HOST   5     /dev/sdj          HDD:data  3.64 TB   3.5" SATA HDD 3   QNAP FLEX   5           WDC WD40EFRX-68N32N0
NAS_HOST   6     /dev/sdi          HDD:data  3.64 TB   3.5" SATA HDD 4   QNAP FLEX   5           WDC WD40EFRX-68WT0N0
NAS_HOST   7     /dev/sdc          HDD:data  3.64 TB   3.5" SATA HDD 5   QNAP FLEX   5           WDC WD40EFRX-68WT0N0
NAS_HOST   8     /dev/sdd          HDD:data  3.64 TB   3.5" SATA HDD 6   QNAP FLEX   5           WDC WD40EFZX-68AWUN0
NAS_HOST   9     /dev/sdf          HDD:data  3.64 TB   3.5" SATA HDD 7   QNAP FLEX   5           WDC WD40EFRX-68WT0N0
NAS_HOST   10    /dev/sde          HDD:data  3.64 TB   3.5" SATA HDD 8   QNAP FLEX   5           WDC WD40EFRX-68WT0N0

The "-h" parameter can be used to get the Help info for qcli_storage:

[~] # qcli_storage -h
Usage: qcli_storage [OPTIONS]
	-p	show overall information for storage.
	-v	show volume mount path.
	-T	performance test of disks, raid.
		[ramp_time=<ramp_time>]	run the specified workload for this amount of time before loging
		[runtime=<runtime>]	limit run time to runtime seconds
		[type=<type>]		type of I/O pattern. Accepted values are: read, randread
		[force={0|1}]		1:force to test again
	-t	performance test of volume, file system.
		[ramp_time=<ramp_time>]	run the specified workload for this amount of time before loging
		[runtime=<runtime>]	limit run time to runtime seconds
		[type=<type>]		type of I/O pattern. Accepted values are: read, randread, FS support values: write, randwrite
		[size=<size>]		total size for this job( only for file system). Ex. 128m
		[force={0|1}]		1:force to test again
	-F	performance test of cache volume.
		[ramp_time=<ramp_time>]	run the specified workload for this amount of time before loging
		[runtime=<runtime>]	limit run time to runtime seconds
		[type=<type>]		type of I/O pattern. Accepted values are: read, randread, write, randwrite
		[force={0|1}]		1:force to test again
	-f	sequential and random read/write performance test info of disks.
		[do_test={0|1}]		1:do the performance test
	-d	show disk information.
	-s	show disk speed information.
	-o	show Virtual JBOD host info overview.
	-r	show Virtual JBOD remote info overview.

Hope this is helpful for a fellow QNAP user 😊 


   
ReplyQuote
Share: