smallgod
Posts: 10
Joined: Fri Jan 04, 2013 12:19 am

rsync problem

Fri Jan 04, 2013 12:34 am

I am using the latest Raspian image and rsync 3.0.9.
I was having some problems with ssh dropping out but I think I have that fixed by setting ssh TCPKeepalive to no.

When I try to backup / using:

Code: Select all

rsync -av --progress / backup machine:/backupfolder/ (from the Pi)
OR

Code: Select all

rsync -av --progress /backupfolder/ PiAddress:/ (from the backup machine)
the backup chugs along until it reaches the same files and then I get a broken pipe.

When I get to the files (I guess they're not normal files) in:
/sys/devices/platform/bcm2708_usb/
I start to get errors and then the transfer quits, I cant get any connection over ethernet after that and need to reboot the Pi.

I can get the same result right away by trying to backup the /sys/devices/platform/bcm2708_usb/ directory.

Here are the errors right before the transfer stops:

Code: Select all

busconnected
        4096 100%    0.00kB/s    0:00:00 (xfer#1, to-check=362/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/busconnected": No data available (61)
buspower
        4096 100%  363.64kB/s    0:00:00 (xfer#2, to-check=361/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/buspower": No data available (61)
bussuspend
        4096 100%  222.22kB/s    0:00:00 (xfer#3, to-check=360/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/bussuspend": No data available (61)
devspeed
        4096 100%  153.85kB/s    0:00:00 (xfer#4, to-check=359/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/devspeed": No data available (61)
rsync: send_files failed to open "/sys/devices/platform/bcm2708_usb/disconnect_us": Permission denied (13)
rsync: symlink "/Users/jp/Desktop/rPi_backup/driver" -> "../../../bus/platform/drivers/dwc_otg" failed: Permission denied (13)
enumspeed
        4096 100%  105.26kB/s    0:00:00 (xfer#6, to-check=356/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/enumspeed": No data available (61)
fr_interval
        4096 100%   86.96kB/s    0:00:00 (xfer#7, to-check=355/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/fr_interval": No data available (61)
ggpio
        4096 100%   75.47kB/s    0:00:00 (xfer#8, to-check=354/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/ggpio": No data available (61)
gnptxfsiz
        4096 100%   64.52kB/s    0:00:00 (xfer#9, to-check=353/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/gnptxfsiz": No data available (61)
gotgctl
        4096 100%   57.14kB/s    0:00:00 (xfer#10, to-check=352/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/gotgctl": No data available (61)
gpvndctl
        4096 100%   51.28kB/s    0:00:00 (xfer#11, to-check=351/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/gpvndctl": No data available (61)
grxfsiz
        4096 100%   45.98kB/s    0:00:00 (xfer#12, to-check=350/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/grxfsiz": No data available (61)
gsnpsid
        4096 100%   42.11kB/s    0:00:00 (xfer#13, to-check=349/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/gsnpsid": No data available (61)
guid
        4096 100%   39.22kB/s    0:00:00 (xfer#14, to-check=348/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/guid": No data available (61)
gusbcfg
        4096 100%   36.04kB/s    0:00:00 (xfer#15, to-check=347/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/gusbcfg": No data available (61)
hcd_frrem
        4096 100%   33.61kB/s    0:00:00 (xfer#16, to-check=346/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hcd_frrem": No data available (61)
hcddump
        4096 100%   31.75kB/s    0:00:00 (xfer#17, to-check=345/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hcddump": No data available (61)
hnp
        4096 100%   30.08kB/s    0:00:00 (xfer#18, to-check=344/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hnp": No data available (61)
hnpcapable
        4096 100%   28.17kB/s    0:00:00 (xfer#19, to-check=343/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hnpcapable": No data available (61)
hprt0
        4096 100%   26.67kB/s    0:00:00 (xfer#20, to-check=342/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hprt0": No data available (61)
hptxfsiz
        4096 100%   25.32kB/s    0:00:00 (xfer#21, to-check=341/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hptxfsiz": No data available (61)
hsic_connect
        4096 100%   24.10kB/s    0:00:00 (xfer#22, to-check=340/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/hsic_connect": No data available (61)
inv_sel_hsic
        4096 100%   22.99kB/s    0:00:00 (xfer#23, to-check=339/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/inv_sel_hsic": No data available (61)
modalias
        4096 100%   21.98kB/s    0:00:00 (xfer#24, to-check=338/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/modalias": No data available (61)
mode
        4096 100%   21.16kB/s    0:00:00 (xfer#25, to-check=337/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/mode": No data available (61)
mode_ch_tim_en
        4096 100%   20.20kB/s    0:00:00 (xfer#26, to-check=336/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/mode_ch_tim_en": No data available (61)
pools
        4096 100%   19.51kB/s    0:00:00 (xfer#27, to-check=335/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/pools": No data available (61)
rd_reg_test
        4096 100%    3.04kB/s    0:00:01 (xfer#28, to-check=334/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/rd_reg_test": No data available (61)
regdump
        4096 100%    3.02kB/s    0:00:01 (xfer#29, to-check=333/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/regdump": No data available (61)
regoffset
        4096 100%    2.98kB/s    0:00:01 (xfer#30, to-check=332/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/regoffset": No data available (61)
regvalue
        4096 100%    2.97kB/s    0:00:01 (xfer#31, to-check=331/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/regvalue": No data available (61)
rem_wakeup_pwrdn
        4096 100%    2.95kB/s    0:00:01 (xfer#32, to-check=330/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/rem_wakeup_pwrdn": No data available (61)
remote_wakeup
        4096 100%    2.93kB/s    0:00:01 (xfer#33, to-check=329/363)
rsync: read errors mapping "/sys/devices/platform/bcm2708_usb/remote_wakeup": No data available (61)
spramdump
Write failed: Broken pipe

ksangeelee
Posts: 192
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
Contact: Website

Re: rsync problem

Fri Jan 04, 2013 2:02 am

The directories /sys, /proc, /dev are special filesystems, and they shouldn't be included in your backup (as you discovered with your crashed machine).

If you use the -x flag in rsync, then it will limit the backup to a single filesystem ('/' - your root filesystem), which means you may need to run rsync a second time, this time for the /boot filesystem (since it's on a separate partition).

There's also the --exclude option, which allows you to list paths to exclude. There may be other ways.

bleistik
Posts: 1
Joined: Sat Jan 12, 2013 10:43 pm

Re: rsync problem

Sat Jan 12, 2013 11:17 pm

Nonetheless, the OS shouldn't crash.
You can reproduce it by doing:

cat /sys/devices/platform/bcm2708_usb/spramdump
which results in the following on the console.

Image

Regards Bernd

Return to “General discussion”