The pvmove command in test mode fails with : "Command failed with status code 5"

Solution Verified - Updated -

Issue

  • The pvmove command in test mode fails with : "Command failed with status code 5"

    # pvscan
      PV /dev/mapper/mpath3p1   VG nfsVG   lvm2 [549.94 GB / 0    free]
      PV /dev/mapper/mpath3p2   VG nfsVG   lvm2 [49.97 GB / 0    free]
      PV /dev/mapper/mpath3p3   VG nfsVG   lvm2 [399.94 GB / 0    free]
      PV /dev/mapper/mpath3p4   VG nfsVG   lvm2 [599.97 GB / 7.75 GB free]
      PV /dev/mapper/mpath2p1   VG nfsVG   lvm2 [2.50 TB / 2.50 TB free]
      Total: 5 [2.06 TB] / in use: 5 [2.06 TB] / in no VG: 0 [0   ]
    
    # vgdisplay
      --- Volume group ---
      VG Name               nfsVG
      System ID             bbnfs1226701655
      Format                lvm2
      Metadata Areas        5
      Metadata Sequence No  10
      VG Access             read/write
      VG Status             resizable
      MAX LV                256
      Cur LV                1
      Open LV               1
      Max PV                256
      Cur PV                5
      Act PV                5
      VG Size               4.06 TB
      PE Size               32.00 MB
      Total PE              133113
      Alloc PE / Size       50946 / 1.55 TB
      Free  PE / Size       82167 / 2.51 TB
      VG UUID               SA5pHk-DjNb-3OaR-x2aZ-6S5i-LsDk-ad8lJ1
    
    
    [root@bbnfs ~]# pvmove -tv /dev/mapper/mpath3p2 /dev/mapper/mpath2p1
      Test mode: Metadata will NOT be updated.
        Finding volume group "nfsVG"
        Test mode: Skipping archiving of volume group.
        Creating logical volume pvmove0
        Moving 1599 extents of logical volume nfsVG/bbnfs
        Found volume group "nfsVG"
        Updating volume group metadata
        Test mode: Skipping volume group backup.
        Found volume group "nfsVG"
        Found volume group "nfsVG"
        Found volume group "nfsVG"
        Test mode: Wiping internal cache
        Wiping internal VG cache
      Command failed with status code 5.
    
  • What does "Command failed with status code 5" at the end mean? What if the command is run without test mode.

Environment

  • Red Hat Enterprise Linux 5.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

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