This is doing my head in. I created my array and can see it in mdstat but I can't get any partitions created on it. When I fdisk /dev/md0, create the partition and write I get the following -
Code:
Disk /dev/md0: 1000.2 GB, 1000210300928 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00048f36
Device Boot Start End Blocks Id System
/dev/md0p1 1 121601 976760001 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
Rebooting has no effect. The partition does not exist except inside fdisk! I checked /dev/disk/by-id/ and only the device itself (plus all the physical disks) was there. Opening fdisk again and the partition looks fine but exit and no sign.
/proc/mdstat
Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active linear sda1[0] sdb1[1]
976767872 blocks 64k rounding
unused devices: <none>
/etc/mdadm/mdadm.conf
Code:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Sat, 16 Aug 2008 14:15:06 +0800
# by mkconf $Id$
fdisk -l
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d73fb
Device Boot Start End Blocks Id System
/dev/sda1 1 60801 488384001 fd Linux raid autodetect
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d73fb
Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 fd Linux raid autodetect
Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x23eb23ea
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 4678 37576003+ 83 Linux
/dev/sdc2 4679 4865 1502077+ 5 Extended
/dev/sdc5 4679 4865 1502046 82 Linux swap / Solaris
Disk /dev/sdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0c32b920
Device Boot Start End Blocks Id System
/dev/sdd1 1 38913 312568641 83 Linux
Disk /dev/md0: 1000.2 GB, 1000210300928 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00048f36
Device Boot Start End Blocks Id System
/dev/md0p1 1 121601 976760001 83 Linux
Disk /dev/sde: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44fdfe06
Device Boot Start End Blocks Id System
/dev/sde1 1 38913 312568641 83 Linux
Disk /dev/sdf: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x41ffc810
Device Boot Start End Blocks Id System
/dev/sdf1 1 38913 312568641 83 Linux
Disk /dev/sdg: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44fdfe06
Device Boot Start End Blocks Id System
/dev/sdg1 1 38913 312568641 83 Linux
Help!
Allan
Bookmarks