Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Pvcreate should force creation
Browse files Browse the repository at this point in the history
This will ensure that if a raw disk had a partition it will destroy it
  • Loading branch information
Luis Pabón committed Apr 26, 2016
1 parent 2aa90b8 commit 541e889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executors/sshexec/device.go
Expand Up @@ -40,7 +40,7 @@ func (s *SshExecutor) DeviceSetup(host, device, vgid string) (d *executors.Devic

// Setup commands
commands := []string{
fmt.Sprintf("sudo pvcreate --metadatasize=128M --dataalignment=256K %v", device),
fmt.Sprintf("sudo pvcreate -f --metadatasize=128M --dataalignment=256K %v", device),
fmt.Sprintf("sudo vgcreate %v %v", s.vgName(vgid), device),
}

Expand Down

0 comments on commit 541e889

Please sign in to comment.