HPE 9000 and HPE e3000 Servers
1748255 Members
3885 Online
108760 Solutions
New Discussion юеВ

Re: how to find out which volume group a disk belongs to?

 
SOLVED
Go to solution
andrew sun_1
Occasional Advisor

how to find out which volume group a disk belongs to?

How to find out which volume group a faulty disk belongs to? It will be used to run vgcfgrestore and vgchange command. Does any one can give help?
7 REPLIES 7
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: how to find out which volume group a disk belongs to?

Hi Andrew,

You need to check /etc/lvmtab, from this file you will find which disk(s) belong to which vg.

# strings /etc/lvmtab

So if you already know which faulty disk (ex. cxtydz), all you have to do is cross-check with the /etc/lvmtab.

Hope this can help you.
Let me know if you have other enquiries.

Cheeers,
AW
now working, next not working ... that's unix
andrew sun_1
Occasional Advisor

Re: how to find out which volume group a disk belongs to?

I could not find /etc/lvmtab file in HP-UX. Any ideas?
Cem Tugrul
Esteemed Contributor

Re: how to find out which volume group a disk belongs to?

Hi Andrew,

Are you sure?...Because hp-ux systems
save the disks information which locates
in VG so /etc/lvmtab is mandotary file for
Hp-ux and only way of the looking this file
is "strings" command
On the other hand,the other useful command
#lvlnboot -v
is using for to get information about your
boot disks-swap areas information
#cat /etc/fstab command gives information
about your filesystem's mount points

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Adisuria Wangsadinata_1
Honored Contributor

Re: how to find out which volume group a disk belongs to?

Hi Andrew,

You can restore the /etc/lvmtab from your backup, if you have one 8-). With this, you can see the vg versus disks information.

The other way around to rebuild the vg by using 'vgscan' command, check the man page of vgscan for more details on the options :

# man vgscan

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Brad Baron
Frequent Advisor

Re: how to find out which volume group a disk belongs to?

I am assuming this to be a JBOD disk and not one in any type of RAID setup.

Use #ioscan -fnCdisk to locate the device file. The disk may say NO_HW instead of CLAIMED. Use #vgdisplay -v and look for the physical volume under one of the VGs. Use #strings /etc/lvmtab (but I understand you may need to run #vgscan to regenerate it for some reason). Use #mstm (online diagnostics) and run >Tool>Utility>Logtool. If this doesn't help maybe you could provide a little more detail. What type of server, what version HPUX, what type of disks, how do you know the disk is bad, etc. Good Luck!!
Stf
Esteemed Contributor

Re: how to find out which volume group a disk belongs to?

use
# vgdisplay -v on all vg and you should find an unavailable pv...

Stf ;-)
andrew sun_1
Occasional Advisor

Re: how to find out which volume group a disk belongs to?

thanks. i have found solution.