Operating System - HP-UX
1823716 Members
3913 Online
109664 Solutions
New Discussion юеВ

current lv not equal to open lv

 
madhuchakkaravarthy
Trusted Contributor

current lv not equal to open lv

my guess is some of the minor no are removed,how to find the exact minor no .

in pvdisplay -v output i can see some ??? for some extents

vgdisplay output

--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 26
Open LV 25
Max PV 255
Cur PV 1
Act PV 1
Max PE per PV 13123
VGDA 2
PE Size (Mbytes) 64
Total PE 13122
Alloc PE 7927
Free PE 5195
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 214167360m
VG Max Extents 3346365

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 26624
Current LE 416
Allocated PE 416
Used PV 1

LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol5
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol6
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol10
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol11
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol12
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol13
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol16
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol17
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol18
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol19
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol20
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol21
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol22
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol23
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol24
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol25
LV Status available/syncd
LV Size (Mbytes) 63488
Current LE 992
Allocated PE 992
Used PV 1

LV Name /dev/vg01/lvol32
LV Status available/syncd
LV Size (Mbytes) 35840
Current LE 560
Allocated PE 560
Used PV 1
LV Name /dev/vg01/lvol35
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol36
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol37
LV Status available/syncd
LV Size (Mbytes) 12288
Current LE 192
Allocated PE 192
Used PV 1

LV Name /dev/vg01/oracle10
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 13122
Free PE 5195
Autoswitch On
Proactive Polling On

regards

MC
7 REPLIES 7
Manix
Honored Contributor

Re: current lv not equal to open lv

Do we have both the raw & block device files for each lvol under/dev/vg01.

pvdisplay showing "???" fora particular lv
..if that so can we identify that please.
HP-UX been always lovable - Mani Kalra
madhuchakkaravarthy
Trusted Contributor

Re: current lv not equal to open lv

/dev/vg01>ll
total 0
crw-r----- 1 root sys 64 0x010000 Dec 11 2009 group
brw-r----- 1 root sys 64 0x010001 Dec 11 2009 lvol1
brw-r----- 1 root sys 64 0x01000a Dec 11 2009 lvol10
brw-r----- 1 root sys 64 0x01000b Dec 11 2009 lvol11
brw-r----- 1 root sys 64 0x01000c Dec 11 2009 lvol12
brw-r----- 1 root sys 64 0x01000d Dec 11 2009 lvol13
brw-r----- 1 root sys 64 0x010010 Dec 11 2009 lvol16
brw-r----- 1 root sys 64 0x010011 Dec 11 2009 lvol17
brw-r----- 1 root sys 64 0x010012 Dec 11 2009 lvol18
brw-r----- 1 root sys 64 0x010013 Dec 11 2009 lvol19
brw-r----- 1 root sys 64 0x010002 Dec 11 2009 lvol2
brw-r----- 1 root sys 64 0x010014 Dec 11 2009 lvol20
brw-r----- 1 root sys 64 0x010015 Dec 11 2009 lvol21
brw-r----- 1 root sys 64 0x010016 Dec 11 2009 lvol22
brw-r----- 1 root sys 64 0x010017 Dec 11 2009 lvol23
brw-r----- 1 root sys 64 0x010018 Dec 11 2009 lvol24
brw-r----- 1 root sys 64 0x010019 Dec 11 2009 lvol25
brw-r----- 1 root sys 64 0x010003 Dec 11 2009 lvol3
brw-r----- 1 root sys 64 0x010020 Dec 11 2009 lvol32
brw-r----- 1 root sys 64 0x010023 Dec 11 2009 lvol35
brw-r----- 1 root sys 64 0x010024 Dec 11 2009 lvol36
brw-r----- 1 root sys 64 0x010025 Dec 11 2009 lvol37
brw-r----- 1 root sys 64 0x010004 Dec 11 2009 lvol4
brw------- 1 root sys 64 0x100028 Jan 15 19:43 lvol42
brw-r----- 1 root sys 64 0x010005 Dec 11 2009 lvol5
brw-r----- 1 root sys 64 0x010006 Dec 11 2009 lvol6
brw------- 1 root sys 64 0x010027 Jan 28 2010 oracle10
crw-r----- 1 root sys 64 0x010001 Dec 11 2009 rlvol1
crw-r----- 1 root sys 64 0x01000a Dec 11 2009 rlvol10
crw-r----- 1 root sys 64 0x01000b Dec 11 2009 rlvol11
crw-r----- 1 root sys 64 0x01000c Dec 11 2009 rlvol12
crw-r----- 1 root sys 64 0x01000d Dec 11 2009 rlvol13
crw-r----- 1 root sys 64 0x010010 Dec 11 2009 rlvol16
crw-r----- 1 root sys 64 0x010011 Dec 11 2009 rlvol17
crw-r----- 1 root sys 64 0x010012 Dec 11 2009 rlvol18
crw-r----- 1 root sys 64 0x010013 Dec 11 2009 rlvol19
crw-r----- 1 root sys 64 0x010002 Dec 11 2009 rlvol2
crw-r----- 1 root sys 64 0x010014 Dec 11 2009 rlvol20
crw-r----- 1 root sys 64 0x010015 Dec 11 2009 rlvol21
crw-r----- 1 root sys 64 0x010016 Dec 11 2009 rlvol22
crw-r----- 1 root sys 64 0x010017 Dec 11 2009 rlvol23
crw-r----- 1 root sys 64 0x010018 Dec 11 2009 rlvol24
crw-r----- 1 root sys 64 0x010019 Dec 11 2009 rlvol25
crw-r----- 1 root sys 64 0x010003 Dec 11 2009 rlvol3
crw-r----- 1 root sys 64 0x010020 Dec 11 2009 rlvol32
crw-r----- 1 root sys 64 0x010023 Dec 11 2009 rlvol35
crw-r----- 1 root sys 64 0x010024 Dec 11 2009 rlvol36
crw-r----- 1 root sys 64 0x010025 Dec 11 2009 rlvol37
crw-r----- 1 root sys 64 0x010004 Dec 11 2009 rlvol4
crw------- 1 root sys 64 0x100028 Jan 15 19:44 rlvol42
crw-r----- 1 root sys 64 0x010005 Dec 11 2009 rlvol5
crw-r----- 1 root sys 64 0x010006 Dec 11 2009 rlvol6
crw------- 1 root sys 64 0x010027 Jan 28 2010 roracle10
-rw------- 1 root sys 0 Jan 15 10:04 vgdisplay
============================


pvdisplay output


pvdisplay -v /dev/dsk/c1t0d0 | grep -i ??? | more
09408 current ??? 00000
09409 current ??? 00001
09410 current ??? 00002
09411 current ??? 00003
09412 current ??? 00004
09413 current ??? 00005
09414 current ??? 00006
09415 current ??? 00007
09416 current ??? 00008
09417 current ??? 00009
09418 current ??? 00010
09419 current ??? 00011
09420 current ??? 00012
09421 current ??? 00013
09422 current ??? 00014
09423 current ??? 00015
09424 current ??? 00016
09425 current ??? 00017
09426 current ??? 00018
09427 current ??? 00019
09428 current ??? 00020
09429 current ??? 00021
09430 current ??? 00022
09431 current ??? 00023
09432 current ??? 00024
09433 current ??? 00025
09434 current ??? 00026
09435 current ??? 00027
09436 current ??? 00028
09437 current ??? 00029
09438 current ??? 00030
09439 current ??? 00031
09440 current ??? 00032
pvdisplay -v /dev/dsk/c1t0d0 | grep -i ??? |wc -l
391

regards

MC
hbhua_231
Advisor

Re: current lv not equal to open lv

HI,pleae post:

pvdisplay -v /dev/dsk/c1t0d0 | grep -i 09407

and
pvdisplay -v /dev/dsk/c1t0d0 | grep -i 09441

so you can recreate the removed lv.
Jose Mosquera
Honored Contributor

Re: current lv not equal to open lv

Hi,

Run "lvdisplay -v" on all the logical volumes in the volume group and see if any extents are mapped to an unavailable physical volume. The lvdisplay command shows '???' for the physical volume if it is unavailable.

To determine wich logical extents are mapped as unavailable on a mirrored disk couples:
#lvdisplay -v /dev/vg[nn]/lvol[nn]|grep -e /dev/dsk/c[n]t[n]d[n] -e '???'

Rgds.
Manix
Honored Contributor

Re: current lv not equal to open lv

Yes ..Looks we need to recreate one of the lvol.

Thanks

Manix
HP-UX been always lovable - Mani Kalra
madhuchakkaravarthy
Trusted Contributor

Re: current lv not equal to open lv

@ jose : To determine wich logical extents are mapped as unavailable on a mirrored disk couples:
#lvdisplay -v /dev/vg[nn]/lvol[nn]|grep -e /dev/dsk/c[n]t[n]d[n] -e '???'------------>

they are not in mirrored

regards

MC
hbhua_231
Advisor

Re: current lv not equal to open lv

HI,pleae post:

pvdisplay -v /dev/dsk/c1t0d0 | grep -i 09407

and
pvdisplay -v /dev/dsk/c1t0d0 | grep -i 09441