Operating System - HP-UX
1752614 Members
4327 Online
108788 Solutions
New Discussion юеВ

Re: how to identify vg belong to which pv

 
Noble Sebastian
Frequent Advisor

how to identify vg belong to which pv

Hi , friends

my L class server volume group vg03 acceess time server hung . i think that volume dsik disk failure ...
vgdisplay vg03
cur pv 3
how to identify which is failure ?
how to identify vg03 belongs to which pv ...if any command .......
thanks
7 REPLIES 7
Fabian Brise├▒o
Esteemed Contributor

Re: how to identify vg belong to which pv

Hello Noble Sebastian.

please check your /var/adm/syslog.log file to see if there are any hardware errors
Knowledge is power.
Fabian Brise├▒o
Esteemed Contributor

Re: how to identify vg belong to which pv

you caould also use vgdisplay -v vg03 to see more information
Knowledge is power.

Re: how to identify vg belong to which pv

Hi

You can see by using vgdisplay -v

also, find the detail from /etc/lvmpvg

Good Luch !
JIJ_1
Frequent Advisor

Re: how to identify vg belong to which pv

Hi Noble,

You can use vgdisplay -v , and check for the "PV status" of each disks in that vg. "pv status " should show "available" staus.

Also you can use "ioscan -fnC disk" to find out the status of each disk.

Regards !
JIJ
Gurumanickam
Frequent Advisor

Re: how to identify vg belong to which pv

hi noble,

First check your syslog for any errors,
type the command strings /etc/lvmtab this will show the pvs corresponding vg. then check the pv which are belogs to vg03 are claimed. and also check for the pv available status in vgdisplay -v vg03

Be an expert
Indrajit_1
Valued Contributor

Re: how to identify vg belong to which pv

Hi;

Please check /var/adm/syslog/syslog.log output
and /var/adm/messages output
or
#dmesg

To check PV belongs to vg03

#vgdisplay -v vg03

or

#strings /etc/lvmtab |more

To check the status of PV

dd if=/dev/null of=/dev/rdsk/cxtxdx bs=1024

if it is a ECM storage, there are many other command to check the status of PV

Cheers;
Indrajit Roy
Never Ever Give Up
MHudec
Frequent Advisor

Re: how to identify vg belong to which pv

Check syslog for failed disks.

Check vgdisplay -v vg03 for any unavailable physical volumes, they will have status unavailable.

If you have mirrored the logical volumes living up on the unavailable physical volume (you will see logical volume status as available/stale there instead of available/syncd), then reduce the mirror and replace the disk.

If you don't have mirrored logical volumes, then you will need your backups to restore data to new replaced disks on all logical volumes, where that unavailable physical volume belongs to.