Merge "Fix in-service re-sizing of docker-lv"

This commit is contained in:
Zuul 2018-10-05 13:37:53 +00:00 committed by Gerrit Code Review
commit 4a16e08413
2 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="src"
TIS_PATCH_VER=65
TIS_PATCH_VER=66

View File

@ -91,7 +91,12 @@ define platform::filesystem::resize(
onlyif => "blkid ${device} | grep TYPE=\\\"drbd\\\"",
} ->
exec { "resize2fs $devmapper":
command => "resize2fs $devmapper"
command => "resize2fs $devmapper",
onlyif => "blkid -s TYPE -o value $devmapper | grep -v xfs",
} ->
exec { "xfs_growfs $devmapper":
command => "xfs_growfs $devmapper",
onlyif => "blkid -s TYPE -o value $devmapper | grep xfs",
}
}