Why does the 'lvs' command warns about "Internal error: Using string as sort value for numerical field" ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6.4
  • lvm2-2.02.98-9.el6.x86_64, lvm2-2.02.100-8.el6.x86_64

Issue

  • Why does the 'lvs' command warns about "Internal error: Using string as sort value for numerical field" ?
  • lvs command throws the following message ,
  Internal error: Using string as sort value for numerical field.
  Internal error: Using string as sort value for numerical field.
  Internal error: Using string as sort value for numerical field.
  Internal error: Using string as sort value for numerical field.
  LV         VG     Attr      LSize   Pool Origin Data%  Move Log Cpy%Sync Convert
  test_lv    dbvg   -wi-ao---  20.00g                                             
  test1_lv   dbvg   -wi-ao---  60.00g                                             
  test11G_lv dbvg   -wi-ao---  30.00g

Resolution

Update lvm2* package(s) if device-mapper* packages have been updated on the server.

Root Cause

The error "Internal error: Using string as sort value for numerical field" is usually seen when the device-mapper* packages are updated on the server. The messages are because of the patch added to catch invalid use of string sort values when reporting numerical fields.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.