diff options
author | Justin chi <chigang@huawei.com> | 2015-10-13 11:37:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-13 11:37:08 +0000 |
commit | 6cea13a2abbc7292c74de0bdf667d285e746845e (patch) | |
tree | 525da08d322910fb38a2f63ad895886c44604fd7 /deploy/adapters/ansible | |
parent | 81ff26c74d43cc45bd8357685f58559d34655560 (diff) | |
parent | 679858461f1f25ad5f03704b60ac76f44eabd344 (diff) |
Merge "make full use of disk space for ceph deployment"
Diffstat (limited to 'deploy/adapters/ansible')
-rw-r--r-- | deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh index 0715e81c..13e5fd8a 100644 --- a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh +++ b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh @@ -13,7 +13,7 @@ rm -f /ceph/images/ceph-volumes.img if [ ! -f "/ceph/images/ceph-volumes.img" ]; then echo "create ceph-volumes.img" -dd if=/dev/zero of=/ceph/images/ceph-volumes.img bs=1M seek=12288 count=0 oflag=direct +dd if=/dev/zero of=/ceph/images/ceph-volumes.img bs=1K seek=$(df / | awk '$3 ~ /[0-9]+/ { print $4 }') count=0 oflag=direct sgdisk -g --clear /ceph/images/ceph-volumes.img fi @@ -35,7 +35,7 @@ losetup -d /dev/loop0 echo "vgcreate" vgcreate -y ceph-volumes $(sudo losetup --show -f /ceph/images/ceph-volumes.img) echo "lvcreate" -sudo lvcreate -L9G -nceph0 ceph-volumes +sudo lvcreate -l 100%FREE -nceph0 ceph-volumes echo "mkfs" mkfs.xfs -f /dev/ceph-volumes/ceph0 |