diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2016-01-28 10:51:39 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2016-01-30 05:17:52 +0000 |
commit | 98d9239b769f122710f26cb0235db24fc99642e6 (patch) | |
tree | bb3e5b97b248252bd5f44e38fea93d1f438d8f54 /deploy/adapters/ansible/roles/storage/files | |
parent | a7664d66d61424d6e931daf14e0cc50b82db76a7 (diff) |
FIX:storage volume invalid after reboot
JIRA:COMPASS-287
- losetup device will be invalid after reboot,need rebuild
Change-Id: Ie9046495954cc371a61d1c9f2e1aaa901cb20b42
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
(cherry picked from commit d3ba758592ea7aa07931667fb265b574de0dfb80)
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/files')
-rwxr-xr-x | deploy/adapters/ansible/roles/storage/files/storage | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/storage/files/storage b/deploy/adapters/ansible/roles/storage/files/storage new file mode 100755 index 00000000..9ef9a65b --- /dev/null +++ b/deploy/adapters/ansible/roles/storage/files/storage @@ -0,0 +1,3 @@ +#! /bin/bash +loop_dev=`sh /opt/setup_storage/losetup.sh` +vgcreate --force storage-volumes $loop_dev |