Advanced

Debian forky OverlayFS BTRFS/XFS setup

Posted by dba477 on · Post a comment
https://dbaxps.blogspot.com; By Boris Derzhavets
Mail this story
Print this story

One more option provided is recovery main instance via booting into Overlay instance using Grub Submenu. By explicitly mounting the top-level Btrfs volume (subvolid=5) into a temporary directory like /mnt, you step outside the overlay's jurisdiction. This allows the kernel to recognize the true Btrfs layout and perform instant atomic subvolume swaps.

sudo mount -o subvolid=5   /dev/vda4   /mnt
sudo btrfs subvolume list   /mnt/@
sudo mv   /mnt/@  /mnt/@_broken
sudo btrfs subvolume snapshot /mnt/@snapshots/snap-ID/snapshot  /mnt/@
sudo btrfs subvolume  delete   /mnt/@_broken 

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Developer, Distributions, Virtualization

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post