diff --git a/pkg/lvm/lvm.go b/pkg/lvm/lvm.go index c741ec3e..d375e8c4 100644 --- a/pkg/lvm/lvm.go +++ b/pkg/lvm/lvm.go @@ -478,7 +478,7 @@ func CreateVG(name string, devicesPattern string) (string, error) { args := []string{"-v", name} args = append(args, physicalVolumes...) for _, tag := range tags { - args = append(args, "--add-tag", tag) + args = append(args, "--addtag", tag) } klog.Infof("create vg with command: vgcreate %v", args) cmd := exec.Command("vgcreate", args...) @@ -529,7 +529,7 @@ func CreateLVS(ctx context.Context, vg string, name string, size uint64, lvmType tags := []string{"lv.metal-stack.io/csi-lvm-driver"} for _, tag := range tags { - args = append(args, "--add-tag", tag) + args = append(args, "--addtag", tag) } args = append(args, vg) klog.Infof("lvcreate %s", args)