HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to view the total size of one disk or lun

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to view the total size of one disk or lun

Hi

I am using HP-UX 11.00, 11.11.

I want to see the size of the whole disk or lun.

# ioscan is not showing this.

how to create this.
9 REPLIES
Court Campbell
Honored Contributor

Re: how to view the total size of one disk or lun

diskinfo
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Pete Randall
Outstanding Contributor
Solution

Re: how to view the total size of one disk or lun

# diskinfo /dev/rdsk/c3t5d0
SCSI describe of /dev/rdsk/c3t5d0:
vendor: HP 73.4G
product id: MAN3735MC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512


Pete

Pete
Kranti Mahmud
Honored Contributor

Re: how to view the total size of one disk or lun

Hi Senthil,

diskinfo will work...

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
avizen9
Esteemed Contributor

Re: how to view the total size of one disk or lun

hello senthil,
through ioscan you can get disk path info and then through diskinfo can get size info for disk.

other way is you can run sam > disk and file system > disk devices can get all info,

thanks,
R.K. #
Honored Contributor

Re: how to view the total size of one disk or lun

Hi Senthil,

Best way is the "diskinfo" command as mentioned above.

Another way is the "pvdisplay" as below:

# pvdisplay /dev/dsk/c0t1d0
--- Physical volumes ---
PV Name /dev/dsk/c0t1d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4 <----
Total PE 4340 <----
Free PE 4336
Allocated PE 4
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

=========================
So, the disk size will be:
SIZE = Total PE * PE Size
= 4340 * 4 MB
= 17360 MB
=========================


Regds,
R.K.
Don't fix what ain't broke
Suraj K Sankari
Honored Contributor

Re: how to view the total size of one disk or lun

Hi Senthil,

>>I want to see the size of the whole disk or lun.

your command will be

#diskinfo /dev/rdsk/cXtXdX

For more informaton do "man diskinfo" or visit below link

http://www.docs.hp.com/en/B2355-90691/diskinfo.1M.html

Suraj
Taifur
Respected Contributor

Re: how to view the total size of one disk or lun

Hi Senthil,

You can check everything from nickel output

#cd /opt/contrib/bin
#./nickel

check the nickel output.

Rgds//
Taifur
Sajjad Sahir
Honored Contributor

Re: how to view the total size of one disk or lun


Dear Senthil

diskinfo is the command

while using diskinfo u should use raw device(r)
/dev/rdsk/c#t#d#

thanks and regards

Sajjad
Ganesan R
Honored Contributor

Re: how to view the total size of one disk or lun

Hi,

Other than diskinfo, you could use this also to find out the disk size.

# pvdisplay /dev/dsk/c1t2d0 |egrep "PE Size|Total PE"
PE Size (Mbytes) 8
Total PE 2170
#

PE Size * Total PE => Total disk size
Best wishes,

Ganesh.