usage: devinfo [-v] device

Example:

root@vms3:~# devinfo sde1

lRWX       - 2013-10-22 09:32 /dev/block/8:65 -> ../sde1
lRWX       - 2013-10-22 09:32 /dev/disk/by-id/ata-ST2000DM001-1CH164_W241L88L-part1 -> ../../sde1
lRWX       - 2013-10-22 09:32 /dev/disk/by-id/scsi-SATA_ST2000DM001-1CH_W241L88L-part1 -> ../../sde1
lRWX       - 2013-10-22 09:32 /dev/disk/by-id/wwn-0x5000c50060844bda-part1 -> ../../sde1
lRWX       - 2013-10-22 09:32 /dev/disk/by-path/pci-0000:08:00.0-sas-0x1221000001000000-lun-0-part1 -> ../../sde1
bRW- 008,065 2013-10-22 09:32 /dev/sde1

NAME                                 SIZE FSTYPE     MOUNTPOINT
sde [Seagate ST2000DM001-1CH164]     1.8T            
  sde1                                32G ext4       /test
  sde2                                32G
  sde3                               1.8T zfs_member

Example:

root@vms3:~# devinfo dm-3

lRWX       - 2013-10-29 16:16 /dev/block/252:3 -> ../dm-3
lRWX       - 2013-10-29 16:16 /dev/disk/by-id/dm-name-23176736668595731-part1 -> ../../dm-3
lRWX       - 2013-10-29 16:16 /dev/disk/by-id/dm-uuid-part1-mpath-23176736668595731 -> ../../dm-3
lRWX       - 2013-10-29 16:16 /dev/disk/by-id/scsi-23176736668595731-part1 -> ../../dm-3
lRWX       - 2013-10-29 16:16 /dev/disk/by-label/spool -> ../../dm-3
lRWX       - 2013-10-29 16:16 /dev/disk/by-uuid/88359486-1ee8-4ae1-b4ff-9c10733f0645 -> ../../dm-3
bRW- 252,003 2013-10-29 16:16 /dev/dm-3
lRWX       - 2013-10-29 16:16 /dev/mapper/23176736668595731-part1 -> ../dm-3

NAME                                 SIZE FSTYPE     MOUNTPOINT
sda [SCST_FIO 1vsfhYW1C28YbADT]        2T
  sda1                                 2T ext4
  23176736668595731 (dm-0)             2T
    23176736668595731-part1 (dm-3)     2T ext4       /spool
sdc [SCST_FIO 1vsfhYW1C28YbADT]        2T
  sdc1                                 2T ext4
  23176736668595731 (dm-0)             2T
    23176736668595731-part1 (dm-3)     2T ext4       /spool

Example:

root@vms3:~# devinfo -v sdg3

lRWX       - 2013-10-22 09:32 /dev/block/8:99 -> ../sdg3
lRWX       - 2013-10-22 09:32 /dev/disk/by-id/scsi-3600508e000000000acd4127796c80b0f-part3 -> ../../sdg3
lRWX       - 2013-10-22 09:32 /dev/disk/by-id/wwn-0x600508e000000000acd4127796c80b0f-part3 -> ../../sdg3
lRWX       - 2013-10-22 09:32 /dev/disk/by-label/swap -> ../../sdg3
lRWX       - 2013-10-22 09:32 /dev/disk/by-path/pci-0000:08:00.0-scsi-0:1:0:0-part3 -> ../../sdg3
lRWX       - 2013-10-22 09:32 /dev/disk/by-uuid/3220e68d-aed0-46d7-b364-134652dc1ee3 -> ../../sdg3
bRW- 008,099 2013-10-22 09:32 /dev/sdg3

NAME                                 SIZE FSTYPE     MOUNTPOINT
sdg [LSILOGIC Logical_Volume]         68G
  sdg1                              14.9G ext4       /
  sdg2                              14.9G ext4
  sdg3                              14.9G swap       [SWAP]
  sdg4                              23.3G ext4       /tmp

DEVLINKS=/dev/disk/by-id/scsi-3600508e000000000acd4127796c80b0f-part3 /dev/disk/by-id/wwn-0x600508e000000000acd4127796c80b0f-part3 /dev/disk/by-label/swap /dev/disk/by-path/pci-0000:08:00.0-scsi-0:1:0:0-part3 /dev/disk/by-uuid/3220e68d-aed0-46d7-b364-134652dc1ee3
DEVNAME=/dev/sdg3
DEVPATH=/devices/pci0000:00/0000:00:05.0/0000:08:00.0/host4/target4:1:0/4:1:0:0/block/sdg/sdg3
DEVTYPE=partition
DEVVM=LSILOGIC Logical_Volume
DRIVERS=sd mptsas pcieport
ID_BUS=scsi
ID_FS_LABEL=swap
ID_FS_LABEL_ENC=swap
ID_FS_TYPE=swap
ID_FS_USAGE=other
ID_FS_UUID=3220e68d-aed0-46d7-b364-134652dc1ee3
ID_FS_UUID_ENC=3220e68d-aed0-46d7-b364-134652dc1ee3
ID_FS_VERSION=2
ID_MODEL=Logical_Volume
ID_MODEL_ENC=Logical\x20Volume\x20\x20
ID_PART_ENTRY_DISK=8:96
ID_PART_ENTRY_NUMBER=3
ID_PART_ENTRY_OFFSET=62500864
ID_PART_ENTRY_SCHEME=dos
ID_PART_ENTRY_SIZE=31250432
ID_PART_ENTRY_TYPE=0x82
ID_PART_TABLE_TYPE=dos
ID_PATH=pci-0000:08:00.0-scsi-0:1:0:0
ID_PATH_TAG=pci-0000_08_00_0-scsi-0_1_0_0
ID_REVISION=3000
ID_SCSI=1
ID_SERIAL=3600508e000000000acd4127796c80b0f
ID_SERIAL_SHORT=600508e000000000acd4127796c80b0f
ID_TYPE=disk
ID_VENDOR=LSILOGIC
ID_VENDOR_ENC=LSILOGIC
ID_WWN=0x600508e000000000
ID_WWN_VENDOR_EXTENSION=0xacd4127796c80b0f
ID_WWN_WITH_EXTENSION=0x600508e000000000acd4127796c80b0f
MAJOR=8
MINOR=99
SUBSYSTEM=block
UDEV_LOG=3
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_NUMBER=3
UDISKS_PARTITION_OFFSET=32000442368
UDISKS_PARTITION_SCHEME=mbr
UDISKS_PARTITION_SIZE=16000221184
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:05.0/0000:08:00.0/host4/target4:1:0/4:1:0:0/block/sdg
UDISKS_PARTITION_TYPE=0x82
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=13738337