Operating System - HP-UX
1847926 Members
5001 Online
104021 Solutions
New Discussion

Re: lvextend does not work...

 
SOLVED
Go to solution
cninham
Frequent Advisor

lvextend does not work...

On our HP-UX 11.00 server, hardware model 9000/800/L2000-36: I am trying to extend the logical volume of or /var partition. Here is what I do:

I reboot the box, and boot into single user mode. Then I execute the following commands:


# vgdisplay
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
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 2
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 2681
Free PE 1659
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".


# lvdisplay /dev/vg00/lvol8
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1152
Current LE 288
Allocated PE 576
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

#
# lvextend -L 2560 /dev/vg00/lvol8
lvextend: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
lvextend: Warning: couldn't query all of the physical volumes.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol8" could not be extended.
Failure possibly caused by strict allocation policy

#


I believe we have hpa fibre channel cards in the server, but the /var (or /dev/vg00/lvol8) partition is not located on a networked drive/storage... (I *think*!)

Any help will be appreciate.

Thank you,

Cameron
6 REPLIES 6
Jeff Schussele
Honored Contributor
Solution

Re: lvextend does not work...

Hi Cameron,

You've got a failed disk in the vg00 mirror - c1t2d0.
Look at the vgdisplay output - it shows 2 For Current PV & *only* 1 for Active PV.

You should get it replaced & the mirror resynced before you do anything else. You lose the other disk & you're going down.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Andrew Underhill
Occasional Advisor

Re: lvextend does not work...

Cameron,

All the error messages are indicating that at the moment /dev/dsk/c1t2d0 is unavailable for what ever reason.

Try a:

diskinfo -v /dev/rdsk/c1t2d0

to see if the O/S can get any info about the disk in question.

An ioscan -funC disk |more

will show which controller the disk is hanging off. If it is a scsi controller, then it is unlikely that it is network based. (More servers will boot from local drives, using mirrored disks on C0 and C1)

If ioscan shows NO H/W then you have a probable hardware fault.

Are the disks hot pluggable? If so this can sometimes help. Before you do this, are you sure you've got a good backup? (A paranoid just in case).

Hot plug the disk, do an insf -e -H (h/w path of disk controller).

You may have to call out an HP engineer.

Good luck
Helen French
Honored Contributor

Re: lvextend does not work...

You don't need to open another thread for the same issue. You can just post your replies to your original one:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=406708
Life is a promise, fulfill it!
T G Manikandan
Honored Contributor

Re: lvextend does not work...

What is the output of

#ioscan -fnC disk

Can you see the missing disk

#diskinfo
Suresh Patoria
Super Advisor

Re: lvextend does not work...

Hi,

use the ioscan -fnC disk command

in above output u able to see the ur device

if u don't then u need check up connection of disk

u need to remove and re-fix the disk

and re-create the device file using the insf -e command

Good luck
thanx
cninham
Frequent Advisor

Re: lvextend does not work...

Thank you ALL for your replies and help. I appreciate all the help I get from this forum.

I am attaching the output from the commands you suggested. Also, I am going to closed this thread, and continue with the original thread, as suggested. The original thread can be found at:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=406708

Here is the results of the output:

---------- SNIP ----------


<<< Log from tdhpws01.nocmia.ustdata.com started January 30, 2004, 09:10:50 >>>
# setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

# diskinfo /dev/rdsk/c1t2d0
diskinfo: can't open /dev/rdsk/c1t2d0: No such device or address

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 3 0/2/0/0.0.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 5 0/2/0/0.0.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1
disk 7 0/2/0/0.0.2 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t0d2 /dev/rdsk/c4t0d2
disk 4 0/6/0/0.1.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c6t1d0 /dev/rdsk/c6t1d0
disk 6 0/6/0/0.1.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c6t1d1 /dev/rdsk/c6t1d1
disk 8 0/6/0/0.1.2 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c6t1d2 /dev/rdsk/c6t1d2

# diskinfo /dev/rdsk/c2t2d0
SCSI describe of /dev/rdsk/c2t2d0:
vendor: SEAGATE
product id: ST318404LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512

---------- SNIP ----------