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

Re: Debian testing Software Raid 1 Migration



Prepaid wrote:

On Apr 5, 2005 4:27 PM, Chris Boot <bootc@bootc.net> wrote:
Prepaid wrote:

Hello

So I am currently running Debian Linux (testing) on a system. I want
to migrate over to RAID 1 (software) for data redundancy in the case
of a hard drive failure. I'm running the 2.4.30 kernel with RAID built
in (not module).

I've run the command:

mdadm --create /dev/md0 --level 1 --raid-device=2 missing /dev/hdc1


It creates the array and everything is fine it appears in /proc/mdstat
but upon rebooting the system will not realize the array.

I realize I could update mdadm.conf and then have it autosense them
but I want the bios to read them from the superblock on the drive but
have no idea what I'm doing wrong.

Any one got any ideas? I read the article on the howtos but am totally
stumped. I need to get mdadm to install the Persistent Superblock but
it should by default... hmm

Thanks!


Hi,

Well, since you're using mdadm it has created a superblock, but the
kernel probably doesn't know to look for it. You need to make sure you
change the partition type from the usual 83 / Linux to fd, which is
"Linux raid autodetect".

Also, does your kernel attempt any autodetection at all? Can we see a
dmesg if the above doesn't work?

HTH,
Chris


The drive has been set to FD:
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1      154816    78027232+  fd  Linux raid autodetect

The kernel does try to autodetect, but it doesn't find anything...

Below is a dmesg:
Linux version 2.4.30 (root@zev) (gcc version 3.3.5 (Debian 1:3.3.5-8))
#1 Tue Apr 5 14:45:29 EDT 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000ffec000 (usable)
BIOS-e820: 000000000ffec000 - 000000000ffef000 (ACPI data)
BIOS-e820: 000000000ffef000 - 000000000ffff000 (reserved)
BIOS-e820: 000000000ffff000 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
On node 0 totalpages: 65516
zone(0): 4096 pages.
zone(1): 61420 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=LinuxLATEST ro root=301
No local APIC present or hardware disabled
Initializing CPU#0
Detected 1210.799 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2418.27 BogoMIPS
Memory: 254200k/262064k available (1293k kernel code, 7480k reserved,
455k data, 108k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU:             Common caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: AMD Athlon(tm) Processor stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf1150, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Via IRQ fixup
PCI: Using IRQ router VIA [1106/0686] at 00:04.0
Applying VIA southbridge workaround.
PCI: Disabling Via external APIC routing
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS
MULTIPORT SHARE_IRQ SERIAL_PCI enabled
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
PPP generic driver version 2.4.2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
  8regs     :  1848.400 MB/sec
  32regs    :  1243.600 MB/sec
  pII_mmx   :  2836.800 MB/sec
  p5_mmx    :  3639.600 MB/sec
raid5: using function: p5_mmx (3639.600 MB/sec)
md: multipath personality registered as nr 7
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 2224 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2224k freed
VFS: Mounted root (cramfs filesystem).
Freeing unused kernel memory: 108k freed
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller at PCI slot 00:11.0
PCI: Found IRQ 10 for device 00:11.0
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
PDC20265: FORCING BURST BIT 0x00->0x01 ACTIVE
   ide2: BM-DMA at 0x7400-0x7407, BIOS settings: hde:DMA, hdf:DMA
   ide3: BM-DMA at 0x7408-0x740f, BIOS settings: hdg:pio, hdh:DMA
VP_IDE: IDE controller at PCI slot 00:04.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:04.1
   ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio
   ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pio
ide: late registration of driver.
hda: HTS548060M9AT00, ATA DISK drive
blk: queue d0829480, I/O limit 4095Mb (mask 0xffffffff)
hdc: WDC WD800JB-00FMA0, ATA DISK drive
blk: queue d08298d4, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 117210240 sectors (60012 MB) w/7877KiB Cache, CHS=7296/255/63, UDMA(100)
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63, UDMA(33)
Partition check:
hda: hda1 hda2
hdc: hdc1
VFS: Can't find ext3 filesystem on dev ide0(3,1).
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,1)) ...
for (ide0(3,1))
ide0(3,1):Using r5 hash to sort names
VFS: Can't find ext3 filesystem on dev ide0(3,1).
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,1)) ...
for (ide0(3,1))
ide0(3,1):Using r5 hash to sort names
Adding Swap: 112448k swap-space (priority -1)
Real Time Clock Driver v1.10f
PCI: Found IRQ 4 for device 00:09.0
PCI: Sharing IRQ 4 with 00:04.2
PCI: Sharing IRQ 4 with 00:04.3
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:09.0: 3Com PCI 3c905 Boomerang 100baseTx at 0x9400. Vers LK1.1.18
eth0: Dropping NETIF_F_SG since no checksum feature.
r8169 Gigabit Ethernet driver 1.2 loaded
PCI: Found IRQ 12 for device 00:0a.0
eth1: Identified chip type is 'RTL8169s/8110s'.
eth1: RTL8169 at 0xd0912000, 00:08:54:d1:3f:45, IRQ 12
eth1: Auto-negotiation Enabled.
eth1: 1000Mbps Full-duplex operation.
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (2047 buckets, 16376 max) - 288 bytes per conntrack


Thanks so much!
Hi,

Your RAID autodetect is happening before IDE gets loaded, so when it comes to looking around your disk just isn't there to be autodetected. Do you have IDE / ATA compiled as modules? If so, make sure it's compiled-in as well.

HTH,
Chris

--
Chris Boot
bootc@bootc.net
http://www.bootc.net/




Reply to: