Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

LVM2+udev+multipath-tools error: can't create runfile

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
PT_LAmb
Guru
Guru
User avatar
Posts: 332
Joined: Mon Apr 22, 2002 4:55 am
Location: Lisboa (Lisbon), Portugal

LVM2+udev+multipath-tools error: can't create runfile

  • Quote

Post by PT_LAmb » Tue Aug 23, 2005 7:35 pm

Hi,

I use LVM2 to manage all but my swap and root partitions based on The Gentoo LVM2 Installation Guide. Here's mount's output.
/dev/hda7 on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/vga/var on /var type reiserfs (rw,noatime)
/dev/vga/tmp on /tmp type reiserfs (rw,noatime)
/dev/vga/usr on /usr type reiserfs (rw,noatime)
/dev/vga/opt on /opt type reiserfs (rw,noatime)
/dev/vga/home on /home type reiserfs (rw,noatime)
/dev/vga/ccache on /var/tmp/ccache type reiserfs (rw,noatime)
/dev/vga/iso on /mnt/iso type reiserfs (rw,noatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev/shm type tmpfs (rw)
I migrated my system from devfs to udev yesterday, and during the first boot, I got 20+ error lines.
* Populating /dev with device nodes ...
device mapper prerequisites not met.
device mapper prerequisites not met.
device mapper prerequisites not met.
device mapper prerequisites not met.
...
After searching in multipath-tools' source code, I found that I had to compile Device Mapper Support and Multipath Target built in the kernel. I did it and rebooted to find that the error was replaced by another.
* Populating /dev with device nodes ...
can't create runfile
can't create runfile
can't create runfile
can't create runfile
...
I tweaked multipath/main.c and added a perror("") line right after fprintf(stderr, "can't create runfile\n");.

Code: Select all

 int try_lock (char * file)
{
        int fd;
        struct flock fl;

        /*
         * create the file to lock if it does not exist
         */
        fd = open(file, O_CREAT|O_RDWR);

        if (fd < 0) {
                fprintf(stderr, "can't create runfile\n");
                perror();
                exit(1);
        }
...
Hence that file == "/var/run/multipath.run"

As /var is a separated partition, I bound /root/newroot to / with mount / -o bind ~/newroot and checked that /var/run/multipath.run was present.
milk linux # ls -la /root/newroot/var/run/
total 0
drwxr-xr-x 2 root root 80 Aug 23 19:11 .
drwxr-xr-x 5 root root 120 Aug 22 19:02 ..
---s--xr-T 1 root root 0 Aug 23 19:11 multipath.run
milk linux #
deleted it and rebooted the system...
* Populating /dev with device nodes ...
can't create runfile
Read-only filesystem
can't create runfile
Read-only filesystem
can't create runfile
Read-only filesystem
can't create runfile
Read-only filesystem
...
I find that this error is wierd because multipath.run was again present in /var/run.

I just don't know what's happening. If someone could give me a hint, or tell me what else to check, I would be every gratefull.

Should I file this as a bug?

Thanks in advance,
Ricardo
SETI@Home - http://setiathome.ssl.berkeley.edu/
Top
Post Reply
1 post • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic