在vgcreate中使用“-Ay”“ - cy”选项

时间:2016-01-14 03:20:30

标签: linux lvm

vgcreate命令中的选项“-Ay”“-cy”有什么作用?我检查了手册页但无法找到它们。

例如:

vgcreate -Ay -cy cluster_vg /dev/vdb

1 个答案:

答案 0 :(得分:1)

来自vgcreate(8)手册页:

  -c, --clustered {y|n}
          If  clustered  locking is enabled, this defaults to y indicating
          that this Volume Group is shared with other nodes in  the  clus‐
          ter.

          If  the  new Volume Group contains only local disks that are not
          visible on the other nodes, you must specify --clustered n.   If
          the  cluster  infrastructure is unavailable on a particular node
          at a particular time, you may still be able to use  such  Volume
          Groups.

来自lvm(8)手册页:

   -A, --autobackup {y|n}
          Whether or not to metadata should  be  backed  up  automatically
          after  a  change.  You are strongly advised not to disable this!
          See vgcfgbackup(8).