All of lore.kernel.org
 help / color / mirror / Atom feed
* Can I use btrfs-restore to restore ceph osds?
@ 2012-05-09 17:15 Guido Winkelmann
  2012-05-09 17:35 ` Guido Winkelmann
  2012-05-10 20:55 ` Tommi Virtanen
  0 siblings, 2 replies; 3+ messages in thread
From: Guido Winkelmann @ 2012-05-09 17:15 UTC (permalink / raw)
  To: ceph-devel

Hi,

I'm currently trying to re-enable my experimental ceph cluster that has been 
offline for a few months. Unfortunately, it appears that, out of the six btrfs 
volumes involved, only one can still be mounted, the other five are broken 
somehow. (If I ever use Ceph in production, it's probably not going to be on 
btrfs after this... I cannot recall whether or not the servers were properly 
shut down the last time, but even if not, this is a bit ridiculous.)

I cannot seem to repair the broken filesystem with btrfsck, but I can extract 
data from them with btrfs-restore.

If I want to restore this whole thing, can I just run btrfs-restore to recover 
the files that were on the broken volume, then make a new filesystem on the 
old partition, and finally copy over the directories and file restored by 
btrfs-restore? Or will that lose important information?

	Guido

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can I use btrfs-restore to restore ceph osds?
  2012-05-09 17:15 Can I use btrfs-restore to restore ceph osds? Guido Winkelmann
@ 2012-05-09 17:35 ` Guido Winkelmann
  2012-05-10 20:55 ` Tommi Virtanen
  1 sibling, 0 replies; 3+ messages in thread
From: Guido Winkelmann @ 2012-05-09 17:35 UTC (permalink / raw)
  To: ceph-devel

Am Mittwoch, 9. Mai 2012, 19:15:19 schrieben Sie:
> I'm currently trying to re-enable my experimental ceph cluster that has been
> offline for a few months. Unfortunately, it appears that, out of the six
> btrfs volumes involved, only one can still be mounted, the other five are
> broken somehow. (If I ever use Ceph in production, it's probably not going
> to be on btrfs after this... I cannot recall whether or not the servers
> were properly shut down the last time, but even if not, this is a bit
> ridiculous.)

In case anybody was wondering, the machines were using kernel 3.1.1 when they 
last ran. (And still are, but I'm preparing a newer kernel.) I don't know yet 
what bug has caused this breakage and whether or not it's still present in 
newer kernels.

	Guido

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can I use btrfs-restore to restore ceph osds?
  2012-05-09 17:15 Can I use btrfs-restore to restore ceph osds? Guido Winkelmann
  2012-05-09 17:35 ` Guido Winkelmann
@ 2012-05-10 20:55 ` Tommi Virtanen
  1 sibling, 0 replies; 3+ messages in thread
From: Tommi Virtanen @ 2012-05-10 20:55 UTC (permalink / raw)
  To: Guido Winkelmann; +Cc: ceph-devel

On Wed, May 9, 2012 at 10:15 AM, Guido Winkelmann
<guido-ceph@thisisnotatest.de> wrote:
> I'm currently trying to re-enable my experimental ceph cluster that has been
> offline for a few months. Unfortunately, it appears that, out of the six btrfs
> volumes involved, only one can still be mounted, the other five are broken
> somehow. (If I ever use Ceph in production, it's probably not going to be on
> btrfs after this... I cannot recall whether or not the servers were properly
> shut down the last time, but even if not, this is a bit ridiculous.)
>
> I cannot seem to repair the broken filesystem with btrfsck, but I can extract
> data from them with btrfs-restore.

OSD uses btrfs snapshots internally. Any restore operation would have
to bring the snapshots back exactly as they were, too. It seems
there's a -s option for that, but whether things will work out is hard
to predict.. since it was a test cluster, perhaps you're better off
scrapping the data and setting up a new cluster.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-10 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 17:15 Can I use btrfs-restore to restore ceph osds? Guido Winkelmann
2012-05-09 17:35 ` Guido Winkelmann
2012-05-10 20:55 ` Tommi Virtanen

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.