Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DISKINFO(8)		     System Manager's Manual		     DISKINFO(8)

NAME
     diskinfo -- get information about disk device

SYNOPSIS
     diskinfo [-ciStvw] disk ...
     diskinfo [-l] -p disk ...
     diskinfo [-l] -s disk ...

DESCRIPTION
     The  diskinfo  utility  prints out information about a disk device, and op-
     tionally runs a naive performance test on the device.

     The following options are available:

     -c  Perform a simple measurement of the I/O read command overhead.

     -i  Perform a simple IOPS benchmark.

     -l  In case of -p or -s modes prepend each line of an output with a  device
	 name using a tab character as a separator.

     -p  Return the physical path of the disk.	This is a string that identifies
	 the physical path to the disk in the storage enclosure.

     -S  Perform  synchronous  random write test (ZFS SLOG test), measuring time
	 required to write data blocks of different size and flush  disk  cache.
	 Blocks  of  more  then  128KB are written with multiple parallel opera-
	 tions.

     -s  Return the disk ident, usually the serial number.

     -t  Perform a simple and rather naive  benchmark  of  the	disks  seek  and
	 transfer performance.

     -v  Print fields one per line with a descriptive comment.

     -w  Allow disruptive write tests.

     If  given	no arguments, the output will be a single line per specified de-
     vice with the following fields: device  name,  sectorsize,  media	size  in
     bytes,  media  size in sectors, stripe size, stripe offset, firmware cylin-
     ders, firmware heads, and firmware sectors.  The last three fields are only
     present if the information is available.

EXAMPLES
     List first ten (at most) da(4) devices with corresponding serial numbers:

	   diskinfo -ls /dev/da?

SEE ALSO
     da(4)

HISTORY
     The diskinfo command appeared in FreeBSD 5.1.

AUTHORS
     The diskinfo utility was written by Poul-Henning Kamp <phk@FreeBSD.org>.

BUGS
     There are in order of increasing severity: lies, damn lies, statistics, and
     computer benchmarks.

FreeBSD ports 15.1		  March 5, 2024 		     DISKINFO(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=diskinfo&manpath=FreeBSD+15.1-RELEASE+and+Ports>

home | help