On Thu, Oct 10, 2013 at 08:06:23AM -0500, Jeffrey Bastian wrote:
I tried slowing down the rsync with
nice -n19 ionice -c3 rsync --bwlimit=1024K ...
but that didn't help.
I tried cgroups is a bigger hammer to throttle I/O, but it didn't help
either.
[root@trimslice ~]# ls -l /dev/sda
brw-rw----. 1 root disk 8, 0 Dec 31 1969 /dev/sda
[root@trimslice ~]# echo "8:0 131072" >
/sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
[root@trimslice ~]# cat /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
8:0 131072
I then started with a fresh file system and copied /boot:
[root@trimslice ~]# mkfs.ext3 -L boot /dev/sda1
[root@trimslice ~]# mount /dev/sda1 /mnt/boot
[root@trimslice ~]# rsync -xav /boot/ /mnt/boot/
It took much longer with the throttled writes, but eventually the kernel
started spewing errors:
[ 9949.502220] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9949.731333] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9949.736725] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 9949.968686] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9950.197669] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9950.426677] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9950.655722] hub 1-0:1.0: cannot reset port 1 (err = -110)
[ 9951.298181] end_request: I/O error, dev sda, sector 165122
[ 9951.303676] Buffer I/O error on device sda1, logical block 81537
[ 9951.309667] Buffer I/O error on device sda1, logical block 81538
[ 9951.315657] Buffer I/O error on device sda1, logical block 81539
[ 9951.321647] Buffer I/O error on device sda1, logical block 81540
[ 9951.327676] Buffer I/O error on device sda1, logical block 81541
[ 9951.333670] Buffer I/O error on device sda1, logical block 81542
[ 9951.339661] Buffer I/O error on device sda1, logical block 81543
[ 9951.345651] Buffer I/O error on device sda1, logical block 81544
[ 9951.351687] Buffer I/O error on device sda1, logical block 81545
[ 9951.357680] Buffer I/O error on device sda1, logical block 81546
[10069.419378] hub 1-0:1.0: cannot reset port 1 (err = -110)
[10069.648520] hub 1-0:1.0: cannot reset port 1 (err = -110)
Oh well. I guess I'll just keep /boot on the SD card.
Hopefully the Utilite works a little better.
Thanks!
Jeff