It is in /var/log/messages: Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.656933] scsi 1:0:26:1082146832: Direct-Access IBM 2107900 36.5 PQ: 0 ANSI: 5 Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.657047] sd 1:0:26:1082146832: Attached scsi generic sg21 type 0 Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.659692] sd 1:0:26:1082146832: [sdv] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB) Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.660473] sd 1:0:26:1082146832: [sdv] Write Protect is off Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.660839] sd 1:0:26:1082146832: [sdv] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.663606] sdv: unknown partition table Oct 9 19:43:21 4e1d-laplace-48 kernel: [23044.665817] sd 1:0:26:1082146832: [sdv] Attached SCSI disk
Or send the SCSI read capacity command like this: [email protected]:sg_readcap /dev/sdv Read Capacity results: Last logical block address=4194303 (0x3fffff), Number of blocks=4194304 Logical block length=512 bytes Hence: Device size: 2147483648 bytes, 2048.0 MiB, 2.15 GB Regards, Ray Higgs System z FCP Firmware Development Bld. 706, B42 2455 South Road Poughkeepsie, NY 12601 (845) 435-8666, T/L 295-8666 [email protected] Linux on 390 Port <[email protected]> wrote on 10/09/2012 07:32:19 PM: > From: Thang Pham/Poughkeepsie/IBM@IBMUS > To: [email protected] > Date: 10/09/2012 07:40 PM > Subject: SCSI/FCP disk size > Sent by: Linux on 390 Port <[email protected]> > > Hello List, > > 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. > > Thanks, > Thang Pham > > ---------------------------------------------------------------------- > 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/
