Skip to content

Commit

Permalink
[api] avoid error on appliance when disk has no OBS VG
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jun 27, 2012
1 parent a552575 commit 6fa5e1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/obsstoragesetup
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ EOF
pvs=( $pvs )
pv_count_real=${#pvs[@]}
PE_SIZE=`vgdisplay -c OBS | cut -d: -f13`
[ "0$PE_SIZE" -gt 0 ] || exit 0

if [ -z "$OBS_WORKER_CACHE_SIZE" ]; then
# 25 GB sounds like a good default for cache.
Expand Down

0 comments on commit 6fa5e1f

Please sign in to comment.