[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swapon scheitert: "Das Argument ist ungültig"



Am Tue, 02 Jan 2007 14:40:01 +0100 schrieb Gerhard Brauer:

> Gibt es nach einem Reboot in dmesg bzw /var/log/boot (vorher in
> /etc/default/bootlogd diesen mit Yes akzivieren) Einträge zum Versuch
> das Swap zu aktivieren? Dafür muß allerdings auch der Eintrag in der
> stab drin sein (ist bei dir denke ich?).

Ja, gibt es, die scheitern jedoch auf die gleiche Weise wie die manuellen
Einbindeversuche. Überhaupt ist das Einbinden beim Booten (und damit alles
was mit fstab & co. zu tun hat) IMO nicht das eigentliche Problem, denn das
wird wohl funktionieren sobald das manuelle Einbinden klappt.

> Prüfe doch mal mit einer Knoppix o.ä. ob hdb2 wirklich Swap (ID 82) ist.
> Du kannst auch in /etc/default/rcS SULOGIN auf yes setzen. Dort mal mit
> fdisk prüfen.

Ja, das ist der Fall:

root@erde:~# fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1216     9767488+  83  Linux
/dev/hda2            1217        6499    42435697+  83  Linux
/dev/hda3            6500       12579    48837600   fd  Linux raid autodetect
/dev/hda4           12580       19457    55247535   83  Linux

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        6374    51199123+  83  Linux
/dev/hdb2            6375        6499     1004062+  82  Linux swap / Solaris
/dev/hdb3            6500       12579    48837600   fd  Linux raid autodetect
/dev/hdb4           12580       19457    55247535   83  Linux

Disk /dev/md0: 1028 MB, 1028063232 bytes
2 heads, 4 sectors/track, 250992 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md3: 50.0 GB, 50009604096 bytes
2 heads, 4 sectors/track, 12209376 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md3 doesn't contain a valid partition table
-------------------

Wie du siehst, ist /dev/md3 als raid1 eingerichtet, bestehend aus hda3 und
hdb3.

root@erde:~# cat /etc/mdadm/mdadm.conf
DEVICE /dev/hda3 /dev/hdb3

ARRAY /dev/md3 level=raid1 num-devices=2 devices=/dev/hda3,/dev/hdb3
MAILADDR root
> 
> Ansonsten kommt deine Fehlermeldung bei swapon eigentlich immer dann,
> wenn mkswap auf der Partition nicht ok war, also kein wirkliches Swap-FS
> erstellt wurde. Bei dir lief aber mkswap durch?

Ja, läuft sauber durch.
> 
> Versuch doch mal mkswap intensiver:
> mkswap -c -f /dev/hdb2
> Das testet auf badblocks und forciert die Erstellung.

OK:

root@erde:~# mkswap -c -f /dev/hdb2
Setting up swapspace version 1, size = 1028153 kB
no label, UUID=ecdfd50c-e320-4ea0-a8f1-3f2f1af0d866
root@erde:~# swapon /dev/hdb2
swapon: /dev/hdb2: Das Argument ist ungültig

*arrrgh!!!*

> Kannst du auch mal das komplette fdisk -l aller Platten posten?

Siehe oben.
> 
> Du hast kein LVM, Raid etc. im Einsatz? Welchen Kernel benutzt du?

Doch, Raid1, siehe oben.

root@erde:~# uname -r
2.6.18-3-k7

Ich befürchte langsam, es ist ein echter Bug...

-- 
Grüße
Adalbert Dawid



Reply to: