Mailinglist Archive: opensuse (1995 mails)

< Previous Next >
Re: [opensuse] Quirky software RAID1 Question - Howto mount 1 drive on another machine?
  • From: brian@xxxxxxxxx
  • Date: Sat, 11 Apr 2009 16:37:18 -0400
  • Message-id: <1239482238.49e0ff7e84aff@xxxxxxxxxxxxxxxxxxxx>
Quoting "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>:

Listmates,

I have a quandary. I had two Seagate 750G drives in a software raid on
machine
A. I needed to remove one of the drives and RMA it due to excessive
read/write
head schizophrenia. I now have the device out of the box to RMA but I need to
mount it to delete some of the data. I tried mounting is via usb, but
received
an error due to raid as the file type:

[23:03 alchemy:/home/david/linux/packages/SRPMS] # mount /dev/sdb1 /mnt/750
mount: unknown filesystem type 'linux_raid_member'

So next I decided to create a temporary md0 on my laptop and add one
drive
to
the array. No dice:

[23:06 alchemy:/home/david/linux/packages/SRPMS] # mdadm --create /dev/md0
--level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=732571864K mtime=Fri Apr 3 20:21:45 2009
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid1 devices=2 ctime=Fri Mar 27 15:38:36 2009
mdadm: Cannot open /dev/sdc1: No such file or directory
mdadm: create aborted

"frickuth!"

OK maybe:

[23:03 alchemy:/home/david/linux/packages/SRPMS] # mdadm --create /dev/md0
--level=1 --raid-devices=1 /dev/sdb1
mdadm: '1' is an unusual number of drives for an array, so it is probably
a mistake. If you really mean it you will need to specify --force
before
setting the number of drives.

Again no joy!

Well, how to skin this cat, there must be an easy way, but obviously I'm
struggling with it. What say the RAID gurus?

You don't need to mount the device to erase it.
dd if=/dev/zero of=/dev/sdb bs=4M
and for a 750G drive, come back in a coupkle hours.
you can monitor it's progress by "ps -ef |grep sdb" and get the pid of dd, say
it's 3405
then "while kill -USR1 3405 ;do sleep 1 ;done"

But setting that aside,
I think what you need to do is merely assemble the array, and with the word
missing in place of the non-present devices.

mdadm -A /dev/md9 /dev/sdb1 missing
mkdir /md9
mount /dev/md9 /md9

Untested, and assumes /dev/sdb1 contains a mdraid superblock to fill in all the
details left unspecified on the mdadm command line.

--
bkw

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References