And to add to the conversation, I've also used UDEV to help query disk
information for me in the past. Say your SCSI disk is "/dev/sdf", then you
can query all sorts of information with udev via:
udevadm info -a -p $(udevadm info -q path -n /dev/sdf) | less -Ip size

 I choose "less" in my sample CLI invocation to help point out the "size"
attribute but also promote exploration of the other attributes available.

-- Jon Miller

On Wed, Oct 10, 2012 at 12:27 PM, Mark Post <[email protected]> wrote:

> >>> On 10/9/2012 at 07:32 PM, Thang Pham <[email protected]> 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.
>
> The simplest and most direct method is simply "fdisk -l /dev/sd?".  After
> all, it's just a SCSI disk.
>
>
> Mark Post
>
> ----------------------------------------------------------------------
> 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/
>

----------------------------------------------------------------------
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/

Reply via email to