Btrfs send / receive freeze system?
Hi everyone.
It's a few weeks that I converted my root partition into btrfs with three sub- volumes named boot,root,home. I'm booting with /boot on subvol.
I'm using btrfs send and receive to make backup of the three snapshotted subvolumes on a second btrfs formatted drive with three commands like this:
btrfs send /btrfs-root/snap-root/ | gzip > $BKFOLDER/root.dump.gz
Sometimes, let say once a week, the system completely freeze (mouse keyboard) during the send, only solution was the reset button. The freeze happened on different place every time. Last time happened at 80% of the home send for example.
The freeze also happened during a send/receive from an external e-sata drive (to copy some mp3 using send instead of rsync) to the same internal drive where the backup are also made.
The system always run and was stable with XFS/xfsdump.
Kernel is 4.3.3, btrfs progs are 4.3.1, system is Arch Linux 64 bit, Ram 8Gb Mainboard Asus striker extreme Nvidia 680i, 8 years old.
After the crash nothing is shown in the systemd log, it simply freeze.
Thanks, regards,
Mario
Quoted 18 lines · fugazzi®
Hi everyone.
It's a few weeks that I converted my root partition into btrfs with three sub- volumes named boot,root,home. I'm booting with /boot on subvol.I'm using btrfs send and receive to make backup of the three snapshotted subvolumes on a second btrfs formatted drive with three commands like this:
btrfs send /btrfs-root/snap-root/ | gzip > $BKFOLDER/root.dump.gz
Sometimes, let say once a week, the system completely freeze (mouse keyboard) during the send, only solution was the reset button. The freeze happened on different place every time. Last time happened at 80% of the home send for example.
The freeze also happened during a send/receive from an external e-sata drive (to copy some mp3 using send instead of rsync) to the same internal drive where the backup are also made.
Quoted 6 lines
The system always run and was stable with XFS/xfsdump.
Kernel is 4.3.3, btrfs progs are 4.3.1, system is Arch Linux 64 bit, Ram 8Gb Mainboard Asus striker extreme Nvidia 680i, 8 years old.
After the crash nothing is shown in the systemd log, it simply freeze.
You could try this (maybe you have already) and see if and where the problem is in btrfs:
https://en.m.wikipedia.org/wiki/Magic_SysRq_key
Instead of pipe to gzip you could do:
| btrfs receive -vv <some btrfs mount>
and trace back at which file the freeze happens. Maybe that tells something about the source filesystem.
Thank you Henk.
Yes I already tried that but it seems the keyboard is also offline so sys commands had no effect. In fact ping was not working also, it seem interrupt got disconnected somehow.
I tried your suggestion but it freeze on different files on different run. I got a freeze every 3-4 pass on average.
I also formatted again and tried to copy something from an external e-sata drive (mounted read only) to the same internal sata drive, it freeze also from there every time on a different file.
If I use rsync to copy or cp the freeze does not happen.
Reformatting the internal drive to XFS solve the freeze, I mean sending the gzipped send to the XFS formatted drive do not freeze the pc. Sending the same gzipped send on the same drive formatted in btrfs freeze the system.
Since no one had/have this problem I'm beginning to guess btrfs might be exposing some hardware failure I was not aware of. It might be possible that having the two drive formatted as btrfs is more hard to the system due to double checksumming, etc.
It is one month now that this system was converted to btrfs, I never had any problems only this send problem and only after I converted also the second internal drive to btrfs. Scrubs are OK, btrfs check are OK.
I would wait and see if someone else will have similar problems.
For now I mitigated adding a third internal drive formatted in XFS and sending the backup there, then from there copying the backup back to the btrfs drive. Now I have two copy of the same backup on different drive :-)
Regards.
Quoted 36 lines · WET you
Quoted 19 lines · fugazzi®
Hi everyone.
It's a few weeks that I converted my root partition into btrfs with three sub- volumes named boot,root,home. I'm booting with /boot on subvol.I'm using btrfs send and receive to make backup of the three snapshotted subvolumes on a second btrfs formatted drive with three commands like this:
btrfs send /btrfs-root/snap-root/ | gzip > $BKFOLDER/root.dump.gz
Sometimes, let say once a week, the system completely freeze (mouse keyboard) during the send, only solution was the reset button. The freeze happened on different place every time. Last time happened at 80% of the home send for example.
The freeze also happened during a send/receive from an external e-sata drive (to copy some mp3 using send instead of rsync) to the same internal drive where the backup are also made.
Quoted 6 lines
The system always run and was stable with XFS/xfsdump.
Kernel is 4.3.3, btrfs progs are 4.3.1, system is Arch Linux 64 bit, Ram 8Gb Mainboard Asus striker extreme Nvidia 680i, 8 years old.
After the crash nothing is shown in the systemd log, it simply freeze.
You could try this (maybe you have already) and see if and where the problem is in btrfs:
https://en.m.wikipedia.org/wiki/Magic_SysRq_keyInstead of pipe to gzip you could do:
| btrfs receive -vv <some btrfs mount>and trace back at which file the freeze happens. Maybe that tells something about the source filesystem.
Quoted 13 lines · fugazzi®
Thank you Henk.
Yes I already tried that but it seems the keyboard is also offline so sys commands had no effect. In fact ping was not working also, it seem interrupt got disconnected somehow.
I tried your suggestion but it freeze on different files on different run. I got a freeze every 3-4 pass on average.
I also formatted again and tried to copy something from an external e-sata drive (mounted read only) to the same internal sata drive, it freeze also from there every time on a different file.
Quoted 5 lines
If I use rsync to copy or cp the freeze does not happen.
Reformatting the internal drive to XFS solve the freeze, I mean sending the gzipped send to the XFS formatted drive do not freeze the pc. Sending the same gzipped send on the same drive formatted in btrfs freeze the system.
Another test would be to write gzipped btrfs-stream to file that is on the same btrfs-filesystem as the source ro-snapshot that is send. E.g. the root stream to /home, ans see if it keeps running. Or write it to a subvolume with +C (nodatacow) attrib set, if you think double checksumming is the issue.
Quoted 4 lines
Since no one had/have this problem I'm beginning to guess btrfs might be exposing some hardware failure I was not aware of. It might be possible that having the two drive formatted as btrfs is more hard to the system due to double checksumming, etc.
I use this send | receive for almost 2 years with various setups, also with same kernel / tools version as you use currently. Although I have encountered some problems(but no complete freezes), they could all be solved or worked-around quite easily.
I also was thinking of some HW issue. If memtest86+ says OK, then I
it will be hard to figure out what it is.
It is not unthinkable that the same HW works with btrfs->XFS and crashes with btrfs->btrfs. I had a similar case: Windows was running fine, but linux+btrfs started producing strange errors w.r.t. the btrfs filesystem after several days. It turned out that one dataline on about 250 addresses in 1 memory module was faulty. But in your case I think it is not the memory.
Quoted 55 lines
It is one month now that this system was converted to btrfs, I never had any problems only this send problem and only after I converted also the second internal drive to btrfs. Scrubs are OK, btrfs check are OK.
I would wait and see if someone else will have similar problems.
For now I mitigated adding a third internal drive formatted in XFS and sending the backup there, then from there copying the backup back to the btrfs drive. Now I have two copy of the same backup on different drive :-)
Regards.
Quoted 31 lines · WET you
Quoted 19 lines · fugazzi®
Hi everyone.
It's a few weeks that I converted my root partition into btrfs with three sub- volumes named boot,root,home. I'm booting with /boot on subvol.I'm using btrfs send and receive to make backup of the three snapshotted subvolumes on a second btrfs formatted drive with three commands like this:
btrfs send /btrfs-root/snap-root/ | gzip > $BKFOLDER/root.dump.gz
Sometimes, let say once a week, the system completely freeze (mouse keyboard) during the send, only solution was the reset button. The freeze happened on different place every time. Last time happened at 80% of the home send for example.
The freeze also happened during a send/receive from an external e-sata drive (to copy some mp3 using send instead of rsync) to the same internal drive where the backup are also made.
Quoted 6 lines
The system always run and was stable with XFS/xfsdump.
Kernel is 4.3.3, btrfs progs are 4.3.1, system is Arch Linux 64 bit, Ram 8Gb Mainboard Asus striker extreme Nvidia 680i, 8 years old.
After the crash nothing is shown in the systemd log, it simply freeze.
You could try this (maybe you have already) and see if and where the problem is in btrfs:
https://en.m.wikipedia.org/wiki/Magic_SysRq_keyQuoted 5 lines
Instead of pipe to gzip you could do:
| btrfs receive -vv <some btrfs mount>and trace back at which file the freeze happens. Maybe that tells something about the source filesystem.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks again for your kind answer, Henk .
Memetest86+ runs ok but I really don't know how much I have to leave it running. I left it 4 hours in normal mode because the multi thread one crash after a few minutes.
Anyway I suppose that if the ram was bad I would have some check-sum corruptions around after 1 months or I had noticed something bad even before moving to btrfs.
Since this happen with the two integrated HD controller the mcp55 and the sil24 I suspect it could be a mainboard problem that for now it seem not to cause data corruption on linux.
Another clue about the possible mainboard failure is that today I installed windows(10) for the first time (windows was never installed on this machine before) and it was basically unusable: freezing, rebooting, restarting the video driver continuously. I don't know if it is the 10 that has problems but, After a while I had to turn off the pc because after a sudden reboot it was stuck on the bios image even after pressing reset many time. I had to unplug it! Never see anything like this. May be is time to look for a new pc before the explosion!!
Cheers. Mario
Quoted 111 lines · WET Henk Slager
Quoted 13 lines · fugazzi®
Thank you Henk.
Yes I already tried that but it seems the keyboard is also offline so sys commands had no effect. In fact ping was not working also, it seem interrupt got disconnected somehow.
I tried your suggestion but it freeze on different files on different run. I got a freeze every 3-4 pass on average.
I also formatted again and tried to copy something from an external e-sata drive (mounted read only) to the same internal sata drive, it freeze also from there every time on a different file.
Quoted 6 lines
If I use rsync to copy or cp the freeze does not happen.
Reformatting the internal drive to XFS solve the freeze, I mean sending the
gzipped send to the XFS formatted drive do not freeze the pc. Sending the same gzipped send on the same drive formatted in btrfs freeze the system.Another test would be to write gzipped btrfs-stream to file that is on the same btrfs-filesystem as the source ro-snapshot that is send. E.g. the root stream to /home, ans see if it keeps running. Or write it to a subvolume with +C (nodatacow) attrib set, if you think double checksumming is the issue.
Quoted 4 lines
Since no one had/have this problem I'm beginning to guess btrfs might be exposing some hardware failure I was not aware of. It might be possible that having the two drive formatted as btrfs is more hard to the system due to double checksumming, etc.
I use this send | receive for almost 2 years with various setups, also with same kernel / tools version as you use currently. Although I have encountered some problems(but no complete freezes), they could all be solved or worked-around quite easily.
I also was thinking of some HW issue. If memtest86+ says OK, then I
it will be hard to figure out what it is.
It is not unthinkable that the same HW works withbtrfs->XFSand crashes withbtrfs->btrfs. I had a similar case: Windows was running fine, but linux+btrfs started producing strange errors w.r.t. the btrfs filesystem after several days. It turned out that one dataline on about 250 addresses in 1 memory module was faulty. But in your case I think it is not the memory.Quoted 54 lines
It is one month now that this system was converted to btrfs, I never had any problems only this send problem and only after I converted also the second internal drive to btrfs. Scrubs are OK, btrfs check are OK.
I would wait and see if someone else will have similar problems.
For now I mitigated adding a third internal drive formatted in XFS and sending the backup there, then from there copying the backup back to the btrfs drive. Now I have two copy of the same backup on different drive :-)
Regards.
Quoted 40 lines · WET you
Quoted 24 lines · fugazzi®
Hi everyone.
It's a few weeks that I converted my root partition into btrfs with three
sub- volumes named boot,root,home. I'm booting with /boot on subvol.I'm using btrfs send and receive to make backup of the three snapshotted
subvolumes on a second btrfs formatted drive with three commands like this:btrfs send /btrfs-root/snap-root/ | gzip > $BKFOLDER/root.dump.gz
Sometimes, let say once a week, the system completely freeze (mouse keyboard) during the send, only solution was the reset button. The freeze
happened on different place every time. Last time happened at 80% of the
home send for example.The freeze also happened during a send/receive from an external e-sata drive (to copy some mp3 using send instead of rsync) to the same internal
drive where the backup are also made.Quoted 7 lines
The system always run and was stable with XFS/xfsdump.
Kernel is 4.3.3, btrfs progs are 4.3.1, system is Arch Linux 64 bit, Ram
8Gb Mainboard Asus striker extreme Nvidia 680i, 8 years old.After the crash nothing is shown in the systemd log, it simply freeze.
You could try this (maybe you have already) and see if and where the problem is in btrfs:
https://en.m.wikipedia.org/wiki/Magic_SysRq_keyInstead of pipe to gzip you could do:
| btrfs receive -vv <some btrfs mount>Quoted 8 lines
Quoted 3 lines
and trace back at which file the freeze happens. Maybe that tells something
about the source filesystem.--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html