[lxc-devel] Error restoring snapshots on btrfs

John Peacock jpeacock at messagesystems.com
Thu Jan 9 21:08:08 UTC 2014


On Thu, 2014-01-09 at 15:01 -0500, John Peacock wrote:

> > # rm -r /var/lib/lxc/container/rh65-dev/rootfs
> > rm: cannot remove ‘/var/lib/lxc/container/rh65-dev/rootfs’: Operation not permitted
> 
> I'm not really sure how that was accomplished.

To update this for the history, in case someone else has this problem:

The subvolume was not listed by

  btrfs subvolume list

(presumably because the rsync had messed it up), but it was apparently
still marked as such in the filesystem metadata (even after a reboot).
I was able to clean up the mess via:

  btrfs subvolume delete /var/lib/lxc/container/rh65-dev/rootfs
  rm -rf /var/lib/lxc/container/rh65-dev/rootfs

and move the snapshot back in place to restore access to my original
instance.

John

-- 
JOHN PEACOCK
senior software build and release engineer
www.messagesystems.com
twitter @MessageSystems

tel 410-872-4910 x239
email john.peacock at messagesystems.com


More information about the lxc-devel mailing list