-a|--activatey|n|ay Change the active state of LVs. An active LV can be used through a block device, allowing data on the LV to be accessed.ymakes LVs active, or available.nmakes LVs inactive, or unavailable. The block device for the LV is added or removed from the system using ...
例如,要将逻辑卷/dev/vg1/linuxcool_v1设置为不可用,可以执行:[root@linuxcool~]# lvchange -ay /dev/vg1/linuxcool_v1。更改权限为只读或读写时,相应命令为:lvchange -prvg1/linuxcool_v1 或 lvchange -prwvg1/linuxcool_v1。
# lvremove [LV path] 3. Remove the Physical Volume from the Volume Group: # vgreduce [volume group] [physical volume] lvchange command examples 1. To control the availablability of logical volumes: # lvchange -a LV00 # lvchange --available LV00 # lvchange -ay LV00 (To activate) # lvch...
available 參数实为: -a, --activate [a|e|l]{y|n} Controls the availability of the logical volumes for use. Communicates with the kernel device-mapper driver via libdevmapper to activate (-ay) or deactivate (-an) the logical volumes. If autoactivation option is used (-aay), the logical...
available 參数实为: -a, --activate [a|e|l]{y|n} Controls the availability of the logical volumes for use. Communicates with the kernel device-mapper driver via libdevmapper to activate (-ay) or deactivate (-an) the logical volumes. If autoactivation option is used (-aay), the logical...
在调整大小完成后,如果需要,可以使用 lvchange -ay <lv_name> 命令将逻辑卷重新激活为活动状态。 -a 选项后面跟的是 y,表示活动(active)。 示例代码如下: bash # 将逻辑卷设置为非活动状态 lvchange -an my_snapshot_origin_volume # 调整逻辑卷大小(例如,扩展到10G) lvextend -L 10G my_snapshot...