From: David Greaves <david@dgreaves.com>
To: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Re: Using a disk image file as a device in a raid set (like a loopback device)
Date: Sun, 08 Jan 2006 10:40:42 +0000 [thread overview]
Message-ID: <43C0EC2A.4040607@dgreaves.com> (raw)
In-Reply-To: <43C0E89D.3040209@dgreaves.com>
doh!
I'm so used to doing mount -oloop that I forgot how much it does for you :)
losetup /dev/loop0 /space/sdb2.dd_image
mdadm -B /dev/md0 -l linear -n2 /dev/sdc2 /dev/loop0
works fine.
Sorry for the noise
David
David Greaves wrote:
>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
>
>
>
--
prev parent reply other threads:[~2006-01-08 10:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-08 10:25 Using a disk image file as a device in a raid set (like a loopback device) David Greaves
2006-01-08 10:33 ` Brad Campbell
2006-01-08 10:40 ` David Greaves [this message]
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=43C0EC2A.4040607@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.