Operating System - HP-UX
1833777 Members
2266 Online
110063 Solutions
New Discussion

lvreduce error The specified path ...

 

lvreduce error The specified path ...

HP/UX 11.0 with mirroring.

I am trying to reduce the mirroring on my system disk since I'm having problems with /dev/dsk/c0t0d0.

FYI: After I reduce the mirroring I know how to re-mirror the good disk to a spare disk which is my intention.

The problem I'm having is as follows:

I tried lvreduce and received the following message:

# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c0t0d0

lvreduce: Warning: couldn't query physical volume "/dev/dsk/c0t0d0":
The specified path does not correspond to physical volume attached to this volume group lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c0t0d0" does not belong to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol1" is not reduced.

If I do a strings on /etc/lvmtab you can see the disk c0t0d0.

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t6d0
/dev/dsk/c0t0d0
...

When I do a lvdisplay -v /dev/vg00/lvol1 I get the following:

# lvdisplay -v /dev/vg00/lvol1
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t0d0":
The specified path does not correspond to physical volume attached to this volume group
lvdisplay: Warning: couldn't query all of the physical volumes ...

and PV2 show up as questions marks (???) with all extents showing as stale.

Any suggestions on how to get rid of c0t0d0 ?

6 REPLIES 6
Deshpande Prashant
Honored Contributor

Re: lvreduce error The specified path ...

HI
Since the disk c0t0d0 is not recognisable by system now, you will not be able to reduce it from VG. Keep copy of /etc/lvmtab and /etc/lvmconf/vg00.conf, just in case.
If you want to replace this disk do following.
1. Shutdown system
2. Replace the faulty disk.
3. Boot system in single user mode #hpux -is -lq at ipl prompt.
4. Do pvcreate on replaced disk
#pvcreate -f -B /dev/rdsk/c0t0d0
5. Restore vg information
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t0d0
6. Activate vg
#vgchange -a y /dev/vg00
7. synchronise vg
#vgsync /dev/vg00
8. Update BDRA
#lvlnboot -Rv
9. Reboot the machine.

10. Check mirror by booting from mirror disk also.

11. Once up update the diag information on disks.
mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c0t0d0

Thanks.
Prashant.
Take it as it comes.
James R. Ferguson
Acclaimed Contributor

Re: lvreduce error The specified path ...

Hi Elliott:

Take a look at Knowledge Base document #LVMKBRC00006257 (for your convenience, see attachment if you desire).

In particular note the use of the 'disk key' option of 'lvreduce'.

Regards!

...JRF...

Re: lvreduce error The specified path ...

James,

I looked at the attachment and see that part of the process is to do a vgscan

3. Further steps
Rename /etc/lvmtab
# mv /etc/lvmtab /etc/lvmtab.old
Create a new /etc/lvmtab
# vgscan ?v

From what I've seen in other threads vgscan isn't the greatest thing to do.

Are there any implications if I run vgscan ?
Is there a better way to get rid of c0t0d0 ?
Deshpande Prashant
Honored Contributor

Re: lvreduce error The specified path ...

HI
I had the same problem (mirror disk failure) just day before yesterday, and I recovered it following the steps I listed in my earlier post.

Prashant.
Take it as it comes.

Re: lvreduce error The specified path ...

Prashant,

Thanks for your answer but I don't want to shutdown the system nor do I want to use c0t0d0.

I'd prefer the solution James sent, however I just want to know if there any implications of running vgscan.
James R. Ferguson
Acclaimed Contributor

Re: lvreduce error The specified path ...

Hi (again) Elliott:

With regard to 'vgscan', the man pages have the guidlines for dealing with alternate links and boot information in a rebuilt /etc/lvmtab.

Regards!

...JRF...