Thứ Hai, 25 tháng 9, 2023

Xoá log trong vcenter

 https://www.ubackup.com/enterprise-backup/vcenter-check-disk-space.html
 enable ssh
enable shell
shell.set --enabled true
Command> shell
root@VCSA[~]# df -h

/dev/mapper/archive_vg-archive

df -h |awk '0+$5 >= 78 {print}'

df -h; lsblk; lsscsi

https://blogs.vmware.com/customer-experience-and-success/2023/04/how-to-remove-old-archive-files-in-vmware-vcenter-server-appliance.html

/dev/mapper/archive_vg-archive                49G  8.0G   39G  18% /storage/archive

cd /storage/archive/vpostgres

find * -mtime +40

find *.* -mtime +40 | xargs rm

/dev/mapper/log_vg-log                       9.8G  4.9G  4.4G  53% /storage/log

cd /storage/log

du -sh /filestore/

ls -alh

du -a /storage | sort -n -r | head -n 10

rm messages-2017***                lenh xoa file

rm catalina.2022*.log
ls -alh




Không có nhận xét nào:

Đăng nhận xét