nodetool listsnapshots — 스냅샷 목록 조회
nodetool listsnapshots — 스냅샷 목록 조회
listsnapshots 명령은 모든 스냅샷과 함께 디스크 크기 및 실제 크기(true size)를 나열하는 nodetool 명령이에요. 스냅샷이 차지하는 공간을 확인할 때 씁니다.
본문
이 명령은 노드의 모든 스냅샷을 크기와 함께 나열해요. 실제 크기(true size)는 디스크에 백업되지 않은 모든 SSTable의 총 크기이고, 디스크 크기(size on disk)는 스냅샷이 디스크에서 차지하는 총 크기예요. Total TrueDiskSpaceUsed는 SSTable 중복 제거를 수행하지 않아요.
원문의 사용법은 다음과 같습니다.
NAME
nodetool listsnapshots - Lists all the snapshots along with the size on
disk and true size. True size is the total size of all SSTables which
are not backed up to disk. Size on disk is total size of the snapshot on
disk. Total TrueDiskSpaceUsed does not make any SSTable deduplication.
SYNOPSIS
nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
[(-pp | --print-port)] [(-pw <password> | --password <password>)]
[(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
[(-u <username> | --username <username>)] listsnapshots
[(-nt | --no-ttl)]
OPTIONS
-h <host>, --host <host>
Node hostname or ip address
-nt, --no-ttl
Skip snapshots with TTL
-p <port>, --port <port>
Remote jmx agent port number
-pp, --print-port
Operate in 4.0 mode with hosts disambiguated by port number
-pw <password>, --password <password>
Remote jmx agent password
-pwf <passwordFilePath>, --password-file <passwordFilePath>
Path to the JMX password file
-u <username>, --username <username>
Remote jmx agent username
옵션을 하나씩 살펴볼게요.
-nt, --no-ttl— TTL이 있는 스냅샷을 건너뛰어요.-h <host>, --host <host>— 대상 노드의 호스트명 또는 IP 주소를 지정해요.-p <port>, --port <port>— 원격 JMX 에이전트 포트 번호를 지정해요.-pp, --print-port— 호스트를 포트 번호로 구분하는 4.0 모드로 동작해요.-pw <password>, --password <password>— 원격 JMX 에이전트 비밀번호를 지정해요.-pwf <passwordFilePath>, --password-file <passwordFilePath>— JMX 비밀번호 파일의 경로를 지정해요.-u <username>, --username <username>— 원격 JMX 에이전트 사용자 이름을 지정해요.
더 알아보기
- nodetool snapshot — 스냅샷 생성
- nodetool clearsnapshot — 스냅샷 삭제