VMware ESXi:主机 上的系统日志存储在非持久存储中

[root@:~] esxcli storage filesystem list
Mount Point                                        Volume Name                                 UUID                                 Mounted  Type              Size            Free
-------------------------------------------------  ------------------------------------------  -----------------------------------  -------  ------  --------------  --------------
/vmfs/volumes/623fe241-904345b8-93ab-5c6f6923827c  PowerStore_VMware_20TB-001                  623fe241-904345b8-93ab-5c6f6923827c     true  VMFS-6  21989964120064  11065871040512
/vmfs/volumes/623fe263-97c20f86-f497-5c6f6923803c  PowerStore_VMware_20TB-002                  623fe263-97c20f86-f497-5c6f6923803c     true  VMFS-6  21989964120064  13059392274432
/vmfs/volumes/62555be1-260533f4-810f-5c6f692379b2  LOCKER-62555be1-260533f4-810f-5c6f692379b2  62555be1-260533f4-810f-5c6f692379b2     true  VMFS-L     23085449216     21343764480
/vmfs/volumes/adaa7715-dd471db4-45b2-72af7523c8a8  BOOTBANK1                                   adaa7715-dd471db4-45b2-72af7523c8a8     true  vfat        4293591040      4076273664
/vmfs/volumes/159abc6d-00490b8f-69be-deff266cfc0b  BOOTBANK2                                   159abc6d-00490b8f-69be-deff266cfc0b     true  vfat        4293591040      4067360768

mkdir /vmfs/volumes/PowerStore_VMware_20TB-002/syslog/100.1.2.55/


esxcli system syslog config set --logdir=/vmfs/volumes/PowerStore_VMware_20TB-002/syslog/100.1.2.55/ --logdir-unique=true --default-rotate=8 --default-size=10240


 esxcli system syslog config get
   Allow Vsan Backing: false
   Check Certificate Revocation List: false
   Dropped Log File Rotation Size: 100
   Dropped Log File Rotations: 10
   Enforce SSLCertificates: true
   Local Log Output: /vmfs/volumes/PowerStore_VMware_20TB-002/syslog/100.1.2.55
   Local Log Output Is Configured: true
   Local Log Output Is Persistent: true
   Local Logging Default Rotation Size: 10240
   Local Logging Default Rotations: 8
   Log Level: error
   Log To Unique Subdirectory: true
   Message Queue Drop Mark: 90
   Remote Host: <none>
   Remote Host Connect Retry Delay: 180
   Remote Host Maximum Message Length: 1024
   Strict X509Compliance: false
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注