Operating System - HP-UX
1833876 Members
1602 Online
110063 Solutions
New Discussion

Re: ERROR WITH LVM COMMAND

 
Miguel Carabano_1
Regular Advisor

ERROR WITH LVM COMMAND

Hi Team,

When I execute the following command:
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 5 10/0.1.0 sdisk CLAIMED DEVICE SEAGATE ST32171W
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 6 10/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST32171W
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 0 10/0.3.0 sdisk CLAIMED DEVICE HP C2490WD
/dev/dsk/c0t3d0 /dev/rdsk/c0t3d0
disk 2 10/0.5.0 sdisk CLAIMED DEVICE HP C2490WD
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 3 10/0.6.0 sdisk CLAIMED DEVICE HP C2490WD
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 7 10/0.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 4 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-4101
TA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
# strings /etc/lvmtab
/dev/vg02
/dev/dsk/c0t1d0
/dev/vg03
/dev/dsk/c0t2d0
/dev/vg01
/dev/dsk/c0t3d0
/dev/dsk/c0t5d0
/dev/vg00
/dev/dsk/c0t6d0
/dev/vg04
/dev/dsk/c0t8d0

# vgchange -a y /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "":
A component of the path of the physical volume does not exist.
Volume group "/dev/vg01" has been successfully changed.

# vgcfgbackup /dev/vg01
vgcfgbackup: Warning: couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgbackup: Warning: couldn't query all of the physical volumes.
vgcfgbackup: Couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgbackup: Couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group

Please help!

Thanks

Miguel
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: ERROR WITH LVM COMMAND

I gues one of your glorious C2490WD has a problem. Try to run "dd" on it to ensure they are working.

vgcfgbackup: Warning: couldn't query physical volume "":

looks strange, how about vgdisplay -v vg01 ?

Did you ever has a /dev/dsk/c0t4d0?


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!   
Prashanth.D.S
Honored Contributor

Re: ERROR WITH LVM COMMAND

Hi,

How many disks are configured for vg01, check all of them are seen in ioscan -fnC disk

Also try to run vgdisplay -v vg01 and check if all the LV's are available and syncd

As mentioned above run
#diskinfo /dev/rdsk/

I suspect a disk failure here, also check the ems log for io error on any of the disks.

Best Regards,
Prashanth
Miguel Carabano_1
Regular Advisor

Re: ERROR WITH LVM COMMAND

Hi,

#/etc/lvmconf> strings vg01.conf
CONFIG01
/dev/vg01
/dev/rdsk/c0t3d0
/dev/rdsk/c0t4d0
/dev/rdsk/c0t5d0
LVMREC01LA
LVMREC01LA
LVMREC01LA
VGDA0001
VGSA0001<
#/etc/lvmconf> strings vg01.conf.old
CONFIG01
/dev/vg01
/dev/rdsk/c0t3d0
/dev/rdsk/c0t4d0
/dev/rdsk/c0t5d0
LVMREC01LA
LVMREC01LA
LVMREC01LA
VGDA0001
VGSA00015

And

/dev/rdsk/c0t4d0 not already on the system.

/dev/vg01/lvol03 2035601 1686861 145179 92% /usr3
/dev/vg01/lvol01 2035601 1326326 505714 72% /usr1

ll /dev/vg01
total 0
crw-r--r-- 1 root sys 64 0x010000 Aug 5 1998 group
brw-r----- 1 root sys 64 0x010001 Aug 5 1998 lvol01
brw-r----- 1 root sys 64 0x010003 Aug 5 1998 lvol03
crw-r----- 1 root sys 64 0x010001 Mar 7 14:45 rlvol01
crw-r----- 1 root sys 64 0x010003 Mar 7 14:45 rlvol03

How i can force updated vg01.conf

Thanks
Torsten.
Acclaimed Contributor

Re: ERROR WITH LVM COMMAND

Your disk /dev/rdsk/c0t4d0 is missing, where is it? Seems to be dead, consider to replaced it.

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!   
Miguel Carabano_1
Regular Advisor

Re: ERROR WITH LVM COMMAND

Hi,

No, Replace!

Only update lvmconf all vg's
Torsten.
Acclaimed Contributor

Re: ERROR WITH LVM COMMAND

If you just removed the disk and not from the LVM configuration, "vgreduce -f vg01" may help you. I don't know about your OS version, but see "man vgreduce".

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!   
Miguel Carabano_1
Regular Advisor

Re: ERROR WITH LVM COMMAND

Hi,

HPUX 10.20

# vgreduce -f vg01
vgreduce: Couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group

# vgcfgbackup /dev/vg01
vgcfgbackup: Warning: couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgbackup: Warning: couldn't query all of the physical volumes.
vgcfgbackup: Couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgbackup: Couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group

Thanks
Miguel Carabano_1
Regular Advisor

Re: ERROR WITH LVM COMMAND

Hi,

I have in mind:
1. vgexport -p -s -v -m /tmp/hp/vg01.map /dev/vg01

2. umount FS

3. vgchange -a n vg01

4. vgexport -v vg01

5. mkdir /dev/vg01

6. mknod /dev/vg01/group c 64 0x010000

7. vgimport -v -s -m /tmp/hp/vg01.map /dev/vg01

8. vgchange -a y vg01

9. vgcfgbackup /dev/vg01

Done!