bashtop 은 bash 4.4 이상 bpytop는 python3이상입니다. 오늘 저는 bashtop를 사용해볼까 합니다.
먼저 bash 5.0을 설치 하려 합니다.
cd /usr/local/src/
wget http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
tar zxvf bash-5.0.tar.gz
cd bash-5.0/
./configure && make && make install
mv /bin/bash /bin/bash.bak
ln -s /usr/local/bin/bash /bin/bash
[root@linuxer src]# bash -version
GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
그래서 bash 를 다운받고 컴파일 해줬습니다. 기존 bash 는 4.2 버전이라 bash.bak 으로 변경해 문제가 생기면 언제든 사용할수 있도록 만들었습니다.
yum install git
git clone https://github.com/aristocratos/bashtop.git
cd bashtop/
make install
일단 이 방법은 좀 임시방편이고, 좀 더 확장성있는 방법으로 가기위해선 scale out을 해야한다.
또 추가하자면..
FIN_WAIT2 / TIME_WAIT 두가지의 TCP 파라미터가 60초의 기본시간을 가지게 되어서 총 2분의 대기시간을 가지게 된다. 컨트롤 할수있는 파라미터는 FIN_WAIT2 상대의 파라미터를 수정 하는경우도 있다고 한다. 수정할수 있는파라미터는 대부분 /proc/sys/net/ipv4 경로에 위치하니 하나씩 확인해 보자.
Filenames should be encoded in UTF-8 on disk. This is the normal case for Windows and OS X.
There is a bit more uncertainty in the Linux world, but new distributions will have UTF-8 encoded files names. If you are using an old Linux filesystem with non UTF-8 file names (eg latin1) then you can use the convmv tool to convert the filesystem to UTF-8. This tool is available in most distributions' package managers.
If an invalid (non-UTF8) filename is read, the invalid characters will be replaced with a quoted representation of the invalid bytes. The name gro\xdf will be transferred as gro‛DF. rclone will emit a debug message in this case (use -v to see), eg
인코딩 문제인데 이건...하...나중에 rsync 로 남은파일을 채워볼까 생각했지만 불확실성이 너무 컷다. 파일의 누락이 너무많았다
그래도 테스트는 그냥 진행했고 싱크속도 무지빠르고 쓸만했다.
그래서 이후에 소유권과 퍼미션을 넣어주는 작업을 궁리했다.
getfacl -R /src > file.list sed 's/src/dst/g' file.list cd /dst setfacl --restore=file.list
[root@s1734ba4660a ~]# vgdisplay --- Volume group --- VG Name linuxer-lvm System ID Format lvm2 Metadata Areas 15 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 0 Max PV 0 Cur PV 15 Act PV 15 VG Size 149.94 GiB PE Size 4.00 MiB Total PE 38385 Alloc PE / Size 38385 / 149.94 GiB Free PE / Size 0 / 0 VG UUID YEEHFI-FpvU-fTmE-YnHx-9itm-mhH6-QUsz8j