You are not logged in.
Hi,
I'm trying to mount a single drive from a fully functional RAID1 array. I know that RAID support is functional in the target machine, as I have another RAID array running successfully on it.
First, I ran
mdadm --create --level=1 --force --raid-devices=1 /dev/md1 /dev/sdg1
This gave me the output
mdadm: /dev/sdg1 appears to contain an ext2fs file system
size=976759936K mtime=Mon Mar 14 11:57:48 2011
mdadm: /dev/sdg1 appears to be part of a raid array:
level=raid1 devices=1 ctime=Fri Mar 18 17:03:47 2011
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
I then tried to mount /dev/md1:
mount /dev/md1 /mnt/disk/
But I got this:
mount: you must specify the filesystem type
So I tried
mount -t ext3 /dev/md1 /mnt/disk/
I got:
mount: wrong fs type, bad option, bad superblock on /dev/md1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
This is what dmesg says:
EXT3-fs (md1): error: can't find ext3 filesystem on dev md1.
Any ideas? It was working just fine before.
Thanks!
Last edited by CosineQuaNon (2011-03-19 01:12:17)
Offline
The 'create' command recreates the array... You should have use 'assemble'.
I don't think you can recover from that... Time to pull out the backup....
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
What's the correct command to use? I still have the other drive from the RAID1 array. Is this correct:
mdadm --assemble /dev/md1 /dev/sdg1
EDIT: tried it and it worked! Thanks for the help!
Last edited by CosineQuaNon (2011-03-19 01:12:03)
Offline