ECS: CLI를 통해 대량의 버킷에 대한 ADO 상태를 얻는 방법
Summary: 버킷 수가 많기 때문에 ADO가 활성화/비활성화된 버킷에 대한 정보를 얻기가 어려울 수 있습니다. 이 KB에서는 CLI를 통해 이 작업을 수행하는 방법을 보여 줍니다.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
ADO는 "Access During Outage"의 약자입니다
버킷 수가 너무 많기 때문에 ADO가 활성화 /비활성화 된 버킷에 대한 정보를 얻기가 어려울 수 있습니다.
KB 000047497을 사용해야 합니다. ECS: [bkt_info.py (oc_map)] 버킷 정보 얻기(특정 버킷 또는 버킷 목록)
- admin 사용자를 사용하여 putty와 같이 ssh 클라이언트를 통해 ECS에 연결합니다.
- 모든 버킷 정보를 얻으려면 위의 KB 000047497을 따릅니다.
명령 출력에 언급된 출력 파일 확인
bkt_info.py --new_map --all_buckets
예:
admin@ecsnode3:~> bkt_info.py --new_map --all_buckets ... ... --> DUR: 0 (Days) 00:00:01.058 (hh:mm:ss.ms) - Reminder --> Output file: "/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log" admin@ecsnode3:~>
- 보다 쉬운 처리를 위해 위의 출력 파일을 변수로 설정:
LOG="/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log"
예:
admin@ecsnode3:~> LOG="/opt/emc/xdoctor/tools/ee_scripts/oc_map/suite/oc_cache/03-04-2022/08:37:00_ns_bkt_map.log" admin@ecsnode3:~>
- 목록의 맨 위에 ADO enable = true로 정렬된 모든 네임스페이스 및 버킷 목록을 생성합니다.
grep ADO $LOG | 머리 -1 > /tmp/NS+buckets_ADO.log; 고양이 $LOG | egrep 'OB|LS' | grep -v "네임스페이스의 합계" | sort -k8 >> /tmp/NS+buckets_ADO.log
예:
예:
admin@ecsnode3:~> grep ADO $LOG | head -1 > /tmp/NS+buckets_ADO.log; cat $LOG | egrep 'OB|LS' | grep -v "TOTALS FOR NAMESPACE" | sort -k8 >> /tmp/NS+buckets_ADO.log admin@ecsnode3:~>
- ADO가 활성화된 모든 버킷 목록 생성:
고양이 /tmp/NS+buckets_ADO.log | awk '$7 == "true"' | awk '{ 인쇄 $1,$2 }' > /tmp/NS+buckets_ADO_enabled.log
본보기:
본보기:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | awk '$7 == "true"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_enabled.log
admin@ecsnode3:~>
- ADO가 비활성화된 모든 버킷 목록 생성:
고양이 /tmp/NS+buckets_ADO.log | awk '$7 == "false"' | awk '{ 인쇄 $1,$2 }' > /tmp/NS+buckets_ADO_disabled.log
본보기:
본보기:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | awk '$7 == "false"' | awk '{ print $1,$2 }' > /tmp/NS+buckets_ADO_disabled.log
admin@ecsnode3:~>
- 총 버킷 수를 버킷 목록과 비교:
예:
admin@ecsnode3:~> cat /tmp/NS+buckets_ADO.log | grep -v ADO | wc -l 6286 admin@ecsnode3:~> admin@ecsnode3:~> wc -l /tmp/NS+buckets_ADO_* 198 /tmp/NS+buckets_ADO_disabled.log 6088 /tmp/NS+buckets_ADO_enabled.log 6286 total admin@ecsnode3:~>
아래 고객이 볼 수 있는 KB는 ECS UI를 통해 관리하기에 버킷 수가 너무 많은 경우 CLI/CURL을 통해 ADO를 수정하는 방법을 보여 줍니다.
ECS: ADO(Access During Outage) 매개변수의 중요성
Affected Products
ECSProducts
ECS Appliance, Elastic Cloud StorageArticle Properties
Article Number: 000196980
Article Type: How To
Last Modified: 22 Apr 2025
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.