Skip to content

Commit

Permalink
[dist] activate vg OBS before using it in obsstoragesetup
Browse files Browse the repository at this point in the history
  • Loading branch information
M0ses committed May 24, 2016
1 parent 39ac3b4 commit ac79c0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/obsstoragesetup
Expand Up @@ -142,6 +142,8 @@ case "$1" in
# Cannot test on existence of "/dev/OBS", in case no LVs in VG OBS have been created!
if [ -n "$(vgdisplay -c OBS 2>/dev/null)" ]; then
lvremove -f /dev/OBS/worker_* /dev/OBS/cache 2>/dev/null
# make sure that logical volumes are active
vgchange -ay OBS
else
echo "WARNING: The LVM volume group 'OBS' can not be used."
echo " Please create one to get worker partitions configured"
Expand Down

0 comments on commit ac79c0a

Please sign in to comment.