Hallo,
leider sind meine Erfahrungen mit SUSE noch etwas begrenzt und weil ich nicht weiter weiß, hoffe ich auf etwas Hilfe hier.
Folgendes ist passiert:
Hier läuft ein openSUSE 10.3 (i586) mit Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux))
Partitioniert ist die HD in / und /home. Der Ordner /home/fs wird als zentraler Fileserver genutzt und per Samba entsprechend freigegeben. Alles ohne Probleme. Da dieser nun gelegentlich voll war, habe ich 2 Festplatten als RAID1 extern (gparted live) partioniert und dann in den SUSE-Rechner eingestöpselt und eingebunden und die Daten per sync* rübergespielt. Alles so weit gut. Alles ist lesbar und Zugriffe klappen.
Die zuvor verwendete Platte (mit / und /home) ist ne IDE und war vor der Aktion sda. Die neuen Platten sind SATA und stehen jetzt auf sda und sdb, die alte ist sdc geworden.
Das Problem:
Bei einem Neustart bindet er das RAID nicht wieder automatisch ein.
Ich kann den Spaß mit einem
und danach
ohne Probleme manuell wieder starten. (Ansonsten ist der manuell angelegte Ordner einfach leer.) Aber ich hätte es schon gerne, wenn das von allein gehen würde. Ich weiß nur nicht, was ich vergessen habe oder ggf. ändern müsste!?
*im Gegensatz zu dd war die Systemauslastung geringer (= schneller) und er hat auch out of the box den Fortschritt angezeigt ;-)
Die Dateien:
device.map habe ich geändert auf
/etc/mdadm.conf
Die ersten beiden Versuche klappten nicht, der aktuelle funktioniert halt wenigstens manuell.
fstab
Ausgaben:
boot.msg
leider sind meine Erfahrungen mit SUSE noch etwas begrenzt und weil ich nicht weiter weiß, hoffe ich auf etwas Hilfe hier.
Folgendes ist passiert:
Hier läuft ein openSUSE 10.3 (i586) mit Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux))
Partitioniert ist die HD in / und /home. Der Ordner /home/fs wird als zentraler Fileserver genutzt und per Samba entsprechend freigegeben. Alles ohne Probleme. Da dieser nun gelegentlich voll war, habe ich 2 Festplatten als RAID1 extern (gparted live) partioniert und dann in den SUSE-Rechner eingestöpselt und eingebunden und die Daten per sync* rübergespielt. Alles so weit gut. Alles ist lesbar und Zugriffe klappen.
Die zuvor verwendete Platte (mit / und /home) ist ne IDE und war vor der Aktion sda. Die neuen Platten sind SATA und stehen jetzt auf sda und sdb, die alte ist sdc geworden.
Das Problem:
Bei einem Neustart bindet er das RAID nicht wieder automatisch ein.
Ich kann den Spaß mit einem
Code:
mdadm --assemble -vv /dev/md0 /dev/sda1 /dev/sdb1
Code:
mount -a
*im Gegensatz zu dd war die Systemauslastung geringer (= schneller) und er hat auch out of the box den Fortschritt angezeigt ;-)
Die Dateien:
device.map habe ich geändert auf
Code:
(hd0) /dev/sdc
(hd1) /dev/sda
(hd2) /dev/sdb
Code:
# definitions of existing MD arrays
#ARRAY /dev/md0 level=raid1 metadata=1 num-devices=2 UUID=..... auto=yes
#DEVICE /dev/sda1 /dev/sdb1
#DEVICE /dev/disk/by-id/md-name-debian:0
DEVICE partitions
ARRAY /dev/md0 level=raid1 UUID=.....
fstab
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part3 /home ext3 acl,user_xattr 1 2
/dev/md0 /home/fs ext3 acl,user_xattr 0 0
/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Ausgaben:
Code:
# ps -ef
root 3058 2 0 Nov04 ? 00:00:00 [md0_raid1]
root 1129 1 0 Nov04 ? 00:00:01 /sbin/mdadm -F -d 60 -m root@localhost -s -c /etc/mdadm.conf
boot.msg
(Ich hab mal versucht, den Kram zwischendurch (USB, sonstige Dienste,...) rauszunehmen<7>libata version 3.00 loaded.
<7>sata_promise 0000:00:08.0: version 2.09
<6>ACPI: PCI Interrupt 0000:00:08.0[A] -> GSI 18 (level, low) -> IRQ 16
<6>scsi0 : sata_promise
<6>scsi1 : sata_promise
<6>scsi2 : sata_promise
<6>ata1: SATA max UDMA/133 cmd 0xf881c200 ctl 0xf881c238 bmdma 0x00000000 irq 16
<6>ata2: SATA max UDMA/133 cmd 0xf881c280 ctl 0xf881c2b8 bmdma 0x00000000 irq 16
<6>ata3: PATA max UDMA/133 cmd 0xf881c300 ctl 0xf881c338 bmdma 0x00000000 irq 16
<6>ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
<6>ata1.00: HPA unlocked: 2930277168 -> 2930277168, native 18446744072344861488
<6>ata1.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
<6>ata1.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 0/32)
<6>ata1.00: configured for UDMA/133
<6>ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
<6>ata2.00: HPA unlocked: 2930277168 -> 2930277168, native 18446744072344861488
<6>ata2.00: ATA-7: SAMSUNG HD154UI, 1AG01118, max UDMA7
<6>ata2.00: 2930277168 sectors, multi 0: LBA48 NCQ (depth 0/32)
<6>ata2.00: configured for UDMA/133
<5>scsi 0:0:0:0: Direct-Access ATA SAMSUNG HD154UI 1AG0 PQ: 0 ANSI: 5
<5>scsi 1:0:0:0: Direct-Access ATA SAMSUNG HD154UI 1AG0 PQ: 0 ANSI: 5
<7>sata_via 0000:00:0f.0: version 2.2
<6>ACPI: PCI Interrupt 0000:00:0f.0 -> GSI 20 (level, low) -> IRQ 17
<6>sata_via 0000:00:0f.0: routed to hard irq line 10
<6>scsi3 : sata_via
<6>scsi4 : sata_via
<6>ata4: SATA max UDMA/133 cmd 0x0001c000 ctl 0x0001b802 bmdma 0x0001a800 irq 17
<6>ata5: SATA max UDMA/133 cmd 0x0001b400 ctl 0x0001b002 bmdma 0x0001a808 irq 17
<6>ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
<6>ata4.00: ATA-6: ST3120827AS, 3.42, max UDMA/133
<6>ata4.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
<6>ata4.00: configured for UDMA/133
<6>ata5: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
<5>scsi 3:0:0:0: Direct-Access ATA ST3120827AS 3.42 PQ: 0 ANSI: 5
<7>pata_via 0000:00:0f.1: version 0.3.1
<6>ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20 (level, low) -> IRQ 17
<6>scsi5 : pata_via
<6>scsi6 : pata_via
<6>ata6: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
<6>ata7: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
<6>ata7.00: ATAPI: HL-DT-STDVD-ROM GDR8163B, 0L23, max UDMA/33
<6>ata7.00: configured for UDMA/33
<5>scsi 6:0:0:0: CD-ROM HL-DT-ST DVD-ROM GDR8163B 0L23 PQ: 0 ANSI: 5
<6>BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
<6>md: raid1 personality registered for level 1
<5>sd 0:0:0:0: [sda] 2930277168 512-byte hardware sectors (1500302 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
<5>sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<5>sd 0:0:0:0: [sda] 2930277168 512-byte hardware sectors (1500302 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
<5>sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4> sda1
<5>sd 0:0:0:0: [sda] Attached SCSI disk
<5>sd 1:0:0:0: [sdb] 2930277168 512-byte hardware sectors (1500302 MB)
<5>sd 1:0:0:0: [sdb] Write Protect is off
<7>sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
<5>sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<6>ACPI: PCI Interrupt 0000:00:10.4[C] -> GSI 21 (level, low) -> IRQ 18
<5>sd 1:0:0:0: [sdb] 2930277168 512-byte hardware sectors (1500302 MB)
<5>sd 1:0:0:0: [sdb] Write Protect is off
<7>sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
<5>sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4> sdb1
<5>sd 1:0:0:0: [sdb] Attached SCSI disk
<5>sd 3:0:0:0: [sdc] 234441648 512-byte hardware sectors (120034 MB)
<5>sd 3:0:0:0: [sdc] Write Protect is off
<7>sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
<5>sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<5>sd 3:0:0:0: [sdc] 234441648 512-byte hardware sectors (120034 MB)
<5>sd 3:0:0:0: [sdc] Write Protect is off
<7>sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
<5>sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<6> sdc: sdc1 sdc2 sdc3
<5>sd 3:0:0:0: [sdc] Attached SCSI disk
<4>swsusp: Basic memory bitmaps created
<4>swsusp: Basic memory bitmaps freed
<4>Attempting manual resume
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on sdc2, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<5>sd 0:0:0:0: Attached scsi generic sg0 type 0
<5>sd 1:0:0:0: Attached scsi generic sg1 type 0
<5>sd 3:0:0:0: Attached scsi generic sg2 type 0
<5>scsi 6:0:0:0: Attached scsi generic sg3 type 5
<7>PCI: Setting latency timer of device 0000:00:11.5 to 64
<6>Adding 2104472k swap on /dev/sdc1. Priority:-1 extents:1 across:2104472k
<6>md: md0 stopped.
<6>device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
<6>loop: module loaded
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on sdc3, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<3>EXT3-fs: unable to read superblock
<6>AppArmor: AppArmor initialized
<5>audit(1288833196.300:2): type=1505 info="AppArmor initialized" pid=1910
Kernel logging (ksyslog) stopped.
<7>PCI: Setting latency timer of device 0000:00:11.5 to 64
<6>Adding 2104472k swap on /dev/sdc1. Priority:-1 extents:1 across:2104472k
<6>md: md0 stopped.
<6>device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
<6>loop: module loaded
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on sdc3, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<3>EXT3-fs: unable to read superblock
<6>AppArmor: AppArmor initialized
<5>audit(1288833196.300:2): type=1505 info="AppArmor initialized" pid=1910
Kernel logging (ksyslog) stopped.
Kernel log daemon terminating.
Boot logging started on /dev/tty1(/dev/console) at Thu Nov 4 01:13:03 2010
Creating device nodes with udev
Trying manual resume from /dev/sdc1
Invoking userspace resume from /dev/sdc1
resume: Could not stat configuration file
resume: libgcrypt version: 1.2.4
Trying manual resume from /dev/sdc1
Invoking in-kernel resume from /dev/sdc1
Waiting for device /dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 to appear: ok
fsck 1.40.2 (12-Jul-2007)
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a -C0 /dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2
/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2: clean, 193790/2626560 files, 3153914/5242880 blocks
fsck succeeded. Mounting root device read-write.
Mounting root /dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2
Boot logging started on /dev/tty1(/dev/console (deleted)) at Thu Nov 4 02:13:11 2010
<notice>startproc: execve (/sbin/mdadm) [ /sbin/mdadm -F -d 60 -m root@localhost -s -c /etc/mdadm.conf ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext3 TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/tty1 COLUMNS=160 PATH=/bin:/usr/bin:/sbin:/usr/sbin vga=0x31a DO_CONFIRM= RUNLEVEL=S PWD=/ SPLASHCFG= PREVLEVEL=N LINES=64 SHLVL=2 HOME=/ splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 _=/sbin/startproc DAEMON=/sbin/mdadm ]
Starting mdadmd done
Starting udevd udevd-event[1731]: node_symlink: device node '/dev/rtc0' already exists, link '/dev/rtc' will not overwrite it
done
Loading required kernel modules
doneActivating swap-devices in /etc/fstab...
donemount: according to mtab, /dev/sdc2 is already mounted on /
Starting MD Raid mdadm: no devices found for /dev/md0
failed
Activating device mapper...
done
Checking file systems...
fsck 1.40.2 (12-Jul-2007)
/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part3: clean, 116127/11780096 files, 16461040/23535225 blocks
donedone
Mounting local file systems...
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdc3 on /home type ext3 (rw,acl,user_xattr)
mount: wrong fs type, bad option, bad superblock on /dev/md0,
missing codepage or helper program, or other error
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
In some cases useful info is found in syslog - try
dmesg | tail or so
failedMounting securityfs on /sys/kernel/security done
Loading AppArmor module done
Loading AppArmor profiles <notice>killproc: kill(1113,29)
Creating /var/log/boot.msg
doneSetting up the hardware clockdone
done
Activating remaining swap-devices in /etc/fstab...
doneSetting up hostname '.....' done
Setting up loopback interface lo
lo IP address: 127.0.0.1/8
done
Configuring serial ports...
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
Configured serial ports
doneSetting current sysctl status from /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.inotify.max_user_watches = 65536
done
Enabling syn flood protectiondone
Disabling IP forwardingdone
done
System Boot Control: The system has been set up
Failed features: boot.md
System Boot Control: Running /etc/init.d/boot.local
done<notice>killproc: kill(1113,3)
INIT: Entering runlevel: 3
Starting the DHCP DBUS Daemondone
Starting the NetworkManagerDispatcherdone
Starting the NetworkManagerdone
<notice>startproc: execve (/usr/sbin/avahi-daemon) [ /usr/sbin/avahi-daemon -D ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext3 TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/tty1 COLUMNS=160 PATH=/bin:/usr/bin:/sbin:/usr/sbin vga=0x31a RUNLEVEL=3 PWD=/ SPLASHCFG= PREVLEVEL=N LINES=64 SHLVL=2 HOME=/ splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 _=/sbin/startproc DAEMON=/usr/sbin/avahi-daemon ]
Starting Avahi daemondone
<notice>startproc: execve (/sbin/syslog-ng) [ /sbin/syslog-ng ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext3 TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/tty1 COLUMNS=160 PATH=/bin:/usr/bin:/sbin:/usr/sbin vga=0x31a RUNLEVEL=3 PWD=/ SPLASHCFG= PREVLEVEL=N LINES=64 SHLVL=2 HOME=/ splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 _=/sbin/startproc DAEMON=/sbin/syslog-ng ]
<notice>startproc: execve (/usr/sbin/avahi-dnsconfd) [ /usr/sbin/avahi-dnsconfd -D ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext3 TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/tty1 COLUMNS=160 PATH=/bin:/usr/bin:/sbin:/usr/sbin vga=0x31a RUNLEVEL=3 PWD=/ SPLASHCFG= PREVLEVEL=N LINES=64 SHLVL=2 HOME=/ splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 _=/sbin/startproc DAEMON=/usr/sbin/avahi-dnsconfd ]
Starting Avahi DNS Configuration daemondone
<notice>startproc: execve (/sbin/klogd) [ /sbin/klogd -c 1 -x -x ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext3 TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/tty1 COLUMNS=160 PATH=/bin:/usr/bin:/sbin:/usr/sbin vga=0x31a RUNLEVEL=3 PWD=/ SPLASHCFG= PREVLEVEL=N LINES=64 SHLVL=2 HOME=/ splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS05C94-part2 _=/sbin/startproc DAEMON=/sbin/klogd ]
Starting syslog services.done
Starting MD Raid mdadm: no devices found for /dev/md0
failed
Mount CIFS File Systems unused
Starting mdadmd done
Master Resource Control: runlevel 3 has been reached
Failed services in runlevel 3: boot.md
Skipped services in runlevel 3: smbfs irq_balancer powersaved
<notice>killproc: kill(2107,3)