[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: rpmdb write File too large problem



Piavlo <piavka@xxxxxxxxxxxx> writes:

>  Hi,
>
> I'm running Centos 5.5 64 bit
> At some point I've started getting the following error
> "Error: Database disk image is malformed"
> and could not install anything anymore with yum
>
> I've stried "yum clean all" several times but next "yum update"
> failed with same error.
>
> Next I tried to remove /var/lib/rpm/__db.* files and run "rpm --rebuilddb"
> and now I get the following error and have no idea how to fix it:
>
> [root@srv]#  rpm --rebuilddb
> rpmdb: write: 0x2b9224bbb7b8, 1024: File too large
> rpmdb: /var/lib/rpmrebuilddb.10789/Packages: write failed for page 2777
> rpmdb: /var/lib/rpmrebuilddb.10789/Packages: unable to flush page: 2777
> error: db4 error(27) from db->sync: File too large
> rpmdb: write: 0x2b9224bbb7b8, 1024: File too large
> rpmdb: /var/lib/rpmrebuilddb.10789/Packages: write failed for page 2777
> rpmdb: /var/lib/rpmrebuilddb.10789/Packages: unable to flush page: 2777
> error: db4 error(27) from db->sync: File too large
> File size limit exceeded
> [root@src]#             
>
> Any ideas how to solve the problem?

 'File size limit exceeded' is SIGXFSZ:

http://en.wikipedia.org/wiki/SIGXFSZ

 """ SIGXFSZ is sent to a process when it causes a file to grow larger
     than the maximum allowed size, as determined by the ulimit system
     call and shell builtin """

...so try: "ulimit -f", and if it's not ulimited set it to that. Then
try the --rebuilddb again.

-- 
James Antill -- james@xxxxxxx
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Home]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Red Hat 9 Bible]     [Fedora Bible]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net