PeHeller@gmx.net
17.02.10, 19:08
Hallo,
ich erstelle 2 gleiche (komplett identisch) Server mit Raid 1 SUSE 11.2
Dazu habe ich den ersten Server eingerichtet komplett installiert usw.. usw.
Dann habe ich eine Platte ausgebaut und mit einem Partitionstool komplett kopiert und in den 2. Rechner eingebaut.
Der startet sauber und läuft auch ohne Probleme.
Dann habe ich die 2 Platte eingebaut und mit
sfdisk -d /dev/sda | sfdisk /dev/sdb die Partitionstabelle kopiert.
dann die Boottabelle mit dd if=/dev/sda1 of=/dev/sdb1 bs=512 count=1
kopiert.
Dann überprüfe ich das Raidsystem
cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active (auto-read-only) raid1 sda2[0]
5237176 blocks super 1.0 [2/1] [U_]
bitmap: 0/10 pages [0KB], 256KB chunk
md0 : active raid1 sda1[0]
96376 blocks super 1.0 [2/1] [U_]
bitmap: 6/6 pages [24KB], 8KB chunk
md2 : active raid1 sda3[0]
57175260 blocks super 1.0 [2/1] [U_]
bitmap: 44/219 pages [176KB], 128KB chunk
unused devices: <none>
wenn ich jetzt die 2. Platte (Partitionen) einhängen will
mdadm /dev/md0 -a /dev/sdb1
mdadm /dev/md1 -a /dev/sdb2
mdadm /dev/md2 -a /dev/sdb3
kommt jedesmal die Meldung
mdadm: add new device failed for /dev/sdb1 as 2: Device or resource busy
fdisk -l zeigt folgendes
Platte /dev/sda: 64.0 GByte, 64023257088 Byte
255 Köpfe, 63 Sektoren/Spuren, 7783 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x000c3089
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 2 13 96390 fd Linux raid autodetect
/dev/sda2 14 665 5237190 fd Linux raid autodetect
/dev/sda3 666 7783 57175335 fd Linux raid autodetect
Platte /dev/sdb: 64.0 GByte, 64023257088 Byte
255 Köpfe, 63 Sektoren/Spuren, 7783 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x000c3089
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 * 2 13 96390 fd Linux raid autodetect
/dev/sdb2 14 665 5237190 fd Linux raid autodetect
/dev/sdb3 666 7783 57175335 fd Linux raid autodetect
Platte /dev/md2: 58.5 GByte, 58547466240 Byte
2 Köpfe, 4 Sektoren/Spuren, 14293815 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0x00000000
Festplatte /dev/md2 enthält keine gültige Partitionstabelle
Platte /dev/md0: 98 MByte, 98689024 Byte
2 Köpfe, 4 Sektoren/Spuren, 24094 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0x00000000
Festplatte /dev/md0 enthält keine gültige Partitionstabelle
Platte /dev/md1: 5362 MByte, 5362868224 Byte
2 Köpfe, 4 Sektoren/Spuren, 1309294 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0xf7ffbfff
Festplatte /dev/md1 enthält keine gültige Partitionstabelle
-------------------------------------------------------------------------
mdadm --detail /dev/md0
/dev/md0:
Version : 1.00
Creation Time : Sat Oct 31 17:58:05 2009
Raid Level : raid1
Array Size : 96376 (94.13 MiB 98.69 MB)
Used Dev Size : 96376 (94.13 MiB 98.69 MB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Feb 17 20:00:08 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:0
UUID : 92135b82:fe113262:04a680e0:f0ff26ab
Events : 180
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 1 removed
-------------------------------------------------------------------------
mdadm --detail /dev/md1
/dev/md1:
Version : 1.00
Creation Time : Sat Oct 31 17:58:06 2009
Raid Level : raid1
Array Size : 5237176 (4.99 GiB 5.36 GB)
Used Dev Size : 5237176 (4.99 GiB 5.36 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue Feb 16 21:34:49 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:1
UUID : 73f032bc:f9ca18ba:cd11d639:25fc89ff
Events : 22
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 1 removed
-------------------------------------------------------------------------
mdadm --detail /dev/md2
/dev/md2:
Version : 1.00
Creation Time : Wed Dec 30 15:53:19 2009
Raid Level : raid1
Array Size : 57175260 (54.53 GiB 58.55 GB)
Used Dev Size : 57175260 (54.53 GiB 58.55 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Feb 17 20:02:27 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:2
UUID : dc5831ad:f2c79032:427883f1:82da4132
Events : 1809216
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 0 0 1 removed
-------------------------------------------------------------------------
Warum es nicht geht, kann ich mir nicht erklären.
Wenn ich beim 1. Server die Platte abstecke kann ich Sie jederzeit wieder einhängen. Nur beim 2. Server funktioniert es nicht :eek:
Danke
worst_case
ich erstelle 2 gleiche (komplett identisch) Server mit Raid 1 SUSE 11.2
Dazu habe ich den ersten Server eingerichtet komplett installiert usw.. usw.
Dann habe ich eine Platte ausgebaut und mit einem Partitionstool komplett kopiert und in den 2. Rechner eingebaut.
Der startet sauber und läuft auch ohne Probleme.
Dann habe ich die 2 Platte eingebaut und mit
sfdisk -d /dev/sda | sfdisk /dev/sdb die Partitionstabelle kopiert.
dann die Boottabelle mit dd if=/dev/sda1 of=/dev/sdb1 bs=512 count=1
kopiert.
Dann überprüfe ich das Raidsystem
cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active (auto-read-only) raid1 sda2[0]
5237176 blocks super 1.0 [2/1] [U_]
bitmap: 0/10 pages [0KB], 256KB chunk
md0 : active raid1 sda1[0]
96376 blocks super 1.0 [2/1] [U_]
bitmap: 6/6 pages [24KB], 8KB chunk
md2 : active raid1 sda3[0]
57175260 blocks super 1.0 [2/1] [U_]
bitmap: 44/219 pages [176KB], 128KB chunk
unused devices: <none>
wenn ich jetzt die 2. Platte (Partitionen) einhängen will
mdadm /dev/md0 -a /dev/sdb1
mdadm /dev/md1 -a /dev/sdb2
mdadm /dev/md2 -a /dev/sdb3
kommt jedesmal die Meldung
mdadm: add new device failed for /dev/sdb1 as 2: Device or resource busy
fdisk -l zeigt folgendes
Platte /dev/sda: 64.0 GByte, 64023257088 Byte
255 Köpfe, 63 Sektoren/Spuren, 7783 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x000c3089
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 2 13 96390 fd Linux raid autodetect
/dev/sda2 14 665 5237190 fd Linux raid autodetect
/dev/sda3 666 7783 57175335 fd Linux raid autodetect
Platte /dev/sdb: 64.0 GByte, 64023257088 Byte
255 Köpfe, 63 Sektoren/Spuren, 7783 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x000c3089
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 * 2 13 96390 fd Linux raid autodetect
/dev/sdb2 14 665 5237190 fd Linux raid autodetect
/dev/sdb3 666 7783 57175335 fd Linux raid autodetect
Platte /dev/md2: 58.5 GByte, 58547466240 Byte
2 Köpfe, 4 Sektoren/Spuren, 14293815 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0x00000000
Festplatte /dev/md2 enthält keine gültige Partitionstabelle
Platte /dev/md0: 98 MByte, 98689024 Byte
2 Köpfe, 4 Sektoren/Spuren, 24094 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0x00000000
Festplatte /dev/md0 enthält keine gültige Partitionstabelle
Platte /dev/md1: 5362 MByte, 5362868224 Byte
2 Köpfe, 4 Sektoren/Spuren, 1309294 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Disk identifier: 0xf7ffbfff
Festplatte /dev/md1 enthält keine gültige Partitionstabelle
-------------------------------------------------------------------------
mdadm --detail /dev/md0
/dev/md0:
Version : 1.00
Creation Time : Sat Oct 31 17:58:05 2009
Raid Level : raid1
Array Size : 96376 (94.13 MiB 98.69 MB)
Used Dev Size : 96376 (94.13 MiB 98.69 MB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Feb 17 20:00:08 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:0
UUID : 92135b82:fe113262:04a680e0:f0ff26ab
Events : 180
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 1 removed
-------------------------------------------------------------------------
mdadm --detail /dev/md1
/dev/md1:
Version : 1.00
Creation Time : Sat Oct 31 17:58:06 2009
Raid Level : raid1
Array Size : 5237176 (4.99 GiB 5.36 GB)
Used Dev Size : 5237176 (4.99 GiB 5.36 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue Feb 16 21:34:49 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:1
UUID : 73f032bc:f9ca18ba:cd11d639:25fc89ff
Events : 22
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 1 removed
-------------------------------------------------------------------------
mdadm --detail /dev/md2
/dev/md2:
Version : 1.00
Creation Time : Wed Dec 30 15:53:19 2009
Raid Level : raid1
Array Size : 57175260 (54.53 GiB 58.55 GB)
Used Dev Size : 57175260 (54.53 GiB 58.55 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Wed Feb 17 20:02:27 2010
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : linux:2
UUID : dc5831ad:f2c79032:427883f1:82da4132
Events : 1809216
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 0 0 1 removed
-------------------------------------------------------------------------
Warum es nicht geht, kann ich mir nicht erklären.
Wenn ich beim 1. Server die Platte abstecke kann ich Sie jederzeit wieder einhängen. Nur beim 2. Server funktioniert es nicht :eek:
Danke
worst_case