Skip to content

Commit 6c23845

Browse files
Reduce steps for LVM group creation
1 parent e6fc68c commit 6c23845

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

node.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,8 @@ if [ -n "${cinder_volumes-}" ]; then
9191
if ! command -v vgs; then
9292
curl -fsSL http://bit.ly/install_pkg | PKG="lvm2" bash
9393
fi
94-
# Ensure that the volume is empty
95-
sudo dd if=/dev/zero of="$cinder_volumes" bs=512 count=1
96-
9794
# Creation of cinder LVM
98-
sudo vgcreate cinder-volumes "$cinder_volumes"
95+
sudo vgcreate cinder-volumes "$cinder_volumes" -f
9996
sudo vgs
10097
sudo pvdisplay
10198

0 commit comments

Comments
 (0)