* [linux-lvm] Problem with pvscan --cache -aay $pv (lvm2-pvscan@.service) on raid type LV
@ 2021-06-28 8:58 Tom Yan
0 siblings, 0 replies; only message in thread
From: Tom Yan @ 2021-06-28 8:58 UTC (permalink / raw)
To: linux-lvm
Hi,
I notice that `pvscan --cache -aay $pv` will not activate LV(s) of
raid type even when all of its/their legs are up. Only `pvscan --cache
-aay` (without a PV specified) will activate such LV(s). Is it some
kind of bug / regression?
[tom@archlinux ~]$ sudo lvchange -an /dev/green/meh
[tom@archlinux ~]$ sudo lvs green/meh
LV VG Attr LSize Pool Origin Data% Meta% Move Log
Cpy%Sync Convert
meh green rwi---r--- 512.00m
[tom@archlinux ~]$ sudo pvscan --cache -aay /dev/sda2
pvscan[5800] PV /dev/sda2 online, VG green is complete.
pvscan[5800] VG green skip autoactivation.
[tom@archlinux ~]$ sudo pvscan --cache -aay /dev/sdb
pvscan[5802] PV /dev/sdb online, VG green is complete.
pvscan[5802] VG green skip autoactivation.
[tom@archlinux ~]$ sudo lvs green/meh
LV VG Attr LSize Pool Origin Data% Meta% Move Log
Cpy%Sync Convert
meh green rwi---r--- 512.00m
[tom@archlinux ~]$ sudo pvscan --cache -aay
pvscan[5806] PV /dev/sda2 online, VG green incomplete (need 1).
pvscan[5806] PV /dev/sdb online, VG green is complete.
pvscan[5806] VG green run autoactivation.
5 logical volume(s) in volume group "green" now active
[tom@archlinux ~]$ sudo lvs green/meh
LV VG Attr LSize Pool Origin Data% Meta% Move Log
Cpy%Sync Convert
meh green rwi-a-r--- 512.00m
100.00
What I expect is that, if the command is run on any of the legs, such
LV will be activated as long as all of the legs are up.
Regards,
Tom
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-28 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 8:58 [linux-lvm] Problem with pvscan --cache -aay $pv (lvm2-pvscan@.service) on raid type LV Tom Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).