Recovery of a CoreOS image

April 3, 2015 986 views
System Tools CoreOS

Our droplet is not able to fully start again and we'd like to salvage a few items from the file system. Is there a way to boot up our CoreOS droplet in recovery mode and then sftp to it?

3 Answers

Yes. If you open a ticket with our support team they can set your droplet to boot to a recovery ISO. This recovery environment will allow you to mount your filesystem and enable an ssh server that supports sftp in the recovery environment in order to download any files you need to back up.

  • ryanpq,

    We did this. But since our FS is BTRFS it cannot mount using the classic mount -t btrfs </dev/vda/9> </mnt> Unfortunately, we keep getting the error:

    [27899.670899] BTRFS: couldn't mount because of unsupported optional features (60). 
    [27899.696050] btrfs: open_ctree failed

    Support assisted us by telling us to download 'btrfs-tools' and then running mount -t btrfs but that throws the same error again. We are panicking a little bit! Any other ideas?

I've managed to recover a broken CoreOS installation with BTRFS, with the Recovery ISO environment, using the following procedure:

  1. Enable networking
  2. Add the "wheezy-backports" repository to the /etc/apt/sources.list file - as detailed here:
  3. run apt-get -t wheezy-backports install btrfs-tools
  4. use btrfsck and friends to fix your system
Have another answer? Share your knowledge.