https://bugzilla.novell.com/show_bug.cgi?id=893755 https://bugzilla.novell.com/show_bug.cgi?id=893755#c0 Summary: The "obsstoragesetup" script ignores the size of the "OBS/server" logical volume. Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.5 Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: General AssignedTo: adrian@suse.com ReportedBy: DOlsson@WEB.de QAContact: adrian@suse.com Found By: --- Blocker: --- Created an attachment (id=603835) --> (http://bugzilla.novell.com/attachment.cgi?id=603835) Patch fixing the size calculation of the "root" LV (now allowing for the "server" LV). User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 During the installation of the OBS Appliance (e.g. using the instructions found in http://en.opensuse.org/openSUSE:Build_Service_Appliance or http://openbuildservice.org/download/), it is possible to make use of LVM by having a volume group (VG) named "OBS". According to the instructions, it is even possible to have the "/srv/obs" server directory mounted on a logical volume (LV) under "OBS" by creating a LV named "[/dev/OBS/]server". Unfortunately, though, when doing so, the "obsstoragesetup" script ignores the size of the "server" LV, resulting in not being able to create any of the worker "root" and "swap" LVs as well as the worker "cache" LV, because the formula used to calculate the size of the "root" LVs are depending on the total size of the VG minus the size of the "cache" LV and the sizes used for the "swap" LVs, but not the size of the "server" LV, resulting in a broken setup of the OBS Appliance Server. Reproducible: Always Steps to Reproduce: 1. Download the OBS Appliance server of your choice. 2. Before installing the OBS Appliance, create a volume group named "OBS" and a logical volume in this VG named "server" (the sizes do not matter, but use e.g. 50 GiB for the VG size and 10 GiB for the LV size). 3. Install the OBS Appliance. 4. After the installation logon to the system and notice that the "/srv/obs" directory has been mount onto "/dev/obs/server", as expected, but also notice that not all of the worker root directories have not been created respectively mounted as expected. Notice also that the "cache" LV not neither been created nor mounted. 5. When looking through the start-up logs, you will also notice that the "obsstoragesetup" script has never output "Looking for OBS Worker Cache LVM Volume". This has not happened, because the script has bailed out when trying to create the "cache" LV, which was not possible due to lack of space in the VG (the bail out has happened in line #324. Actual Results: Various number of worker "root" and "swap" LVs as well as the "cache" LVs havenot been setup and mounted properly. Expected Results: All worker "root", "swap" and "cache" LVs have been corrected created and mounted. As work around, when using the OBS Appliance v2.5.4.2, one should not create the "server" LV in the "OBS" VG, as the installation instructions suggests, but instead after having installed the OBS Appliance manually move the "/srv/obs" directory to another disk or LV of VG not being the "OBS" VG! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.