我正在尝试弄清楚如何使用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 ... ]