md reports: unknown partition table
Hi
After a powercut I'm trying to mount an array and failing :(
teak:~# mdadm --assemble /dev/media --auto=p /dev/sd[bcdef]1 mdadm: /dev/media has been started with 5 drives.
Good
However:
teak:~# mount /media mount: /dev/media1 is not a valid block device
teak:~# dd if=/dev/media1 of=/dev/null dd: opening `/dev/media1': No such device or address
teak:~# dd if=/dev/media of=/dev/null 792442+0 records in 792441+0 records out 405729792 bytes transferred in 4.363571 seconds (92981135 bytes/sec) (after ^C)
dmesg shows:
raid5: device sdb1 operational as raid disk 0
raid5: device sdf1 operational as raid disk 4
raid5: device sde1 operational as raid disk 3
raid5: device sdd1 operational as raid disk 2
raid5: device sdc1 operational as raid disk 1
raid5: allocated 5235kB for md_d127
raid5: raid level 5 set md_d127 active with 5 out of 5 devices, algorithm 2 RAID5 conf printout:
--- rd:5 wd:5 fd:0
disk 0, o:1, dev:sdb1
disk 1, o:1, dev:sdc1
disk 2, o:1, dev:sdd1
disk 3, o:1, dev:sde1
disk 4, o:1, dev:sdf1md_d127: bitmap initialized from disk: read 1/1 pages, set 0 bits, status: 0 created bitmap (5 pages) for device md_d127
md_d127: unknown partition table
That last line looks odd...
It was created like so:
mdadm --create /dev/media --level=5 -n 5 -e1.2 --bitmap=internal --name=media --auto=p /dev/sd[bcdef]1
and the xfs fstab entry is:
/dev/media1 /media xfs rw,noatime,logdev=/dev/media2 0 0
fdisk /dev/media
shows:
Device Boot Start End Blocks Id System /dev/media1 1 312536035 1250144138 83 Linux /dev/media2 312536036 312560448 97652 da Non-FS data
cfdisk even gets the filesystem right...
Which is expected.
teak:~# ll /dev/media* brw-rw---- 1 root disk 254, 192 2006-07-18 17:18 /dev/media brw-rw---- 1 root disk 254, 193 2006-07-18 17:18 /dev/media1 brw-rw---- 1 root disk 254, 194 2006-07-18 17:18 /dev/media2 brw-rw---- 1 root disk 254, 195 2006-07-18 17:18 /dev/media3 brw-rw---- 1 root disk 254, 196 2006-07-18 17:18 /dev/media4
teak:~# uname -a Linux teak 2.6.16.19-teak-060602-01 #3 PREEMPT Sat Jun 3 09:20:24 BST 2006 i686 GNU/Linux teak:~# mdadm -V mdadm - v2.5.2 - 27 June 2006
David
Re: md reports: unknown partition table - fixed.
Quoted 3 lines · David Greaves
Hi
After a powercut I'm trying to mount an array and failing :(
A reboot after tidying up /dev/ fixed it.
The first time through I'd forgotten to update the boot scripts and they were assembling the wrong UUID. That was fine; I realised this and ran the manual assemble:
mdadm --assemble /dev/media /dev/sd[bcdef]1 dmesg cat /proc/mdstat
All OK (but I'd forgotten that this was a partitioned array). I suspect the device entries for /dev/media[1234] from last time were hanging about.
mount /media
fdisk /dev/media
So I guess this fails because the major-minor are for a non-p md device?
mdadm --assemble /dev/media --auto=p /dev/sd[bcdef]1 mdadm --stop /dev/media
This fails because I'm on mdadm 2.4.1
mdadm --assemble /dev/media --auto=p /dev/sd[bcdef]1 cat /proc/mdstat
mdadm --stop /dev/md_d0
mdadm --stop /dev/md0
cat /proc/mdstat
So by now I upgrade to mdadm 2.5.1 in another session.
mdadm --stop /dev/media
dmesg
cat /proc/mdstat
and it stops.
mdadm --assemble /dev/media --auto=p /dev/sd[bcdef]1
But now it won't create working devices...
Much messing about with assemble and I try a kernel upgrade - can't because the driver for my video card won't compile under 2.6.17 yet so WTF, I suspect major/minor numbers so just reboot it under the same kernel.
All seems well.
I think there's a bug here somewhere. I wonder/suspect that the superblock should contain the fact that it's a partitioned/able md device?
David
Re: md reports: unknown partition table - fixed.
Quoted 3 lines · On Tuesday July 18, [email protected] wrote:
I think there's a bug here somewhere. I wonder/suspect that the superblock should contain the fact that it's a partitioned/able md device?
I've thought about that and am not in favour.
I would rather just assume everything is partitionable - put
CREATE auto=part
in mdadm.conf
If this causes problems, then those problems need to be identified and fixed.
NeilBrown
Re: md reports: unknown partition table - fixed.
On 20 Jul 2006, Neil Brown uttered the following:
Quoted 8 lines · On Tuesday July 18, [email protected] wrote:
Quoted 3 lines
I think there's a bug here somewhere. I wonder/suspect that the superblock should contain the fact that it's a partitioned/able md device?
I've thought about that and am not in favour.
I would rather just assume everything is partitionable - put
CREATE auto=part
As long as partitionable' doesn't imply partitioned': I'd quite like LVM-on-raw-md to keep working...
Signature · 2 lines
`We're sysadmins. We deal with the inconceivable so often I can clearly see the need to define levels of inconceivability.' --- Rik Steenwinkel