@@ -180,6 +180,18 @@
o1=$o2
o2=$a
fi
+ OBS_CACHE_LV_SIZE=$((${OBS_CACHE_SIZE} + 500))
+ lvm lvcreate -n cache -L ${OBS_CACHE_LV_SIZE}M abuild
+ OBS_BASE_LV_SIZE=$((((${OBS_CACHE_SIZE} + 500)) * 2))
+ lvm lvcreate -n base -L ${OBS_BASE_LV_SIZE}M abuild
+
+ mkfs.xfs /dev/abuild/cache
+ mkdir -p ${OBS_CACHE_DIR}
+ mount -t xfs /dev/abuild/cache ${OBS_CACHE_DIR}
+
+ mkfs.xfs /dev/abuild/base
+ mkdir -p ${OBS_WORKER_DIRECTORY}
+ mount -t xfs /dev/abuild/base ${OBS_WORKER_DIRECTORY}
else
xen_opts="--device $ROOT/root_$I/root --swap $ROOT/root_$I/swap --vm-memory $XEN_MEMX"
dd if=/dev/zero of=$ROOT/root_$I/root bs=1M seek=$XEN_ROOT count=1
@@ -200,7 +212,9 @@
stop)
echo -n "Shutting down obsworker"
ps axu|grep obsworker|grep -i screen| awk '{print "kill -9 "$2}'|sh
- killall bs_worker
+ killall bs_worker
+ umount ${OBS_CACHE_DIR}
+ umount ${OBS_WORKER_DIRECTORY}
rc_status -v
;;
restart)
|