On 10.10.2012 01:32, Thang Pham wrote:
Is there a way to find out the size of a native SCSI device attached via
FCP channel? I do not see lszfcp or lsscsi having an option that lets you
see the size of the disk you have attached to a VM.
You can view the usable size of any block device (not just SCSI) using
the following command:
# cat /proc/partitions
major minor #blocks name
8 0 10485760 sda
8 1 10485743 sda1
Note: the #blocks is the size in 1k-blocks
Newer distributions provide a tool called 'lsblk' which also shows disk
and partition sizes.
# lsblk
NAME MAJ:MIN RM SIZE RO MOUNTPOINT
sda 8:0 0 10G 0
└─sda1 8:1 0 10G 0 /
Regards,
Peter Oberparleiter
--
Peter Oberparleiter
Linux on System z Development - IBM Germany
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/