Linbo hat Probleme beim Partitionieren

Hallo zusammen,
die lmn7 ist in meiner Schule installiert, die Datenmigration ist durch und alles hat bisher funktioniert :slight_smile:
Jetzt sind die Clients dran:
Als erstes wollte ich mit linbo die Festplatten der Clients partitionieren. Das hat leider nicht geklappt.
Dann hab ich mich mit linbo-ssh auf dem Client angemeldet ud versucht von Hand zu partitionieren:

~ # linbo_wrapper partition
Befehl      : partition
Creating new msdos partition table on /dev/sda.
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.000489 seconds, 1022.5KB/s
partition label size id fstype bootable
1: /dev/sda2 cache 30g 83 ext4 yes
2: /dev/sda2 ubuntu 30g 83 ext4 yes
3: /dev/sda3 swap 8g 82 swap no
4: /dev/sda4 data - 83 ext4 no
Partitionierung von /dev/sda erfolgreich beendet!

So erfolgreich war’s leider nicht. Man beachte sda2 wird zwei mal angelegt?!? Einmal als Cache-Partition und einmal als ubuntu-Partition.

In der start.conf.focal steht:

[Partition]
Dev = /dev/sda1
Label = ubuntu
Size = 30G
Id = 83
FSType = ext4
Bootable = yes

[Partition]
Dev = /dev/sda2
Label = cache
Size = 30G
Id = 83
FSType = ext4
Bootable = yes

[Partition]
Dev = /dev/sda3
Label = swap
Size = 8G
Id = 82
FSType = swap
Bootable = no

[Partition]
Label = data
Dev = /dev/sda4
Size = 
Id = 83
FSType = ext4
Bootable = no

Wenn man per fdisk eine neue Partitionstabelle anlegt, speichert und neu startet, klappts auch wieder mit der Partitioniereung.

Das ist natürlich ein riesen Aufwand, wenn man alle Schulrechner auf diese Art partitionieren möchte/muss.

Hat mir da jemand einen Tip?

Ach ja, die Linbo-Version ist 2.3.65-0

Gruß,
Mathias

Hallo Matthias,

genau mein Problem, bisher war fdisk auch meine einzige Lösung, aber unbefriedigend:

Grüße,
Stefan

Es hängt mit den Labels zusammen und scheint ein Bug zu sein. Kann es sein, dass du vorher schon eine ähnlich Reihenfolge hattest, aber nicht genau gleich?

Eigentlich sollte, dass in der letzten Linbo-Version gefixt sein, aber mir hat es nicht geklappt. Ich mache ein dd if=/dev/zero of=/dev/sda bs=512 count=1, reboote und dann klappt es :slight_smile: Manchmal geht es auch ohne reboot.

Blöd ist es schon, weil es Zeit kostet. Evtl. mit linbo-remote einen Job erstellen, der formatiert und snyc nach dem Neustart. Dann kann man viele Clients in einem Aufwasch abfertigen.

vG Stephan

Hallo Stefan,

Das ist schon mal ein guter Hinweis. Ich habe in allen Partitionen die Namen ubuntu, cache und swap vergeben. Wenn das so ist, probier ich mal eine Hardware-Gruppe mit nur einer Partition und ohne Label. Danach kommen die Rechner wieder in ursprüngliche Hardware-Gruppe zurück und dann sollten die Platten richtig formatiert werden.

Tja, ab morgen bin ich erst mal zwei Wochen weg. Bis ich über Erfolg oder Misserfolg berichten kann, dauert es noch…

Gruß,
Mathias

Hallo!

Lässt sich das reproduzieren? Gibt es dazu schon ein Issue?

Beste Grüße

Thorsten

Hallo,

nochmal nachgedacht und ausprobiert, aber das mit der anderen Hardwaregruppe hilft nicht und auch das Partitionieren mit dem Linbo-Terminal geht nicht:

Wenn ich die Rechner starte, kommt ein Linbo hoch mit Bezug auf die alten linuxmuster6.2-Einstellungen. Wenn ich auf den Imaging-Reiter gehe, will er das Passwort - und egal ob ich das neue (lml7) oder das alte (lml6.2) eingebe, er friert für einige Minuten ein und landet danach wieder auf dem Standardreiter, ich komme also gar nicht bis zum Terminal.

Und eine andere Gruppe kann ich auch nicht wählen, ich komme ja gar nicht bis zum Registrieren der Rechner und damit zum Zuweisen in eine Gruppe…

Aber Löschen der Partitionstabelle mit gparted hilft - sind halt einige Schritte mehr - an 200 Rechnern.

Grüße,
Stefan

Hallo Stefan,

wenn Linbo Probleme mit dem Partitionieren hatte, dann habe ich die Festplatte mit einem Partitionierer (fdisk, parted, cfdisk …) "behandelt danach kam auch Linbo wieder zurecht. Vielleicht hilft Dir das!?

Gruß Alois

Hallo Alois,

ja ich weiß, bei 200 Rechnern gpartet von USB-Stick starten, Partitionstabelle löschen, neustarten, linbo tut.
Das läuft bei mir mindestens unter äußerst lästig…

Grüße,
Stefan

Hi!

Ich habe jetzt mal verschiedene Rechner mit Linbo 2.3.65 partitioniert und kann das nicht nachvollziehen. Die Partitionierung ist immer tippitoppi.

Dass sda2 zweimal angelegt wird?

Genau das macht ja Linbo jetzt in V2.3.65 bevor parted die Partitionen anlegt.

Welche Hinweise hast du dafür?

VG, Thomas

Ich teste das morgen noch mal in der Schule und schreib dann noch mal. Aus der Erinnerung tritt es auf, wenn z.B. sda2 mit Label „ubuntu“ auf dem Rechner war und man dann versucht mit einer anderen start.conf zu partitionieren, in der sda1 das Label „ubuntu“ hat (z.B. beim Umstieg von UEFI auf legacy oder aus welchen Gründen auch immer).

vG Stephan

Hallo Thomas,

Wenn ich soweit komme (gleiche Serverversion, siehe unten), dann ja. Aber ich gebe zu, das hab ich mit der 2.3.65 noch nicht getestet, weil der Fall bisher nicht anliegt.

Das Problem bei mir ist: Ich bin von lml6.2 auf lml7 umgestiegen und will die alten Clients neu aufnehmen (keine Übernahme von 6.2). Bevor ich überhaupt zum Partitionieren komme, muss ich das admin-Passwort eingeben - und dabei stürzt linbo ab. Als Serveradresse steht in linbo die IP des alten Servers drin (10.32.1.1) statt die des neuen (10.0.0.1). Als Linbo-Version steht aber 2.3.65 statt dem alten 2.3.irgendwas von lml 6.2 drin.
Ein ziemliches Durcheinander.

Grüße,
Stefan

@lessi
Booten die Clients über PXE?
Kann man sich mit linbo-ssh einloggen?
Kann man linbo-remote Befehle ausführen?

VG, Thomas

Hallo Thomas,
meine Clients booten über PXE. Einloggen mit linbo-ssh klappt auch. linbo-remote funktioniert auch.
Eigentlich funktioniert alles, bis auf das Partitionieren.
Gruß,
Mathias

@lessi
Falls PXE-Boot funktioniert und linbo-ssh/linbo-remote nicht, musst du das 6.2er-Linbo auf den Clients auf folgende Art loswerden:

  • Sichere die grub.cfg der Linbogruppe und kopiere eine temporäre Reparaturconfig an die Stelle:
    cd /srv/linbo/boot/grub
    cp gruppe.cfg gruppe.cfg.bak
    cp /usr/share/linuxmuster/linbo/templates/grub.cfg.forced_netboot gruppe.cfg
    
  • Boote alle betroffenen Clients einmal über PXE in Linbo.
  • Kopiere die gesicherte cfg wieder zurück:
    cp gruppe.cfg.bak gruppe.cfg
    
  • Alles ist gut.

VG, Thomas

Was muss ich tun, um das nachzuvollziehen?

VG, Thomas

Hallo Thomas,
eigentlich bin ich davon ausgegangen, dass das Problem überall vorliegt?!?
Hier sind beide start.conf-Dateien:
Die alte start.conf.dell2

# LINBO start.conf fuer Windows XP
# Windows XP System auf Partition 1 (FAT32)
# Daten auf Partition 2
# Cache auf Partition 3
# Festplatte 20G

[LINBO]                  # globale Konfiguration
Cache = /dev/sda6        # lokale Cache Partition
Server = 10.16.1.1
Group = dell2
SystemType = bios64
RootTimeout = 600        # automatischer Rootlogout nach 600 Sek.
AutoPartition = no       # keine automatische Partitionsreparatur beim LINBO-Start
AutoFormat = no          # kein automatisches Formatieren aller Partitionen beim LINBO-Start
AutoInitCache = no       # kein automatisches Befüllen des Caches beim LINBO-Start
DownloadType = torrent     # Image-Download per torrent|multicast|rsync, default ist rsync
BackgroundFontColor = white
ConsoleFontColorStdout = white
ConsoleFontColorStderr = red
KernelOptions = 

[Partition]
Dev = /dev/sda1
Size = 1G
Id = 83
FSType = ext3
Bootable = yes
Label = daten

[Partition]
Dev = /dev/sda2
Size = 20G
Id = 83
FSType = ext4
Bootable = yes
Label = ubuntu

[Partition]
Dev = /dev/sda3
Size = 8G
Id = 82
FSType = swap
Bootable = no
Label = swap

[Partition]
Dev = /dev/sda4
Size = 
Id = 5
FSType = 
Bootable = no
Label = 

[Partition]
Dev = /dev/sda5
Size = 15G
Id = 83
FSType = ext4
Bootable = no
Label = typo3

[Partition]
Dev = /dev/sda6
Size = 
Id = 83
FSType = ext4
Bootable = no
Label = cache

[OS]
Name = Ubuntu  LTS
Version = 16.04
Description = Ubuntu 16.04
IconName = ubuntu.png
Image = 
BaseImage = ubuntu1604.cloop
Boot = /dev/sda2
Root = /dev/sda2
Kernel = vmlinuz
Initrd = initrd.img
Append = ro splash
StartEnabled = yes
SyncEnabled = yes
NewEnabled = yes
Hidden = no
Autostart = no
AutostartTimeout = 5
DefaultAction = start

[OS]
Name = GNU/Linux
Version = 
Description = 
IconName = default.png
Image = 
BaseImage = typo3.cloop
Boot = /dev/sda5
Root = /dev/sda5
Kernel = vmlinuz
Initrd = initrd.img
Append = 
StartEnabled = no
SyncEnabled = no
NewEnabled = no
Hidden = yes
Autostart = no
AutostartTimeout = 
DefaultAction = start

Und das ist die neue start.conf.lmn-bionic-200507

# LINBO start.conf, example for ubuntu
# DON'T EDIT THIS FILE! MAKE A COPY AND ADAPT THE VALUES TO YOUR NEEDS!
# operating system on partition 1
# cache on partition 2
# swap on partition 3
# data on partition 4

[LINBO]                             # global section
Server = 10.16.1.1
Group = lmn-bionic-200507            #Hardwareklasse
# IMPORTANT: server and group will be automatically set during device import!
Cache = /dev/sda2                   # cache partition
RootTimeout = 600                   # logout from admin console after 600 secs
AutoPartition = no                  # no partition repair during LINBO startup
AutoFormat = no                     # no formatting of all partitions during LINBO startup
AutoInitCache = no                  # no initial cache setup during LINBO startup
DownloadType = rsync              # image download method (torrent|multicast|rsync)
BackgroundFontColor = white         # font color of status section (default: white)
ConsoleFontColorStdout = lightgreen # console font color (default: white)
ConsoleFontColorStderr = orange     # console error font color (default: red)
SystemType = bios64                 # possible values: bios|bios64|efi32|efi64 (default: bios)
KernelOptions = quiet splash     # linbo kernel options, space separated
#KernelOptions = quiet splash modprobe.blacklist=radeon        # needed for AMD Graphics
#KernelOptions = acpi=noirq irqpoll # linbo kernel options example for use with acpi problems
#KernelOptions = server=10.0.0.5    # different pxe server ip, (needs device import to be activated)

[Partition]          # partition section (operating system)
Dev = /dev/sda1      # device name of the partition
Label = ubuntu       # partition label
Size = 35G           # partition size 30G, will use kiB if no unit (M, G or T) is set
Id = 83              # partition id (83 = linux)
FSType = ext4        # filesystem ext4
Bootable = yes       # set bootable flag yes

[Partition]          # partition section (cache)
Dev = /dev/sda2      # device name of the partition
Label = cache        # partition label
Size = 18G           # partition size 30G
Id = 83              # partition id (83 = linux)
FSType = ext4        # filesystem ext4
Bootable = yes       # set bootable flag yes

[Partition]          # partition section (swap)
Dev = /dev/sda3      # device name of the partition
Label = swap         # partition label
Size = 8G            # partition size 8G
Id = 82              # partition id (82 = swap)
FSType = swap        # filesystem swap
Bootable = no        # set bootable flag no

[Partition]          # partition section (data)
Label = data         # partition label
Dev = /dev/sda4      # device name of the partition
Size =               # partition size (no value = remaining space of the disk)
Id = 83              # partition id (83 = linux)
FSType = ext4        # filesystem ext4
Bootable = no        # set bootable flag no

[OS]                          # os section
Name = Ubuntu                 # os name
Version =                     # version (not used)
Description = Ubuntu 18.04    # detailed description of os
IconName = ubuntu.png         # icon filename in /srv/linbo/icons
Image =                       # filename of differential image (extension .rsync, optional)
BaseImage = lmn-bionic-200507.cloop
Boot = /dev/sda1              # boot partition (not used, identical with root partition)
Root = /dev/sda1              # root partition of the os
Kernel = vmlinuz              # relative path to kernel
Initrd = initrd.img           # relative path to initrd
Append = ro splash            # kernel append parameters
StartEnabled = yes            # show start button
SyncEnabled = yes             # show sync+start button
NewEnabled = yes              # show new+start button
Autostart = no                # automatic start of os (yes|no)
AutostartTimeout = 5          # timeout in secs for user to cancel automatic start
DefaultAction = sync          # default action on automatic start: start|sync|new
RestoreOpsiState = no         # restore opsi product state after sync (yes|no)
ForceOpsiSetup =              # comma separated list of opsi product ids, which are forced
                              # to setup after sync (e.g. mozilla.firefox,mozilla.thunderbird)
Hidden = yes                  # hide os tab (unused option, leave it at yes)

Ich weiß nicht, ob das das Verhalten von linbo nachvollziehbar macht…

Gruß,
Mathias

Äh, nö. Ich hatte ja schon geschrieben, dass ich es nicht nachvollziehen kann. Und mit beiden obigen start.conf-Versionen partitioniert mein Linbo hier ohne Probleme.

VG, Thomas

Ominöse!?..