Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] xbiancopy fails after upgrading
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: xbiancopy fails after upgrading
25th Jun, 2014, 04:59 AM
Post: #9
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: xbiancopy fails after upgrading
@jyviko

NFS Stale Handle should be caused when snapshot is created, it is being send with btrfs send command but the data are not yet on filesystem itself.

That's why btrfs fi sync was added after each btrfs sub snap operation. Strange is that now fresh docs are proposing standard "sync" instead.

open /usr/sbin/btrfs-auto-snapshot in any editor (as root) and go searching for "btrfs fi sync". first relevant should be around line 650+. feel free to update the code similar as you see there so try adding after each "btrfs fi sync" one "sync", like this:

Code:
btrfs sub snap -r "XXXX" "YYY" && btrfs fi sync "YYYY" && sync

it will be there maybe on two different places (where "sub snap" operation will be found - although the risky ones should be just those where "btrfs send" follows on the snapshot we just created).

please report back.

still, we have to fix that autosize calculation anyhow. I will try to reproduce.

btw: this is not any rocket science and if you consider you setup important, you can go around those steps manually (what will slow down tempo of transactions and you could be successful). manually simply means like this. also for the poor slow RPI as last resort I would prefer plain partition as destination, not .img file going through loop & mapper etc.
let;s say you have USB stick a /dev/sda1.
Code:
sudo -i
mkfs.btrfs -m single -f /dev/sda1
mkdir /mnt/dest
mount -t btrfs -o subvolid=0 /dev/sda1 /mnt/dest
mkdir /mnt/src
mount -t btrfs -o subvolid=0 /dev/root /mnt/src

btrfs sub create /mnt/dest/home
btrfs sub create /mnt/dest/modules
btrfs sub create /mnt/dest/root

btrfs sub snap -r /mnt/src/home/@ /mnt/src/home/@ro
sync
btrfs send /mnt/src/home/@ro | btrfs receive /mnt/dest/home
sync
btrfs sub snap /mnt/dest/home/@ro /mnt/dest/home/@
sync
btrfs sub delete /mnt/dest/home/@ro
sync

and of course iterate the second block for "root" and "modules". the /dev/sda1 filesystem should be bootable the way as your source - meaning rootflags=subvol=root/@,....... root=/dev/sda1 rootfstype=btrfs

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
xbiancopy fails after upgrading - jyviko - 21st Jun, 2014, 08:17 PM
RE: xbiancopy fails after upgrading - IriDium - 22nd Jun, 2014, 04:38 AM
RE: xbiancopy fails after upgrading - mk01 - 22nd Jun, 2014, 08:50 AM
RE: xbiancopy fails after upgrading - jyviko - 22nd Jun, 2014, 06:11 PM
RE: xbiancopy fails after upgrading - mk01 - 22nd Jun, 2014, 09:22 PM
RE: xbiancopy fails after upgrading - jyviko - 22nd Jun, 2014, 09:53 PM
RE: xbiancopy fails after upgrading - mk01 - 22nd Jun, 2014, 10:08 PM
RE: xbiancopy fails after upgrading - jyviko - 23rd Jun, 2014, 03:08 AM
RE: xbiancopy fails after upgrading - mk01 - 25th Jun, 2014 04:59 AM
RE: xbiancopy fails after upgrading - jyviko - 25th Jun, 2014, 05:27 AM
RE: xbiancopy fails after upgrading - mk01 - 2nd Jul, 2014, 10:07 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 2nd Jun, 2025, 09:31 AM Powered By MyBB, © 2002-2025 MyBB Group.