[tinysofa-devel] Re[2]: [tinysofa-discuss] Problem with devlabel on a extra /var partition
Dominik Schips
mail-lists at s235.de
Thu Jan 13 15:18:26 UTC 2005
On 13.01.2005 Matt Bottrell wrote:
> /var traditionally is on a seperate partition due to the 'VARiable
> logs/reports' that are generated in there. If /var isn't a seperate
> partition it can be the cause of filling the root (/) partition.
> (This is not a GoodThing(tm)).
That is the reason why I want to have it on a extra partition.
> A simple 'kludge' fix to problem is to do the following:
> 1. Copy the /var/lib/devlabel information to say /root/devlabel/
> 2. Reboot in single user mode.
> 3. mkdir -p /var/lib/devlabel
> 4. Move the information from /root/devlabel/ to /var/lib/devlabel
> As such this ensure the information is there at boot time (thus no errors).
> The 'real' /var partition will mount over the top of it later on in
> the boot process.
Thank you for your 'kludge' fix, but it doesn't work (for me).
The directory /var/lib/devlabel/ and the two files
/var/lib/devlabel/ignore_list and /var/lib/devlabel/proc_partitions
are on the /var partition.
But the proc_partitions and the ignore_list file are empty.
On a system (for testing) with only /boot, SWAP and / the
proc_partitions file has some entries about the partitions.
> On Wed, 12 Jan 2005 17:48:18 +0100, Dominik Schips <mail-lists at s235.de> wrote:
>> Hello,
>>
>> I set up a new Tinysofa 2.0 server.
>> For this I want to have the following partitions each on a different
>> partition:
>>
>> /boot
>> SWAP
>> /var
>> /usr
>> /
>> /tmp
>> /home
>> /srv
>>
>> After the installation I saw some error messages on the screen:
>>
>> /sbin/devlabel: line 895: /var/lib/devlabel/ignore_list: No such file
>> or directory
>> /sbin/devlabel: line 896: /var/lib/devlabel/proc_partitions: No such file
>> or directory
>> grep: /var/lib/devlabel/ignore_list: No such file or directory
>> /sbin/devlabel: line 920: [: -eq: unary operator expected
>> ....
>>
>> and so on.
>> After some searching on the net I found that this is a problem, when
>> the /var "directory" is on a extra partition. It causes a problem at
>> boot time, because it isn't mounted when the check for de ignore_list
>> file is made.
>> When /var is on the / partition, then there is no problem with
>> devlabel.
>>
>> Did someone else had this problem or is my partitioning not the
>> best?
>> Should this error be fixed in the devlabel package?
>>
>> Information:
>> http://www.redhat.com/archives/fedora-test-list/2004-July/msg00600.html
>>
>> Old question (no answer) with this problem on the Tinysofa list:
>> http://lists.tinysofa.org/pipermail/tinysofa-discuss/2004-October/000344.html
>>
>> Maybe this is a solution:
>> http://www.lerhaupt.com/foo/archives/cat_linux.html
>>
>> The ignore_list is now kept in /etc/sysconfig/devlabel.d and not
>> /var/lib/devlabel. Though /var/lib is generically a more appropriate
>> place for application state information to live, it was necessary
>> to have these files located on the root partition. This is to make
>> sure that these files are available during boot after the root
>> partition has been mounted but before any other partition has
>> been mounted (such as /var).
----
Best regards,
Dominik Schips
More information about the Tinysofa-devel
mailing list