Views:

Summary



A Red Hat block-level backup fails with the following message: x.x.x.x 2/1/2016 8:20:47 am SNBSNP3069E 140589284206656: Command /sbin/lvcreate --snapshot --size 3000M --permission r --name bex_snapshot.1507096598 /dev/SystemVG/root" failed, exit code = 5: (device-mapper: resume ioctl on failed: Invalid argument) x.x.x.x 2/1/2016 8:20:47 am SNBSNP3068W 140589284206656: Volume /boot was remounted with the original opts"

Resolution



To recover the volume, it is recommended that the pvresize change is backed-out and the PV size is restore to the original size.

Use vgcfgrestore -f /etc/lvm/backup/<vgname> <vgname> to restore the LVM2 metadata to a state before the change (be sure to use a metadata backup prior to the change from /etc/lvm/[archive|backup]).

Determine the old size and change the metadata back:

  • Check the size of the physical volume with pvs (this output shows DevSize is 60G);
  • #pvs
  • PV VG Fmt Attr PSize PFree DevSize PV UUID /dev/sdb1 VolGroup00 lvm2 a-- 90.00g 37.00g 60.00 g It5jBc-JE70-hlbnyFtg-CZ5l-mD2c-twu9xj
  • Resize the PV metadata back to the device size:
  • #pvresize --setphysicalvolumesize

For more information, refer to https://access.redhat.com/solutions/21240