* Re: Any chance to recovery btrfs raid-0 after accidental format of one volume?
[not found] <CAKdoYmDNjBDgHjLNaf5HmrRxGkYPXjssZoGa3Tb4p3uc2DcOcg@mail.gmail.com>
@ 2011-09-05 21:56 ` Dante
2011-09-06 23:00 ` Dante
0 siblings, 1 reply; 4+ messages in thread
From: Dante @ 2011-09-05 21:56 UTC (permalink / raw)
To: linux-btrfs
Bad case of user error here but I managed to reformat one half of a
btrfs volume that was set up with metadata raid-1 and data raid-0.
I can mount the remaining half degraded, and can see all of the files,
but half their content is missing.
I=92m just wondering whether, since all the metadata is intact, and
since (most of) the data on the partition that I reformatted has not
actually been over-written, whether it is conceivable that I can
recover most of my files by somehow reincorporating the second volume
into the array?
The important stuff is all backed up (I hope) so this is more of
academic interest...
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Any chance to recovery btrfs raid-0 after accidental format of one volume?
@ 2011-09-06 6:24 Tomasz Chmielewski
0 siblings, 0 replies; 4+ messages in thread
From: Tomasz Chmielewski @ 2011-09-06 6:24 UTC (permalink / raw)
To: linux-btrfs
> Bad case of user error here but I managed to reformat one half of a
> btrfs volume that was set up with metadata raid-1 and data raid-0.
It won't help you - but did you format it with mkfs.btrfs, while it was mounted?
mkfs.btrfs behaves very dangerously here.
For example, we have a block device in use:
# cat /proc/swaps
Filename Type Size Used Priority
/dev/md0 partition 10233276 0 -1
mkfs for other filesystems will refuse to touch it, because it's in use:
# mkfs.ext4 /dev/md0
mke2fs 1.41.14 (22-Dec-2010)
/dev/md0 is mounted; will not make a filesystem here!
# mkfs.xfs /dev/md0
mkfs.xfs: cannot open /dev/md0: Device or resource busy
mkfs.btrfs doesn't see a problem in creating a filesystem on a mounted block device:
# mkfs.btrfs /dev/md0
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using
fs created label (null) on /dev/md0
nodesize 4096 leafsize 4096 sectorsize 4096 size 9.76GB
Btrfs Btrfs v0.19
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Any chance to recovery btrfs raid-0 after accidental format of one volume?
2011-09-05 21:56 ` Any chance to recovery btrfs raid-0 after accidental format of one volume? Dante
@ 2011-09-06 23:00 ` Dante
2011-09-06 23:12 ` Hugo Mills
0 siblings, 1 reply; 4+ messages in thread
From: Dante @ 2011-09-06 23:00 UTC (permalink / raw)
To: linux-btrfs
> > Bad case of user error here but I managed to reformat one half of a
> > btrfs volume that was set up with metadata raid-1 and data raid-0.
> It won't help you - but did you format it with mkfs.btrfs, while it was mounted?
No I formatted as ext4 while off-line.
Thanks for the feedback.
I guess I just kiss the files goodbye and move on.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Any chance to recovery btrfs raid-0 after accidental format of one volume?
2011-09-06 23:00 ` Dante
@ 2011-09-06 23:12 ` Hugo Mills
0 siblings, 0 replies; 4+ messages in thread
From: Hugo Mills @ 2011-09-06 23:12 UTC (permalink / raw)
To: Dante; +Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
On Wed, Sep 07, 2011 at 09:00:21AM +1000, Dante wrote:
> > > Bad case of user error here but I managed to reformat one half of a
> > > btrfs volume that was set up with metadata raid-1 and data raid-0.
>
> > It won't help you - but did you format it with mkfs.btrfs, while it was mounted?
>
> No I formatted as ext4 while off-line.
>
> Thanks for the feedback.
>
> I guess I just kiss the files goodbye and move on.
In this instance, it's almost certainly going to be faster to
recover from your backups than it is to attempt to reconstruct the few
files that you can from the bits that aren't missing.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Don't worry, he's not drunk. He's like that all the time. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-06 23:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAKdoYmDNjBDgHjLNaf5HmrRxGkYPXjssZoGa3Tb4p3uc2DcOcg@mail.gmail.com>
2011-09-05 21:56 ` Any chance to recovery btrfs raid-0 after accidental format of one volume? Dante
2011-09-06 23:00 ` Dante
2011-09-06 23:12 ` Hugo Mills
2011-09-06 6:24 Tomasz Chmielewski
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).