1850468 Members
2545 Online
104054 Solutions
New Discussion

lost PE!!??

 
Lalo_Weng
Advisor

lost PE!!??

Hi,

Pls. see the attachment of output for 'vgdisplay -v vg01', You can see that the alloc PE of vg is much much than total alloc PE for all LVs in this Vg. How can than be? Where are those space goes?

Thanks.
Keep finding is the way.
1 REPLY 1
S.K. Chan
Honored Contributor

Re: lost PE!!??

You got a missing lvol. The curr-lv=3 but you only got 2 LV shown (lvmaster and lvsybproc). Lets try this..

# ll /dev/vg01

and you should see 3 lvols in it. Make note of the minor and major number. The minor number will be used later for testing missing numbers. Notice the minor numbers increment like 0x000001 , 0x000002, 0x000003, etc...
Look for numbers that may have been skipped. Remember these numbers are HEX so they increment like 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,10,11,12..1a..1f

If 0x000008 was skipped then the following will need to be done where the 8 would be used instead of the #.

NOTE: Do not try minor numbers if they show up in the previous ll output. Only use ones that do not show up.

# mknod /dev/vg01/test# b 64 0x00000#

NOTE: The # in test# is used to correspond to the # in the minor number. This will help clean up later and make it easier to reference later in this document.

# pvdisplay -v /dev/dsk/c4t1d0
# pvdisplay -v /dev/dsk/c4t2d0
# pvdisplay -v /dev/dsk/c4t3d0

Look for ??? in the output. The ??? will go away when the correct missing minor number is used.

If the ??? is still displayed in the pvdisplay then try the next minor number. This needs to be repeated until the correct minor number is chosen. When the right minor number is chosen the ??? will go away and a lvol name will appear in their place. Make a note of this lvol name.

Once the lvol name has been found do the following

# mknod /dev/vg01/test# c 64 0x00000#
# lvremove /dev/vg01/test#

Clean up all the appropriate test# devices not used. Now when you do vgdisplay it should show curr-lv=2 and the PE calculation should be consistent.