linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Greaves <david@dgreaves.com>
To: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Using a disk image file as a device in a raid set (like a loopback device)
Date: Sun, 08 Jan 2006 10:25:33 +0000	[thread overview]
Message-ID: <43C0E89D.3040209@dgreaves.com> (raw)

Hi

First, this is not a raid recovery problem !!!

I'm recovering a disk failure and for various reasons I've ended up with
a partition that's too small to hold the file system that belongs in it.

I managed to create a second small partition on a good bit of the
failing disk and use linear mode to concatenate the almost big enough
partition (sdc2) with the temp partition (sdb2) to make a big enough
space to ddrescue the failing data.

All is now good with 95% of data on the good disk and the small
partition is holding up.  However I need to get rid of it ASAP.
So I dd'ed the small partition onto a good filesystem on sdc1.
Now I want to:

mdadm -B /dev/md0 -l linear -n2 /dev/sdc2 /space/sdb2.dd_image

but of course mdadm correctly complains that /space/sdb2.dd_image isn't
a block device.

Does anyone know how I can do this?


David

-- 


             reply	other threads:[~2006-01-08 10:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-08 10:25 David Greaves [this message]
2006-01-08 10:33 ` Using a disk image file as a device in a raid set (like a loopback device) Brad Campbell
2006-01-08 10:40 ` David Greaves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C0E89D.3040209@dgreaves.com \
    --to=david@dgreaves.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).