You are not logged in.

#1 2011-03-18 22:35:38

CosineQuaNon
Member
Registered: 2010-05-23
Posts: 28

[SOLVED] Mounting a single drive from a RAID1 array

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

#2 2011-03-19 00:37:29

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [SOLVED] Mounting a single drive from a RAID1 array

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....

Offline

#3 2011-03-19 00:46:12

CosineQuaNon
Member
Registered: 2010-05-23
Posts: 28

Re: [SOLVED] Mounting a single drive from a RAID1 array

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

Board footer

Powered by FluxBB