![pvscan --activate:`命令不接受选项:--activate ay。`](https://linux22.com/image/117800/pvscan%20--activate%EF%BC%9A%60%E5%91%BD%E4%BB%A4%E4%B8%8D%E6%8E%A5%E5%8F%97%E9%80%89%E9%A1%B9%EF%BC%9A--activate%20ay%E3%80%82%60.png)
我正在尝试弄清楚如何使用pvscan --activate
.
这手册页说:
-a|--activate y|n|ay Auto-activate LVs in a VG when the PVs scanned have completed the VG. (Only ay is applicable.)
我试过了:
# pvscan --activate y
Command does not accept option: --activate y.
# pvscan --activate n
Command does not accept option: --activate n.
# pvscan --activate ay
Command does not accept option: --activate ay.
# pvscan --activate
pvscan: option '--activate' requires an argument
Error during parsing of command line.
我在跑:
# pvscan --version
LVM version: 2.02.173(2) (2017-07-20)
Library version: 1.02.142 (2017-07-20)
Driver version: 4.35.0
Configuration: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --with-udev-prefix=/usr --with-systemdsystemunitdir=/usr/lib/systemd/system --with-default-pid-dir=/run --with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm --enable-pkgconfig --enable-readline --enable-dmeventd --enable-cmdlib --enable-applib --enable-udev_sync --enable-udev_rules --with-default-locking-dir=/run/lock/lvm --enable-lvmetad --with-thin=internal --with-cache=internal --enable-udev-systemd-background-jobs
我如何调用pvscan --activate
?
答案1
使用建议手册页建议--activate
仅适用于--cache
pvscan --cache
[ -b|--background ]
[ -a|--activate ay ]
[ -j|--major Number ]
[ --minor Number ]
[ COMMON_OPTIONS ]
[ String|PV ... ]