[Gluster-devel] GlusterFs: Problems with Memory Mapped Files and "apt-get" on debian

Urban Loesch ul at enas.net
Tue May 15 10:33:13 UTC 2007


I have a problem with "mmap" on my GlusterFs test environment and "apt" 
on Debian.

My environment:
2 different servers for storage
1 server as client
On top of the server I use a virtual server setup (details 

Debian Sarge with self compiled (uname -r and 
latest stable virtual server patch.
GlusterFs: latest mainline 2.4 from repository

What I'm trying to do:
- Create a AFR Mirror over the 2 Servers.
- Mount the Volume on Server 3 (Client).
- Install on the mounted volume the hole virtual Server with Apache, 
MySql and so on.
So I have a full redundant Virtual Server mirrored over two bricks .

After some help from Avati Anand last week the above setup works just 
fine. I tried out Mysql and it works normally (will make some more tests 
in the future).

But now I have the problem with apt.
For example when I try to update the packagelists within the virtual 
server I get the following error:
mastersql:/# apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg 
...                                                       Hit 
http://ftp.de.debian.org etch/non-free 

Fetched 2B in 7s 

Reading package lists... Error!
E: Couldn't make mmap of 12582912 bytes - mmap (19 No such device)
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

After some googling I found out, that apt uses "memory mapped files" and 
it seems that apt can't find some device.
But I'm not able to find out which device does it can't find.

Short description of MMAP: 

Have you any idea what can cause this problem? Without GlusterFs as the 
underlaying filesystem the problems not occurs.

Urban Loesch

More information about the Gluster-devel mailing list