Operating System - HP-UX
1830845 Members
2598 Online
110017 Solutions
New Discussion

Finding physical harddisk information

 
SOLVED
Go to solution
maxell_1
Frequent Advisor

Finding physical harddisk information

How do we find out how many physical hard disk/s are in a physical volume?

'pvdisplay' only shows the volume groups information.

Thanks
13 REPLIES 13
john123
Trusted Contributor

Re: Finding physical harddisk information

If u really want to see the underlying physical hard disks of a PV presented from a RAID arry or a storage u have to use the RAID array specific or storage specific utilities and/or commands depending on from where u presented the PV.


So from where this PV is presented from ..?

regards
John
saravanan08
Valued Contributor

Re: Finding physical harddisk information

hi maxell

can u please clarify your question

i think u need number of physical volume in a volume group
for that u have to use

vgdisplay -v /dev/vg00(your vgname)

or
strings /etc/lvmtab

there is no difference between physical disk and physical volume.

physical disk if it comes to LVM and having lvm structures means its called as physical volume
thank you
Analyst
Trusted Contributor

Re: Finding physical harddisk information

Hi Maxwell,

#vgdisplay -v < volume group>,

you get no of PV used, including the PV details at end.

Yes with the Strings /etc/lvmtab , also we can get the no of disk associated with the particular volume group.

Thanks,
Analyst.
unixguy_1
Regular Advisor

Re: Finding physical harddisk information


Hi Saravanan,

You are wrong,

one or more physical disk consist a single physical volume.

Actually maxell asking is how many HDD is in a Singal volume,how to find out.

Am i right Maxell?

Regards,
Unixguy.


maxell_1
Frequent Advisor

Re: Finding physical harddisk information

OK let me clarify.

To my understanding, a physical volume can contain multiple SAS disks.

Therefore, how can I know the number of SAS disks configured as 1 of the physical volume
say in /dev/disk/disk4?

Thanks
saravanan08
Valued Contributor

Re: Finding physical harddisk information

sorry unixguy

i m new to this HPux

and moreover this is my first post in ITRC

k i l correct this in future and ur sugesstion wil be very much useful for me
i welcome this from ur side thank u

thanks
john123
Trusted Contributor

Re: Finding physical harddisk information

Maxell

Use sasmgr
Don know the syntax.. Probably man page will help u

Regards
John
Niceguy_2
Advisor

Re: Finding physical harddisk information

Hi,

We can use the command vgdisplay -v /dev/vgxx
and we can use strings /etc/lvmtab

Regards,
Niceguy
unixguy_1
Regular Advisor

Re: Finding physical harddisk information


Hi Niceguy,

Welcome to Forums,

Niceguy is correct,

Sorry Saravanan,Your Answer is correct.

Hi Maxell follow the niceguy solution you will get the Answer.

Regards,
Unixguy.



maxell_1
Frequent Advisor

Re: Finding physical harddisk information

Hi All,

Below is the output of my 'vgdisplay' command. At the bottom of the output it specify that the physical volume is /dev/disk/disk7.

But supposedly I was told that this physical volume has is pooled from 6 SAS disks and I can't find that piece of info saying that this physical volume contains 6 SAS disks.

Please enlighten me. Thanks

***************************************
# vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 52493
VGDA 2
PE Size (Mbytes) 8
Total PE 52492
Alloc PE 35000
Free PE 17492
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 6719104m
VG Max Extents 839888

--- Logical volumes ---
LV Name /dev/vg01/lvsvr10g1_root
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g2_root
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g3_root
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g4_root
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g1_spare
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g2_spare
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g3_spare
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1

LV Name /dev/vg01/lvsvr10g4_spare
LV Status available/syncd
LV Size (Mbytes) 35000
Current LE 4375
Allocated PE 4375
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk7
PV Status available
Total PE 52492
Free PE 17492
Autoswitch On
Proactive Polling On
john123
Trusted Contributor

Re: Finding physical harddisk information

What is the server model u r using..? And which SAS controller it has..?

I think sasmgr command will give youwhat you require..
Jozef_Novak
Respected Contributor
Solution

Re: Finding physical harddisk information

Hello,

try:

# ioscan -fnk | grep ciss

this will give you the device file of the respective SA controller.

Then run:

# saconfig , for example:

# saconfig /dev/ciss5

Jozef

maxell_1
Frequent Advisor

Re: Finding physical harddisk information

Hi Jozef,

Yah thats the command that Im looking for and it shows me the SAS disks configured in a volume group.

John,

Tried the sasmgr but to no avail.

Everyone, thanks for the speedy response.