Operating System - HP-UX
1752782 Members
6204 Online
108789 Solutions
New Discussion

Unable to lvcreate / lvextend on volume groups (HP11.31)

 
Mark Parsons
Valued Contributor

Unable to lvcreate / lvextend on volume groups (HP11.31)

Hi - We have an issue where we are unable to lvcreate / lvextend on any of our volume groups. The example I will use is from a new disk that has been supplied to us (16gb):

pvcreate /dev/rdisk/disk235

vgcreate -V 2.2 -S "4t" -s 32 vg7004 /dev/disk/disk235

vgdisplay -v vg7004:

     [17]> vgdisplay -v vg7004
--- Volume groups ---
VG Name                     /dev/vg7004
VG Write Access             read/write
VG Status                   available
Max LV                      2047
Cur LV                      0
Open LV                     0
Cur Snapshot LV             0
Max PV                      2048
Cur PV                      1
Act PV                      1
Max PE per PV               131072
VGDA                        2
PE Size (Mbytes)            32
Unshare unit size (Kbytes)  1024
Total PE                    511
Alloc PE                    0
Current pre-allocated PE    0
Free PE                     511
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  2.2

VG Max Size                 4t
VG Max Extents              131072
Cur Snapshot Capacity       0p
Max Snapshot Capacity       4t

   --- Physical volumes ---
   PV Name                     /dev/disk/disk235
   PV Status                   available
   Total PE                    511
   Free PE                     511
   Current pre-allocated PE    0
   Autoswitch                  On
   Proactive Polling           On

 

All good so far but then:

    [18]> /usr/sbin/lvcreate -L 14000 vg7004
Warning: rounding up logical volume size to extent boundary at size "14016" MB.
Logical volume "/dev/vg7004/lvol1" has been successfully created with
character device "/dev/vg7004/rlvol1".
lvcreate: Couldn't query the allocation map of the physical volume:
Bad address
lvcreate: Couldn't retrieve the allocation map of
physical volume "/dev/disk/disk235".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vg7004/lvol1" could not be extended.
Run the "lvextend" command to create space on the Logical Volume.
hpux70:[opsroot]/dev/rdisk
     [19]>

vgdisplay shows:

     [19]> vgdisplay -v vg7004
--- Volume groups ---
VG Name                     /dev/vg7004
VG Write Access             read/write
VG Status                   available
Max LV                      2047
Cur LV                      1
Open LV                     1
Cur Snapshot LV             0
Max PV                      2048
Cur PV                      1
Act PV                      1
Max PE per PV               131072
VGDA                        2
PE Size (Mbytes)            32
Unshare unit size (Kbytes)  1024
Total PE                    511
Alloc PE                    0
Current pre-allocated PE    0
Free PE                     511
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  2.2

VG Max Size                 4t
VG Max Extents              131072
Cur Snapshot Capacity       0p
Max Snapshot Capacity       4t
   --- Logical volumes ---
   LV Name                     /dev/vg7004/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            0
   Current LE                  0
   Allocated PE                0
   Used PV                     0

   --- Physical volumes ---
   PV Name                     /dev/disk/disk235
   PV Status                   available
   Total PE                    511
   Free PE                     511
   Current pre-allocated PE    0
   Autoswitch                  On
   Proactive Polling           On
 
So logical volume has been created empty!
 
This is happening across all the disks / volume groups (so not just disk235 / vg7004)- all lvcreate's / lvextend's are failing.
 
Any suggestions please?

 

 

8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

A common mistake is to present a volume from a SAN device to a HP-UX host not specifying the special HP-UX mode (maybe in default mode or whatever).


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!   
Mark Parsons
Valued Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

Hi - thanks for the reply but we do have previous volume groups with logical volumes that are still working. Its anything that is either now being lvextended or is new and is so being lvcreated.

Are you saying that our storage team have done something in the (re)presentation of disks or is this something that we can do?

Torsten.
Acclaimed Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

Let the storage team compare the working and non working LUNs. Presentation mode is important, thin vs. thick *may* be important too.


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!   
Mark Parsons
Valued Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

All the original luns were working at some point (which is the reason we could originally lvcreate / lvextend) but now we cannot do this - whether the luns are original or new.

I shall get our storage team to compare the lun presentaton on this server to another hpux server (where all is fine). 

However wouldnt the wrong kind of lun presentation affect pvcreate and vgcreate before an lvcreate / lvextend was required?

Patrick Wallek
Honored Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

According to an article I just found in HP's knowledge base says that a mismatch of LVM driver versions was a culprit at one point. 

    Check the Logical Volume Manager (LVM) version with swlist and also the LVM kernel driver module:


      BaseLVM         B.11.31.1108   Logical Volume Manager

    # LVM                        B.11.31.1008 LVM
      LVM.LVM-KRN                B.11.31.1008 HP-UX Kernel support for the Logical 
      LVM.LVM-RUN                B.11.31.1003 LVM Runtime
      LVM.LVMP-DOC               B.11.31.1008 LVM Provider Documentation common to
      LVM.LVMP-LIB               B.11.31.1008 LVM Provider Library files for IPF
      LVM.LVMP-RUN               B.11.31.1003 LVM Provider runtime software common   
      LVM.LVMPRIME-KRN           B.11.31.1003 HP-UX Kernel support for the Logical 

    # LVM-Core                   B.11.31      HP-UX Kernel support for the Logical
      LVM-Core.LVM-CORE-KRN      B.11.31      HP-UX Kernel support for the Logical 
    # LVM-MirrorDisk             B.11.31      MirrorDisk/UX
      LVM-MirrorDisk.LVM-MIRROR  B.11.31      HP-UX support for the MirrorDisk/UX


    # what /etc/conf/mod/lvmp  
    /etc/conf/mod/lvmp:           $Revision: lvmp:    B.11.31.1003_LR 

This is the main cause. From the output above, the filesets of LVM were mixed between B.11.31.1003 and B.11.31.1008. In addition, there was a mismatched LVM driver module.

Fix:
Either re-install the BaseLVM product with the same version (B.11.31.1008) or install the latest one. At the time of this document, the latest BaseLVM version is B.11.31.1009.01. Please refer to the HP Software Depot home:

    NOTE: The installation of BaseLVM product requires a reboot.

    For this problem, the BaseLVM B.11.31.1008 was re-installed.

    After the reboot, the driver module should show:


    # what /etc/conf/mod/lvmp
    /etc/conf/mod/lvmp:
             $Revision: lvmp:    B.11.31.1108
Mark Parsons
Valued Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

We are running:

swlist | grep LVM

  BaseLVM                                       B.11.31.1009.01 Logical Volume Manager

what /etc/conf/mod/lvmp


/etc/conf/mod/lvmp:
         $Revision: lvmp:    B.11.31.1009_LR

Patrick Wallek
Honored Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

What does the following show?

# swlist -l fileset | grep LVM

Mark Parsons
Valued Contributor

Re: Unable to lvcreate / lvextend on volume groups (HP11.31)

    [1]> swlist -l fileset | grep LVM
# LVM                                           B.11.31.1009.01 LVM
  LVM.LVM-ENG-A-MAN                             B.11.31.1009.01 LVM Manual Pages
 for HP-UX
  LVM.LVM-FRE-I-MSG                             B.11.31.1009.01 LVM command mess
age catalog for French iso8859-1
  LVM.LVM-FRE-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for French utf8
  LVM.LVM-GER-I-MSG                             B.11.31.1009.01 LVM command mess
age catalog for German iso8859-1
  LVM.LVM-GER-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for German utf8
  LVM.LVM-ITA-I-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Italian iso8859-1
  LVM.LVM-ITA-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Italian utf8
  LVM.LVM-JPN-E-MAN                             B.11.31.1009.01 LVM Manual Pages
 for HP-UX
  LVM.LVM-JPN-E-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Japanese euc
  LVM.LVM-JPN-S-MAN                             B.11.31.1009.01 LVM Manual Pages
 for HP-UX
  LVM.LVM-JPN-S-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Japanese sjis

  LVM.LVM-JPN-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Japanese utf8
  LVM.LVM-KOR-E-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Korean euc
  LVM.LVM-KOR-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Korean utf8
  LVM.LVM-KRN                                   B.11.31.1009.01 HP-UX Kernel sup
port for the Logical Volume Manager
  LVM.LVM-RUN                                   B.11.31.1009.01 LVM Runtime
  LVM.LVM-SCH-H-MSG                             B.11.31.1009.01 LVM command mess
age catalog for S-Chinese GB-2312 & GB18030
  LVM.LVM-SCH-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for S-Chinese utf8
  LVM.LVM-SPA-I-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Spanish iso8859-1
  LVM.LVM-SPA-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for Spanish utf8
  LVM.LVM-TCH-B-MSG                             B.11.31.1009.01 LVM command mess
age catalog for T-Chinese big5
  LVM.LVM-TCH-E-MSG                             B.11.31.1009.01 LVM command mess
age catalog for T-Chinese euc
  LVM.LVM-TCH-U-MSG                             B.11.31.1009.01 LVM command mess
age catalog for T-Chinese utf8

  LVM.LVMP-DOC                                  B.11.31.1009.01 LVM Provider Doc
umentation common to PA and IPF
  LVM.LVMP-LIB                                  B.11.31.1009.01 LVM Provider Lib
rary files for IPF Platforms
  LVM.LVMP-RUN                                  B.11.31.1009.01 LVM Provider run
time software common to PA and IPF
  LVM.LVMPRIME-KRN                              B.11.31.1009.01 HP-UX Kernel sup
port for the Logical Volume Manager (PRIME)
# LVM-Core                                      B.11.31        HP-UX Kernel supp
ort for the logical volume manager
  LVM-Core.LVM-CORE-KRN                         B.11.31        HP-UX Kernel supp
ort for the Logical Volume Manager
# LVM-MirrorDisk                                B.11.31        MirrorDisk/UX
  LVM-MirrorDisk.LVM-MIRROR                     B.11.31        HP-UX support for
 the MirrorDisk/UX
# PHKL_42711                                    1.0            PRM/FSS cumulativ
e patch with LVM enhancement