Anzeige:
Ergebnis 1 bis 2 von 2

Thema: [Debian] IDE/SCSI + LVM über modules

  1. #1
    Happy Hippo
    Registriert seit
    Aug 1999
    Ort
    904xx Nermberch
    Beiträge
    942

    [Debian] IDE/SCSI + LVM über modules

    Hi,

    jetzt habe ich auch mal eine Frage. Villeicht kann mir jemand den entsprechenden Denkanstoß geben oder den Hinweis wo ich die Lösung finde.

    Also folgendes: Ich habe gerade (letztes WE) Debian neu installiert und möchte meine Platten über LVM nutzbar machen, da ich viele kleine habe (3,2 GB IDE, 2,1 GB SCSI, 2x 500 MB SCSI, 40 MB SCSI und demnächst noch 2x 4 GB SCSI).
    D.h. ich möchte eine LV Group einreichten, die alle Platten einbindet.
    Ich wollte wenn möglich auch alles mit dem Standardkernel von Debian/Testing (z.Zt. 2.4.22) machen. Der ist ja eigentlich die Eierlegendewollmilchsau, wo alles über Module eingebunden wird. Dummerweise ist scheinbar der "Device-Mapper" nicht mit eingebunden, der jedoch von LVM benötigt wird. Also habe ich letztes WE den Kernel neuübersetzt (Dauer ca. 16h auf dem P120). Ich für den Kernel die Standard-Config verwendet, d.h. alles ist wieder über Module eingebunden.

    Jetzt habe ich das Problem, daß er das LVM Modul vor dem SCSI Modul lädt und deshalb natürlich die SCSI Platten noch nicht verfügbar sind und er damit die LV Group nicht findet. Jetzt habe ich schon an den verschiedensten Modul Konfigs herumgespielt aber es noch nicht hinbekommen. Aktuell sieht es beim Booten so aus
    Code:
    Sat Nov 22 20:00:35 2003: bootlogd.
    Sat Nov 22 20:00:35 2003: Loading /etc/console/boottime.kmap.gz
    Sat Nov 22 20:00:35 2003: Activating swap.
    Sat Nov 22 20:00:35 2003: Checking root file system...
    Sat Nov 22 20:00:35 2003: fsck 1.35-WIP (21-Aug-2003)
    Sat Nov 22 20:00:35 2003: /dev/hda3: clean, 44872/98688 files, 170304/196608 blocks
    Sat Nov 22 20:00:37 2003: System time was Sat Nov 22 19:00:37 UTC 2003.
    Sat Nov 22 20:00:37 2003: Setting the System Clock using the Hardware Clock as reference...
    Sat Nov 22 20:00:39 2003: System Clock set. System local time is now Sat Nov 22 19:00:39 UTC 2003.
    Sat Nov 22 20:00:39 2003: Calculating module dependencies... done.
    Sat Nov 22 20:01:25 2003: Loading modules: ne2k-pci appletalk supermount awe_wave aic7xxx scsi_mod
    Sat Nov 22 20:01:33 2003: Setting up LVM Volume Groups...
    Sat Nov 22 20:01:36 2003:   Reading all physical volumes.  This may take a while...
    Sat Nov 22 20:01:37 2003:   /dev/cdrom01: open failed: Read-only file system
    Sat Nov 22 20:01:38 2003:   /dev/cdrom01: open failed: Read-only file system
    Sat Nov 22 20:01:39 2003:   Couldn't find device with uuid 'Owp5f8-gwIZ-CiQ!-Rpr4-YhJs-pgvb-uYOkhS'.
    Sat Nov 22 20:01:39 2003:   Couldn't find all physical volumes for volume group lvm01.
    Sat Nov 22 20:01:39 2003:   Volume group "lvm01" not found
    Sat Nov 22 22:06:06 2003: Starting Enterprise Volume Management System: Engine:
    The plug-in (null) in module /lib/evms/liblocaldskmgr-1.0.0.so requires Engine services
    API version (3.0.0) which is less than this Engine's services API version (11.0.0).
    [...]
    Sat Nov 22 20:01:43 2003: modprobe: modprobe: Can't locate module block-major-33
    Sat Nov 22 20:01:44 2003: modprobe: modprobe: Can't locate module block-major-33
    Sat Nov 22 20:01:44 2003: modprobe: modprobe: Can't locate module block-major-34
    Sat Nov 22 20:01:45 2003: modprobe: modprobe: Can't locate module block-major-34
    Sat Nov 22 20:01:47 2003: evms.
    Sat Nov 22 20:01:47 2003: Checking all file systems...
    Sat Nov 22 20:01:47 2003: fsck 1.35-WIP (21-Aug-2003)
    Sat Nov 22 20:01:47 2003: /dev/hda1: clean, 27/5040 files, 13975/20128 blocks
    Sat Nov 22 20:01:48 2003: Setting kernel variables..
    Sat Nov 22 20:01:48 2003: Mounting local filesystems...
    Sat Nov 22 20:01:48 2003: /dev/hda1 on /boot type ext2 (rw)
    Sat Nov 22 20:01:48 2003: Detecting hardware: aic7xxx ide-scsi ne2k-pci
    Sat Nov 22 20:01:56 2003: Loading aic7xxx module.
    Sat Nov 22 20:01:59 2003: Loading ide-scsi module.
    Sat Nov 22 20:02:03 2003: Loading ne2k-pci module.
    Sat Nov 22 20:02:07 2003: Cleaning: /etc/network/ifstate.
    Sat Nov 22 20:02:07 2003: Setting up IP spoofing protection: rp_filter.
    Sat Nov 22 20:02:07 2003: Configuring network interfaces... done.
    Sat Nov 22 20:02:10 2003: Starting portmap daemon: portmap.
    Sat Nov 22 20:02:11 2003: Loading the saved-state of the serial devices... 
    Sat Nov 22 20:02:11 2003: /dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
    Sat Nov 22 20:02:11 2003: /dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
    Sat Nov 22 20:02:11 2003: ^[]Runicode_stop: Already in byte-mode
    Sat Nov 22 20:02:12 2003: ^[[9;30]^[[14;30]
    Sat Nov 22 20:02:12 2003: Setting the System Clock using the Hardware Clock as reference...
    Sat Nov 22 20:02:13 2003: System Clock set. Local time: Sat Nov 22 20:02:13 MET 2003
    Sat Nov 22 20:02:13 2003: 
    Sat Nov 22 20:02:13 2003: Cleaning: /tmp /var/lock /var/run.
    Sat Nov 22 20:02:14 2003: Initializing random number generator... done.
    Sat Nov 22 20:02:14 2003: Invoking SVGATextMode... done.
    Sat Nov 22 20:02:18 2003: Recovering nvi editor sessions... done.
    Sat Nov 22 20:02:18 2003: Setting up X server socket directory /tmp/.X11-unix...done.
    Sat Nov 22 20:02:18 2003: INIT: Entering runlevel: 2
    Wie zu sehen ist, habe ich ihn eigentlich schon überredet, das SCSI Modul vor dem LVM zu laden. Aber trotzdem lädt er es erst nach dem LVM.

    Ich weiß dass man so was eigentlich über die Abhängigkeiten in /lib/modules/`uname -r`/modules.dep einstellt. Dieses wird ja aber durch depmod -a bei jedem Booten neu erstellt. Dh. da kann ich nichts ändern. Jedoch gibt es da das /etc/modules.conf File zur Konfiguration des Verhaltens. Dort steht aber
    Code:
    ### This file is automatically generated by update-modules"
    #
    # Please do not edit this file directly. If you want to change or add
    # anything please take a look at the files in /etc/modutils and read
    # the manpage for update-modules.
    #
    Jetzt blicke ich langsam nicht mehr durch. Also ich habe bis jetzt folgende Änderungen durchgeführt
    Code:
    ts@ts-data:~$ cat /etc/modprobe.conf 
    # Place your local directives here.
    modprobe aic7xxx
    modprobe sd_mod
    modprobe scsi_mod
    pre-install lvm-mod insmod aic7xxx
    
    
    # This line loads the part of the modprobe configuration managed with
    # update-modules(8) and built from the contents of /etc/modprobe.d/.
    include /lib/modules/modprobe.conf
    Ich habe jetzt auch noch folgende Änderung durchgeführt:
    Code:
    ts@ts-data:~$ cat /etc/modutils/lvm-common 
    # The Logical Volume Manager uses these block and char numbers
    alias block-major-58 lvm-mod
    alias char-major-109 lvm-mod
    pre-install lvm-mod insmod aic7xxx scsi_mod
    Und bin damit zu diesem Ergebnis gekommen
    Code:
    ts@ts-data:~$ cat /var/log/boot
    Sat Nov 22 22:05:02 2003: bootlogd.
    Sat Nov 22 22:05:02 2003: Loading /etc/console/boottime.kmap.gz
    Sat Nov 22 22:05:02 2003: Activating swap.
    Sat Nov 22 22:05:02 2003: Checking root file system...
    Sat Nov 22 22:05:02 2003: fsck 1.35-WIP (21-Aug-2003)
    Sat Nov 22 22:05:02 2003: /dev/hda3: clean, 44555/98688 files, 166846/196608 blocks
    Sat Nov 22 22:05:04 2003: System time was Sat Nov 22 21:05:04 UTC 2003.
    Sat Nov 22 22:05:04 2003: Setting the System Clock using the Hardware Clock as reference...
    Sat Nov 22 22:05:06 2003: System Clock set. System local time is now Sat Nov 22 21:05:06 UTC 2003.
    Sat Nov 22 22:05:06 2003: Calculating module dependencies... done.
    Sat Nov 22 22:05:52 2003: Loading modules: ne2k-pci appletalk supermount awe_wave aic7xxx scsi_mod
    Sat Nov 22 22:06:00 2003: Setting up LVM Volume Groups...
    Sat Nov 22 22:06:03 2003:   Reading all physical volumes.  This may take a while...
    Sat Nov 22 22:06:04 2003:   /dev/cdrom01: open failed: Read-only file system
    Sat Nov 22 22:06:05 2003:   /dev/cdrom01: open failed: Read-only file system
    Sat Nov 22 22:06:06 2003:   Couldn't find device with uuid 'Owp5f8-gwIZ-CiQ!-Rpr4-YhJs-pgvb-uYOkhS'.
    Sat Nov 22 22:06:06 2003:   Couldn't find all physical volumes for volume group lvm01.
    Sat Nov 22 22:06:06 2003:   Volume group "lvm01" not found
    Sat Nov 22 22:06:06 2003: Starting Enterprise Volume Management System: Engine:
    The plug-in (null) in module /lib/evms/liblocaldskmgr-1.0.0.so requires Engine services
    API version (3.0.0) which is less than this Engine's services API version (11.0.0).
    [...]
    Sat Nov 22 22:06:10 2003: modprobe: modprobe: Can't locate module block-major-33
    Sat Nov 22 22:06:11 2003: modprobe: modprobe: Can't locate module block-major-33
    Sat Nov 22 22:06:11 2003: modprobe: modprobe: Can't locate module block-major-34
    Sat Nov 22 22:06:11 2003: modprobe: modprobe: Can't locate module block-major-34
    Sat Nov 22 22:06:14 2003: evms.
    Sat Nov 22 22:06:14 2003: Checking all file systems...
    Sat Nov 22 22:06:14 2003: fsck 1.35-WIP (21-Aug-2003)
    Sat Nov 22 22:06:14 2003: /dev/hda1: clean, 27/5040 files, 13975/20128 blocks
    Sat Nov 22 22:06:14 2003: Setting kernel variables..
    Sat Nov 22 22:06:15 2003: Mounting local filesystems...
    Sat Nov 22 22:06:15 2003: /dev/hda1 on /boot type ext2 (rw)
    Sat Nov 22 22:06:15 2003: Detecting hardware: aic7xxx ide-scsi ne2k-pci
    Sat Nov 22 22:06:22 2003: Loading aic7xxx module.
    Sat Nov 22 22:06:26 2003: Loading ide-scsi module.
    Sat Nov 22 22:06:29 2003: Loading ne2k-pci module.
    Sat Nov 22 22:06:33 2003: Cleaning: /etc/network/ifstate.
    Sat Nov 22 22:06:33 2003: Setting up IP spoofing protection: rp_filter.
    Sat Nov 22 22:06:33 2003: Configuring network interfaces... done.
    Sat Nov 22 22:06:36 2003: Starting portmap daemon: portmap.
    Sat Nov 22 22:06:37 2003: Loading the saved-state of the serial devices... 
    Sat Nov 22 22:06:37 2003: /dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
    Sat Nov 22 22:06:37 2003: /dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
    Sat Nov 22 22:06:37 2003: ^[]Runicode_stop: Already in byte-mode
    Sat Nov 22 22:06:38 2003: ^[[9;30]^[[14;30]
    Sat Nov 22 22:06:39 2003: Setting the System Clock using the Hardware Clock as reference...
    Sat Nov 22 22:06:40 2003: System Clock set. Local time: Sat Nov 22 22:06:40 MET 2003
    Sat Nov 22 22:06:40 2003: 
    Sat Nov 22 22:06:40 2003: Cleaning: /tmp /var/lock /var/run.
    Sat Nov 22 22:06:41 2003: Initializing random number generator... done.
    Sat Nov 22 22:06:41 2003: Invoking SVGATextMode... done.
    Sat Nov 22 22:06:45 2003: Recovering nvi editor sessions... done.
    Sat Nov 22 22:06:45 2003: Setting up X server socket directory /tmp/.X11-unix...done.
    Sat Nov 22 22:06:45 2003: INIT: Entering runlevel: 2
    Ich habe langsam den Überblick verloren. Wo muß ich was eintragen?
    Leider habe ich auch noch keine passende Doku gefunden. Also ich bin für jeden Hinweis dankbar.

    Danke

    Pingu

    PS: Ich habe auch EVMS installiert und der bringt mir ständig die Fehlermeldung, dass die Libs die falsche API haben/brauchen. Auf was muß ich achten, damit das stimmt. Denn ich habe eigentlich nur das aktuelle EVMS per aptitude installiert.

  2. #2
    Happy Hippo
    Registriert seit
    Aug 1999
    Ort
    904xx Nermberch
    Beiträge
    942
    Ok,

    ich habe es jetzt endlich die Lösung gefunden. Ich habe folgende Änderungen durchgeführt:
    Code:
    ts@ts-data:~$ cat /etc/modules
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file should contain the names of kernel modules that are
    # to be loaded at boot time, one per line.  Comments begin with
    # a #, and everything on the line after them are ignored.
    ne2k-pci
    appletalk
    supermount
    isa_pnp
    awe_wave
    sd_mod
    scsi_mod
    Pingu

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •