Ulli Horlacher
2024-03-24 10:24:43 UTC
Mein linuxclone(*) verwendet rsync um das laufende System in eine andere
disk/partition zu kopieren. Das funktioniert mit diversen Distributionen
nur nicht mit Redhat (7.9). Da haengt sich rsync nach 100000 kopierten
Dateien mit 5 GB auf:
***@sp-i:# linuxclone /dev/mapper/rhel-7
(...)
# rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_iUB4Eq.tmp --include-from=/tmp/lci_fcjyJG.tmp -x / /mnt/linuxclone/rhel-7/
sending incremental file list
(...)
/usr/bin/nfsiostat-sysstat
/usr/bin/ngettext
/usr/bin/nice
(haengt)
***@sp-i:# psg rsync
USER PID PPID %CPU S VSZ COMMAND
root 143920 143919 11.0 S 103852 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
root 143918 143828 5.4 S 84656 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
root 143919 143918 0.3 S 53348 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
***@sp-i:# strace -p 143920
strace: Process 143920 attached
select(5, [], [4], [], {tv_sec=55, tv_usec=6217}
***@sp-i:# strace -p 143919
strace: Process 143919 attached
select(2, [], [1], [], {tv_sec=27, tv_usec=213802}
***@sp-i:# strace -p 143918
strace: Process 143918 attached
select(5, [], [4], [], {tv_sec=20, tv_usec=741968}
Brech ich linuxclone und samit rsync mit Ctrl-C ab, bekomme ich hunderte
von Fehlermeldungen:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.info.sl.f46th0"","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.info.slc.HchKcY"","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.isearch.sl.Lo407V"","security.selinux") failed: Permission denied (13)
(...)
Schuld sind also wohl die extended attributes von SE-Linux. Lass ich die
Option -X weg, laeuft rsync und somit auch linuxclone durch.
Warumwiesoweshalb?
(*) https://fex.belwue.de/linuxtools/linuxclone.html
disk/partition zu kopieren. Das funktioniert mit diversen Distributionen
nur nicht mit Redhat (7.9). Da haengt sich rsync nach 100000 kopierten
Dateien mit 5 GB auf:
***@sp-i:# linuxclone /dev/mapper/rhel-7
(...)
# rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_iUB4Eq.tmp --include-from=/tmp/lci_fcjyJG.tmp -x / /mnt/linuxclone/rhel-7/
sending incremental file list
(...)
/usr/bin/nfsiostat-sysstat
/usr/bin/ngettext
/usr/bin/nice
(haengt)
***@sp-i:# psg rsync
USER PID PPID %CPU S VSZ COMMAND
root 143920 143919 11.0 S 103852 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
root 143918 143828 5.4 S 84656 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
root 143919 143918 0.3 S 53348 rsync -avARSDH -X --delete --force --exclude-from=/tmp/lcx_Ik6cSW.tmp --include-from=/tmp/lci_eMM8uk.tmp -x / /mnt/linuxclone/rhel-7/
***@sp-i:# strace -p 143920
strace: Process 143920 attached
select(5, [], [4], [], {tv_sec=55, tv_usec=6217}
***@sp-i:# strace -p 143919
strace: Process 143919 attached
select(2, [], [1], [], {tv_sec=27, tv_usec=213802}
***@sp-i:# strace -p 143918
strace: Process 143918 attached
select(5, [], [4], [], {tv_sec=20, tv_usec=741968}
Brech ich linuxclone und samit rsync mit Ctrl-C ab, bekomme ich hunderte
von Fehlermeldungen:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.info.sl.f46th0"","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.info.slc.HchKcY"","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lremovexattr(""/mnt/linuxclone/rhel-7/sw/share/jedlib-0.99-17/jed/lib/.isearch.sl.Lo407V"","security.selinux") failed: Permission denied (13)
(...)
Schuld sind also wohl die extended attributes von SE-Linux. Lass ich die
Option -X weg, laeuft rsync und somit auch linuxclone durch.
Warumwiesoweshalb?
(*) https://fex.belwue.de/linuxtools/linuxclone.html
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: ***@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: ***@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/