Operating System - HP-UX
1752822 Members
4485 Online
108789 Solutions
New Discussion юеВ

Re: error on lvcreate after the boot-disk is damaged and replaced

 
erich hummel_1
Advisor

error on lvcreate after the boot-disk is damaged and replaced

hi all,

i have replaced my boot-disk (c1t0d0) before he is damaged and i forgot to move a part of a LV to another disk.
If i create a new LV then the error appears: "Couldn't query physical volume "/dev/dsk/c1t0d0":
The specified path does not correspond to physical volume attached to
this volume group.

How can i remove the residuary entrys for the old boot-disk ?
8 REPLIES 8
RAC_1
Honored Contributor

Re: error on lvcreate after the boot-disk is damaged and replaced

check which LV shows stale extents and remove the mirror for it. You will have to use -k for it.

lvdisplay -vk /dev/vgxx/lvolx - stale lvol
note down PV key.

lvreduce -m 0 -k /dev/vgxx/lvolx, once this is done, do vgcfgrestore -n /dev/vgxx /dev/rdsk/cxtxdx
vgactivate -a y vgxx
vgsync

This should do it. Check by booting through this disk.
There is no substitute to HARDWORK
Stanimir
Trusted Contributor

Re: error on lvcreate after the boot-disk is damaged and replaced

This mean, that /dev/dsk/c1t0d0 is not a part of vg00.
Use: #vgredice -f vg00 /dev/dsk/c1t0d0
And try to re-create again it.
erich hummel_1
Advisor

Re: error on lvcreate after the boot-disk is damaged and replaced

i do follow:

lvreduce -m 0 -k /dev/vg00/lvol9
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.

vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t0d0
vgcfgrestore: Could not open Physical Volume "/dev/rdsk/c1t0d0".

Info: i cant see the disk c1t0d0 at the command "ioscan"
RAC_1
Honored Contributor

Re: error on lvcreate after the boot-disk is damaged and replaced

Post following.

lvdisplay /dev/vg00/lvol9
vgdisplay vg00

Is disk as CLAIMED in ioscan??
There is no substitute to HARDWORK
erich hummel_1
Advisor

Re: error on lvcreate after the boot-disk is damaged and replaced

lvdisplay /dev/vg00/lvol9
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t0d0":
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/lvol9
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 15008
Current LE 938
Allocated PE 938
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

vgdisplay vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t0d0":
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 14
Open LV 14
Max PV 16
Cur PV 4
Act PV 3
Max PE per PV 5120
VGDA 6
PE Size (Mbytes) 16
Total PE 9833
Alloc PE 8588
Free PE 1245
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0



ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 3 0/0/1/1.2.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST173404LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST173404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0


i cant see the disk in ioscan because the "old" disk is damaged.
Mark Nieuwboer
Esteemed Contributor

Re: error on lvcreate after the boot-disk is damaged and replaced

eric,

Is this happend after you did a pvmove from the old boot disk to the other boot disk c1t2d0 and after that replace the boot disk.

After you replaced the disk did you do a insf -e to make a device file for the new disk and then a vgsync vg00.

grtz. Mark
erich hummel_1
Advisor

Re: error on lvcreate after the boot-disk is damaged and replaced

i had found a solution:

- install damaged harddisk
- vgreduce /dev/vg00 /dev/dsk/c1t0d0
- vgchange -a y /dev/vg00
- vgdisplay (c1t0d0 not on display)
- uncase damaged harddisk
- new vol can now be created

Thanks for your help
erich hummel_1
Advisor

Re: error on lvcreate after the boot-disk is damaged and replaced

solution on the message before