Sample Header Ad - 728x90

LVM VG/LV is not activated at system startup

0 votes
2 answers
4832 views
I have two multipath devices configured mpathb (36005076300808b3e9000000000000007) dm-1 IBM,2145 size=16T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw |-+- policy='service-time 0' prio=50 status=active | `- 1:0:1:1 sde 8:64 active ready running `-+- policy='service-time 0' prio=10 status=enabled `- 1:0:0:1 sdc 8:32 active ready running mpatha (36005076300808b3e9000000000000006) dm-0 IBM,2145 size=16T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw |-+- policy='service-time 0' prio=50 status=active | `- 1:0:0:0 sdb 8:16 active ready running `-+- policy='service-time 0' prio=10 status=enabled `- 1:0:1:0 sdd 8:48 active ready running For each of them I created a PV/VG/LV $ sudo pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpatha vg0 lvm2 a-- <16.00t 0 /dev/mapper/mpathb vg1 lvm2 a-- <16.00t 0 After rebooting, my VG/LV is not activated. $ sudo systemctl status lvm2-pvscan@254:0.service ● lvm2-pvscan@254:0.service - LVM event activation on device 254:0 Loaded: loaded (/lib/systemd/system/lvm2-pvscan@.service; static) Active: failed (Result: exit-code) since Mon 2022-04-11 21:58:53 MSK; 14min ago Docs: man:pvscan(8) Process: 803 ExecStart=/sbin/lvm pvscan --cache --activate ay 254:0 (code=exited, status=5) Main PID: 803 (code=exited, status=5) CPU: 10ms Apr 11 21:58:53 cephnode-1 systemd: Starting LVM event activation on device 254:0... Apr 11 21:58:53 cephnode-1 lvm: pvscan PV /dev/mapper/mpatha is duplicate for PVID un8VgmPbM5dheccMCCmmMzr4UGcO3Gau on 254:0 and 8:16. Apr 11 21:58:53 cephnode-1 lvm: pvscan PV /dev/mapper/mpatha failed to create online file. Apr 11 21:58:53 cephnode-1 systemd: lvm2-pvscan@254:0.service: Main process exited, code=exited, status=5/NOTINSTALLED Apr 11 21:58:53 cephnode-1 systemd: lvm2-pvscan@254:0.service: Failed with result 'exit-code'. Apr 11 21:58:53 cephnode-1 systemd: Failed to start LVM event activation on device 254:0. /etc/lvm/lvm.conf: filter = [ "a|/dev/mapper/mpath.*|", "r|.*|" ] What do I have to do to make the VG/LV activation work when I boot up the system? Thanks in advance.
Asked by async await (3 rep)
Apr 11, 2022, 07:20 PM
Last activity: Feb 8, 2023, 12:40 AM