Operating System - HP-UX
1832089 Members
3068 Online
110037 Solutions
New Discussion

Re: can not find disk for coresponding pv

 
SOLVED
Go to solution
datbtd
Occasional Advisor

can not find disk for coresponding pv

hpux version: 11i v3 (11.31)

# vgdisplay
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write    
VG Status                   available                
Max LV                      255   
Cur LV                      10    
Open LV                     10    
Max PV                      16    
Cur PV                      1     
Act PV                      1     
Max PE per PV               4332        
VGDA                        2  
PE Size (Mbytes)            32             
Total PE                    4322   
Alloc PE                    2828   
Free PE                     1494   
Total PVG                   0       
Total Spare PVs             0             
Total Spare PVs in use      0                    
VG Version                  1.0      
VG Max Size                 2166g     
VG Max Extents              69312

 

#> vgdisplay -v vg00

--- Physical volumes ---
   PV Name                     /dev/disk/disk2_p2
   PV Status                   available               
   Total PE                    4322   
   Free PE                     1494   
   Autoswitch                  On        
   Proactive Polling           On   

 

#>ioscan -funC disk

Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
disk      1  0/1/1/0.0.0.0.0  sdisk   CLAIMED     DEVICE       HP      DG146BB976
                         /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0
disk      0  0/1/1/0.0.0.1.0  sdisk   CLAIMED     DEVICE       HP      IR Volume
                         /dev/dsk/c2t1d0     /dev/dsk/c2t1d0s3   /dev/rdsk/c2t1d0s2
                         /dev/dsk/c2t1d0s1   /dev/rdsk/c2t1d0    /dev/rdsk/c2t1d0s3
                         /dev/dsk/c2t1d0s2   /dev/rdsk/c2t1d0s1
disk     14  0/3/1/1.0.0  sdisk   CLAIMED     DEVICE       HP 146 GMBA3147NC
                         /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0
disk     15  0/3/1/1.2.0  sdisk   CLAIMED     DEVICE       HP 146 GMBA3147NC
                         /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0
disk     17  0/3/1/1.4.0  sdisk   CLAIMED     DEVICE       HP 146 GMBA3147NC
                         /dev/dsk/c1t4d0   /dev/rdsk/c1t4d0
disk     16  0/3/1/1.6.0  sdisk   CLAIMED     DEVICE       HP 146 GMBA3147NC
                         /dev/dsk/c1t6d0   /dev/rdsk/c1t6d0
disk      4  255/1/0.0.0  sdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
                         /dev/dsk/c3t0d0   /dev/rdsk/c3t0d0

question:

1. why I can't find  /dev/disk/disk2_p2 through ioscan as you can see from above result?

2. when I run: # pvcreate /dev/rdsk/c1t2d0
pvcreate: The physical volume already belongs to a volume group

 

How can I find which vg does this disk belong to? seeing from the vgdisplay, I can only find vg00, and though vgdisplay -v  vg00, I can only find /dev/disk/disk2_p2 is used. How to know which vg used /dev/rdsk/c1t2d0 ?

 

Thanks.

3 REPLIES 3
datbtd
Occasional Advisor

Re: can not find disk for coresponding pv

# vgscan -v
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vgping".


/dev/vg00
/dev/disk/disk2_p2


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c1t0d0
/dev/dsk/c1t2d0

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c1t4d0

The Volume Group /dev/vgping was not matched with any Physical Volumes.
Scan of Physical Volumes Complete.
Couldn't stat physical volume "/dev/dsk/c2t0d0":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c3t0d0":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c1t6d0":
Invalid argument

Scan of Physical Volumes Complete.

 

I run vgscan -v, it seems there's another vg named vgping existed on the system.  How can I make it available or removed it cleanly?

Torsten.
Acclaimed Contributor
Solution

Re: can not find disk for coresponding pv

Use

 

# ioscan -m dsf

 

and you will find the legacy device file for  /dev/disk/disk2_p2.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
datbtd
Occasional Advisor

Re: can not find disk for coresponding pv

Hi Torsten,

 

Thank you very much!!!