Skip to content

Commit

Permalink
add striped-osd-prepare.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanders committed Aug 23, 2018
1 parent 2c6eedd commit d075bc7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ceph-volume/striped-osd-prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -x

lvols=$((100/24))

ls -l /dev/sda[a-w] /dev/sd[b-z] | awk '{ print $10 }' | \
while read d1; read d2; do
echo ceph-volume lvm zap $d1
echo ceph-volume lvm zap $d2
vgname=ceph-`uuid -v4`
lvname=osd-`uuid -v4`
cname=cache-`uuid -v4`
echo vgcreate $vgname $d1 $d2
echo lvcreate -i 2 -l 100%FREE -n $lvname $vgname
echo lvcreate -l $lvols%VG -n $cname cephrocks
echo ceph-volume lvm create --bluestore --data $vgname/$lvname --block.db cephrocks/$cname #--block.wal cephrocks/$cname
done

0 comments on commit d075bc7

Please sign in to comment.