lvchange -an 命令的作用: -a 选项后面跟的是卷的状态,n 表示非活动(inactive)。 -n 选项后面跟的是逻辑卷的名称。 因此,lvchange -an <lv_name> 命令的作用是将指定的逻辑卷 <lv_name> 设置为非活动状态。 调整卷大小的步骤: 首先,使用 lvchange -an <lv_name> 将snapshot...
Snapshot origin volumes can be resized only while inactive: try lvchange -an 出错原因: 被扩展的VG存在LVM快照(LVM snapshot),所以扩展VG时出现上面错误。因为这个LVM快照是PlateSpin使用,上面没有什么数据一定需要保留。所以使用lvremove删除逻辑卷LV,然后扩展VG。 最后创建LV解决。 解决方案 # stat /dev/VolG...
/dev/VolGroup01/LogVol00-PS-user-snapshot: read failed after 0 of 4096 at 4096: Input/output error Snapshot origin volumes can be resized only while inactive: try lvchange -an 出错原因: 被扩展的VG存在LVM快照(LVM snapshot),所以扩展VG时出现上面错误。因为这个LVM快照是PlateSpin使用,上面没有...
lvchange command examples 1. To control the availablability of logical volumes: # lvchange -a LV00 # lvchange --available LV00 # lvchange -ay LV00 (To activate) # lvchange -an LV00 (To deactivate) # lvchange -aey LV00 (In Cluster - Activate in one node) # lvchange -aly LV00 (In ...
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 device-mapper in the kern...
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...