Operating System - HP-UX
1832984 Members
2968 Online
110048 Solutions
New Discussion

Pls help!! - need to know number of physical disks and size

 
SOLVED
Go to solution
Clement Yeo
Advisor

Pls help!! - need to know number of physical disks and size

I need to know number of physical disks and its size
16 REPLIES 16
Patrick Wallek
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

There are several ways to do this:

# ioscan -kfnC disk
That will tell you the models and you can sometimes glean the capacity from the model number.

# /opt/ignite/bin/print_manifest

This will definitely tell you what you need but you must have Ignite/UX installed to get this.

You can also get this through SAM in the LVM section and choose Disk devices.
Sanjiv Sharma_1
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

Hi Clement,

# ioscan -fnCdisk

This command will list down all the disks and also the model and some of the sizes too.

You can check the device files and run.
# diskinfo -v /dev/rdsk/cxtxdx
on all the disks and you will get the size.

hth.
Everything is possible
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

Hi all, the mentioned cmmd do show me number of disks. As my environment is configured using array i need to know only the physical number.
Patrick Wallek
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

If you are using a disk array, then the commands we showed will display only the LUNs presented to your system by the array.

To see the number of disks in the array you need to use utilities that can talk to the type of array you have.

What type of disk array do you have?
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

how to deteremine the type of disk array
SS_6
Valued Contributor

Re: Pls help!! - need to know number of physical disks and size

If you have disk array than it could be attached to different hosts and you will reallly have to use disk array specific program,like Command View or Remote Control for HP's XP or VA disk arrys.You may see the disks from lvmtab but it will show only disks allocated to volume groups and there may be other disks allocated to host and not yet added to any volume group.(will see in ioscan). diskinfo will also show the vendor name.
# strings /etc/lvmtab
By providing solutions I am helping myself
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

but it still doesn't able to see the correct number of physical harddisk fitted into the system. I will included all configured partition of disk in the system not physical disk. I need to know the number of physical disks not configured volume group.
Karthik S S
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

for i in `ioscan -fknC disk | awk -F " " '{print $2}' | grep rdsk`
do
diskinfo $i
done

-Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

the script given also capture the partion of physical harddisk. As I've mentioned I only need 'PHYSICAL' number excluding the non-physical.
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

I got to know some commands that might work, something like 'arm' something or 'arraydsp' something. anyone can advise.
Karthik S S
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

What is the model of the array that you have connected to the system?

Try,

armdiscover
arraydsp -i array-id (armdiscover shows you the array-id)

-KarthiK S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Karthik S S
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

If arraydsp didnt work try,

armdsp -d array-id

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

system show me "sh: armdiscover: not found."
Karthik S S
Honored Contributor
Solution

Re: Pls help!! - need to know number of physical disks and size

If it is a VA series of array then you should have commandview SDM loaded. The default path for the commands is,

/opt/sanmgr/commandview/client/sbin/


If it is AutoRAID 12H or someother older model array,

try,

/opt/hparray/bin/amdsp

You didn't tell us which model of array you have ..

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Patrick Wallek
Honored Contributor

Re: Pls help!! - need to know number of physical disks and size

With a disk array the "Physical" disks are NOT configured into volume groups. The disks are set up into "logical units" (LUNs) that the array presents to the server. ONLY the LUNs that the server can see can be added to a volume group.

The arm commands for an HP array can show you the physical disks in the array, but that will not mean anything as far as your volume group configuration goes. It will just show you the disks in the array.

I am confused as to what exact information you are actually looking for.
Clement Yeo
Advisor

Re: Pls help!! - need to know number of physical disks and size

hi guys, sorry for all the confusion. According to Karthik solution, i found out that my arrary model is VA7100. And after executing the command given, wala got what I needed. Thanks to all that given me the extra knowledge