Operating System - HP-UX
1829489 Members
1928 Online
109991 Solutions
New Discussion

couldn't query physical volume

 
Imad_blg
Occasional Advisor

couldn't query physical volume


I have an HP server rx2660 hp-ux with 4 drives, I have a problem on vg00
'vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2"'

i have checked disk with these command, i think i have to change disk 3

output vgdisplay
# vgdisplay -v
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 4
Act PV 3
Max PE per PV 4384
VGDA 6
PE Size (Mbytes) 16
Total PE 13066
Alloc PE 8098
Free PE 4968
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

output ioscan -fnc disks
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 5 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224E V
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s3
/dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0s1
disk 2 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 3 0/1/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s3
/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s1
disk 4 0/1/1/0.0.0.3.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t3d0 /dev/rdsk/c3t3d0

output iostat :

# iostat

device bps sps msps

c3t0d0 0 0.0 1.0
c3t1d0 0 0.0 1.0
c3t3d0 0 0.0 1.0

# /usr/sbin/diskinfo /dev/rdsk/c3t2d0
SCSI describe of /dev/rdsk/c3t2d0:
vendor: HP
product id: DH0072FAQRD
type: direct access
size: 0 Kbytes
bytes per sector: 0

# dd if=/dev/dsk/c3t2d0 of=/dev/null bs=128k
/dev/dsk/c3t2d0: Device busy
dd: cannot open /dev/dsk/c3t2d0

2 REPLIES 2
Torsten.
Acclaimed Contributor

Re: couldn't query physical volume

Yes, disk

disk 3 0/1/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP DH0072FAQRD
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s3
/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s1

 

is dead.


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!   
Imad_blg
Occasional Advisor

Re: couldn't query physical volume

thank u for your reply torsten
the disk is mirrored & alternate boot I was going to do the following:


1- initialize boot information on the replacement disk.
Save the hardware paths to the disk.
Run the ioscan command and note the hardware paths of the failed disk as follows:


# pvchange -a N /dev/ddsk/c3t2d0
power off the system to replace disk

Notify the mass storage subsystem that the disk has been replaced.
# scsimgr replace_wwid –D /dev/dsk/c3t2d0

# vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB

Use idisk(1M) command to partition the disk according to this file:

# idisk -wf /tmp/partitionfile /dev/dsk/c3t2d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes

- Create the new device files for the new partitions (c3t2d0_p1,_p2_p3)
# insf -e –Cdisk

Now assign the old instance number to the replacement disk.

# io_redirect_dsf -d /dev/dsk/c3t2d0 -n /dev/dsk/(new disk)
Use efi_fsinit(1M) to initialize the FAT filesystem on the EFI partition:

# efi_fsinit -d /dev/dsk/c3t2d0

# mkboot -e -l /dev/dsk/c3t2d0
# efi_ls -d /dev/dsk/c3t2d0

# efi_cp -d /dev/dsk/c3t2d0_p1 -u /EFI/HPUX/AUTO /tmp/x
# cat /tmp/x
boot vmunix

# mkboot -a "boot vmunix -lq" /dev/dsk/c3t2d0
# mkboot -a "boot vmunix -lq" /dev/dsk/c3t2d0

# vgcfgrestore -n /dev/vg00 /dev/dsk/c3t2d0
pvchange –a y /dev/dsk/c3t2d0_p2

# vgchange -a y /dev/vg00
# cd /tmp
# nohup vgsync /dev/vg00 &
# lvlnboot -v