LVM : One or more devices used as PVs in VG have changed sizes
LVM : One or more devices used as PVs in VG have changed sizes
You must have come across this issue as an administrator. You have extended the size of the LUN but did not follow correct steps to follow extend it in LVM. To fix the issue.
Error:
One or more devices used as PVs in VG ORALOGS have changed sizes.
device-mapper: resume ioctl on (251:8) failed: Invalid argument
Unable to resume ORALOGS-archlogs (251:8)
Red Hat |
Solution:
1. check the Device size in multipath output.
[root@ORADB36 ~]# multipath -ll
STOR05-IFS25-LOGS01 (36486fd25560a93e0ed24d9ae89bb039b) dm-6 MSFT ,STORSIMPLE 8100
size=2.4T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
`- 14:0:0:15 sdg 8:96 active ready running
2. VG activation is giving error.STOR05-IFS25-LOGS01 (36486fd25560a93e0ed24d9ae89bb039b) dm-6 MSFT ,STORSIMPLE 8100
size=2.4T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
`- 14:0:0:15 sdg 8:96 active ready running
[root@ORADB36 ~]# vgchange -ay ORALOGS
WARNING: Device /dev/mapper/STOR05-IFS25-LOGS01 has size of 5242880000 sectors which is smaller than corresponding PV size of 5452593152 sectors. Was device resized?
One or more devices used as PVs in VG ORALOGS have changed sizes.
device-mapper: resume ioctl on (251:8) failed: Invalid argument
Unable to resume ORALOGS-archlogs (251:8)
1 logical volume(s) in volume group "ORALOGS" now active
[root@ORADB36 ~]#
3. Now Restore the VG.WARNING: Device /dev/mapper/STOR05-IFS25-LOGS01 has size of 5242880000 sectors which is smaller than corresponding PV size of 5452593152 sectors. Was device resized?
One or more devices used as PVs in VG ORALOGS have changed sizes.
device-mapper: resume ioctl on (251:8) failed: Invalid argument
Unable to resume ORALOGS-archlogs (251:8)
1 logical volume(s) in volume group "ORALOGS" now active
[root@ORADB36 ~]#
[root@ORADB36 ~]# vgcfgrestore -f /etc/lvm/archive/ORALOGS_00002-820455485.vg ORALOGS
Restored volume group ORALOGS
[root@ORADB36 ~]#
4. Check that restores VG size.Restored volume group ORALOGS
[root@ORADB36 ~]#
[root@ORADB36 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/ORADB36_DATA1 ORADB36U01 lvm2 a-- 7.00t 512.00g
/dev/mapper/STOR03-IFS25-BCK01 STORBCK lvm2 a-- 2.00t 0
/dev/mapper/STOR05-IFS25-LOGS01 ORALOGS lvm2 a-- 1.46t 0
/dev/sda5 ol lvm2 a-- 555.33g 0
[root@ORADB36 ~]#
PV VG Fmt Attr PSize PFree
/dev/mapper/ORADB36_DATA1 ORADB36U01 lvm2 a-- 7.00t 512.00g
/dev/mapper/STOR03-IFS25-BCK01 STORBCK lvm2 a-- 2.00t 0
/dev/mapper/STOR05-IFS25-LOGS01 ORALOGS lvm2 a-- 1.46t 0
/dev/sda5 ol lvm2 a-- 555.33g 0
[root@ORADB36 ~]#
[root@ORADB36 ~]#
[root@ORADB36 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
ORADB36U01 1 1 0 wz--n- 7.00t 512.00g
STORBCK 1 1 0 wz--n- 2.00t 0
ORALOGS 1 1 0 wz--n- 1.46t 0
ol 1 4 0 wz--n- 555.33g 0
5. Now proceed with Normal pv and lv extend steps.
No comments