Operating System - HP-UX
1846094 Members
4420 Online
110253 Solutions
New Discussion

Re: extend volume problem

 
Fadia Almarei
Super Advisor

extend volume problem

Dear All
when i try to extend my logical volume i get the following error
"The command used to extend logical volumes, /sbin/lvextend, has ^
failed. The stderr output from the command is shown below. The
logical volume has not been extended.


lvextend: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to

this volume group
lvextend: Warning: couldn't query all of the physical volumes.
lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to

this volume group
lvlnboot: Warning: couldn't query all of the physical volumes.
vgcfgbackup: Warning: couldn't query physical volume
"/dev/dsk/c4t12d0":"
what is the cause and solution for this problem.
fadia.marei
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: extend volume problem

Hi:

It sounds like the physical disk may not be viable. Do:

# dd if=/dev/rdsk/c4t12d0 of=/dev/null bs=1k count=10

Regards!

...JRF...
Kofi ARTHIABAH
Honored Contributor

Re: extend volume problem

Fadia:
It appears that your disk c4t12d0 may be offline. You can check by running an ioscan -fnC disk to verify that the disk is claimed. If it is, try a diskinfo -v /dev/rdsk/c4t12d0 for infomation about the disk.

Did you just add the disk to the box? you may need to do a insf -e and a pvcreate if you just added the disk.

more info please...
nothing wrong with me that a few lines of code cannot fix!
HGN
Honored Contributor

Re: extend volume problem

Hi Fadia

Looks like there is some issue with the disk "/dev/dsk/c4t12d0":
you can run a diskinfo on that
#diskinfo /dev/rdsk/c4t12d0 and check you can also run a pvdisplay and see what it returns if this was not added you need to do a pvcreate..if that fails and still the disk is online and if you are sure that this disk in not used anywhere else you can do a pvcreate -f (make sure bware ***)

Rgds

HGN
Fadia Almarei
Super Advisor

Re: extend volume problem

Dear all
the disk is claimed from the ioscan and there ia no problem from diskinfo for this disk
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 3 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 4 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 5 0/8/0/0.8.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c4t8d0 /dev/rdsk/c4t8d0
disk 6 0/8/0/0.10.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c4t10d0 /dev/rdsk/c4t10d0
disk 7 0/8/0/0.12.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t12d0 /dev/rdsk/c4t12d0
disk 8 0/8/0/0.14.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t14d0 /dev/rdsk/c4t14d0
#


# diskinfo -v /dev/rdsk/c4t12d0
SCSI describe of /dev/rdsk/c4t12d0:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
rev level: HP05
blocks per disk: 71132960
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)46 (33)44 (34)30 (35)4c (36)56 (37)43 (38)30 (
39)20 (40)20 (41)20 (42)20 (43)53 (44)45 (45)41 (46)47 (47)41 (48)54 (49)45 (50)
20 (51)c (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0
(64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (
77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90
)0 (91)0 (92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20
(102)28 (103)63 (104)29 (105)20 (106)32 (107)30 (108)30 (109)32 (110)20 (111)53
(112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c
(122)20 (123)4 (124)3d (125)67 (126)20 (127)0 (128)0 (129)2 (130)0 (131)0 (132)


fadia.marei
Joseph Loo
Honored Contributor

Re: extend volume problem

hi,

may i know what is the exact lvextend command (with arguments) used?

also, from which volume group is this disk, "/dev/dsk/c4t12d0" associated, please reply with vgdisplay, i.e. :

# vgdisplay -v

regards.
what you do not see does not mean you should not believe
Fadia Almarei
Super Advisor

Re: extend volume problem

the amazing thing that the vg01 that u02 found in does not have this disk on it and this disk is unused,but why this happened i do not know ,another thing that the logical volume increase but the used size still the same ,i try to do extenfs command to this file system and then i intarupt it i try then to mount it it does not work i do the fsck command and it give me the following error;
#
# fsck /dev/vg01/ru02
vxfs fsck: invalid device config entry found
log replay in progress
#
another problem
fadia.marei
Devender Khatana
Honored Contributor

Re: extend volume problem

Hi,

This shall not happen unless the VG has been extended to this disk. For the LVOL and the file system part what does the "vgdisplay -v /dev/vg01" and "lvdisplay -v /dev/vg01/lvol1" say ?

Also post "strings /etc/lvmtab"?

HTH,
Devender
Impossible itself mentions "I m possible"
Fadia Almarei
Super Advisor

Re: extend volume problem

1-# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/vg01
/dev/dsk/c2t0d0
/dev/dsk/c2t2d0
/dev/dsk/c4t12d0
/dev/vg03
C,N^
/dev/dsk/c4t14d0
/dev/dsk/c4t8d0
/dev/vg02
/dev/dsk/c4t10d0


# vgdisplay -v vg01
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
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/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 3
Act PV 2
Max PE per PV 8683
VGDA 4
PE Size (Mbytes) 4
Total PE 17362
Alloc PE 16950
Free PE 412
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg01/u01
LV Status available/syncd
LV Size (Mbytes) 30000
Current LE 7500
Allocated PE 7500
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg01/u02
LV Status available/syncd
LV Size (Mbytes) 37800
Current LE 9450
Allocated PE 9450
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 8681
Free PE 0
Autoswitch On



but the disk is configured as unused


fadia.marei
ralph barber
Advisor

Re: extend volume problem

What is the output from pvdisplay -v /dev/dsk/c4t12d0 ?
Fadia Almarei
Super Advisor

Re: extend volume problem

it is # pvdisplay -v /dev/dsk/c4t12d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t12d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c4t12d0".
fadia.marei
ralph barber
Advisor

Re: extend volume problem

Try vgchange -a y /dev/vg01 and then see if the problem still persists