Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1525

Swap facts are incorrect on AIX in Facter 3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • FACT 3.1.8, FACT 3.4.1
    • FACT 3.11.4
    • None
    • Hide

      On AIX, 'facter -p swapsize' returns the correct results.

      Show
      On AIX, 'facter -p swapsize' returns the correct results.
    • Platform OS
    • 3
    • Platform OS Kanban
    • Customer Feedback
    • Bug Fix
    • The AIX memory resolver has been fixed to handle overflow issues so that large amounts of swap space are reported correctly by Facter.

    Description

      Running PE 2016.2.0 on AIX 6, the swapsize and swapsize_mb facts report incorrect values.

      # swap -l
      device              maj,min        total       free
      /dev/hd6              10,  2     17216MB     17206MB
      # facter -p swapsize
      832.00 MiB
      # facter -p swapsize_mb
      832
      

      Recreated this issue on PE 2016.4.0 as well:

      # facter -p osfamily
      AIX
      # facter -p kernelversion
      6100
      # facter --version
      3.4.1 (commit d0f32490f41ca12722c13e4c48d4572ae4f9bfdc)
      # lsps -a
      Page Space      Physical Volume   Volume Group Size %Used Active  Auto  Type Chksum
      hd6             hdisk0            rootvg       17216MB     1   yes   yes    lv     0
      # swap -l
      device              maj,min        total       free
      /dev/hd6              10,  2     17216MB     17206MB
      # facter -p swapsize
      832.00 MiB
      # facter -p swapsize_mb
      832
      

      Attachments

        Issue Links

          Activity

            People

              enis.inan Enis Inan
              adam.bottchen Adam Bottchen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support