TMA-TDSQL-1.1
Ensure the TDSQL Database Is Placed on a Non-System Partition
보통레벨 1자동tdsql
설명
TDSQL database instance data (including MySQL data files, binary logs, and transaction logs) should be stored on a dedicated, non-system partition. In TDSQL, the data directory and log directory paths can be configured per host via the ZooKeeper set_hostdir node. Uses TDSQL_DATA (default /data/tdsql/data) for the instance data directory; passes when it is not on the /, /var or /usr filesystem.
점검 방법
감사 방식: 셸 명령
shell
d=${TDSQL_DATA:-/data/tdsql/data}; [ -d "$d" ] || exit 1; m=$(findmnt -n -o TARGET -T "$d" 2>/dev/null) || exit 1; case "$m" in /|/var|/usr) echo "on $m";; *) echo compliant;; esac- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Create a dedicated partition/volume for TDSQL data (e.g. mounted at /data/tdsql with nodev), migrate the data directory to it during a maintenance window and add it to /etc/fstab.
속성
- 운영 체제
- 모두
- 태그
- tdsqlstorage
- 참고 자료
- CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 1.1 Ensure the TDSQL Database Is Placed on a Non-System Partition
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target tdsql