In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Persistent logging to storage for hosts in the vSAN cluster.
If you install ESXi on a USB or SD device and allocate local storage to vSAN, there may not be enough local or data storage space for persistent logging.
To avoid loss of log information, configure ESXi Dump Collector and vSphere Syslog Collector to redirect ESXi memory dumps and system logs to a network server.
Configure vSphere Syslog Collector:
To modify the configuration of VMware Syslog Collector after installing it:
Back up the file:
VCenter Server 5.5 and earlier:% PROGRAMDATA%\ VMware\ VMware Syslog Collector\ vmconfig-syslog.xml
VCenterServer 6.0 vCenterServer% PROGRAMDATA%\ VMware\ cfg\ vmsyslogcollector\ config.xml
Open the copied file using a text editor.
Under, change any option to the desired value.
For example, to increase the log file size to 10 MB and reduce the number of files retained to 20, modify the following attributes:
five hundred and fourteen
TCP,UDP
ten
twenty
1514
Note: the configuration in vCenter Server will overwrite the ESXi host profile.
Save and close the file.
Stop the VMware Syslog Collector service.
Delete the file:
VCenter Server 5.5 and earlier:% PROGRAMDATA%\ VMware\ VMware Syslog Collector\ vmconfig-syslog.xml
VCenterServer 6.0 vCenterServer% PROGRAMDATA%\ VMware\ cfg\ vmsyslogcollector\ config.xml
Rename a copy of the modified file:
VCenter Server 5.5 and earlier:% PROGRAMDATA%\ VMware\ VMware Syslog Collector\ vmconfig-syslog.xml
VCenterServer 6.0 vCenterServer% PROGRAMDATA%\ VMware\ cfg\ vmsyslogcollector\ config.xml
Start the VMware Syslog Collector service. If you no longer update the logs on the Syslog server, you may need to restart the syslog service on the ESXi host. To restart the syslog service, see VMware ESXi 5.x host stops sending syslogs to remote server (2003127).
Note:
"if the, or values have changed, any host using Syslog Collector needs to update its configuration accordingly." For more information, see Configuring syslog in ESXi 5.0 and 6.0 (2003322).
Is the maximum file size allowed.
Is the number of files to keep.
Changes or values do not have any impact on existing log files.
The maximum number of ESXi hosts for Syslog Collector is recommended to be 30.
Configure ESXi Dump Collector:
Use the VMware vCenter Server Virtual Appliance command line to configure ESXi Dump Collector
Open the console of vCenter Server Virtual Appliance.
Log in using the administrative account.
Open the / etc/sysconfig/netdumper configuration file using a text editor. The default configuration displayed is similar to:
NETDUMPER_DIR= "/ var/core/netdumps"
NETDUMPER_DIR_MAX_GB=2
NETDUMPER_PORT=6500
Change the directory in which the received core dump is stored.
Change the listening UDP port number to the desired value.
Change the maximum amount of disk space used to store received core dumps to other values as needed. This value is specified in gigabytes.
To enable detailed logging, modify the NETDUMPER_OPTIONS line to:
NETDUMPER_OPTIONS= "- n-v-d ${NETDUMPER_DIR}-o ${NETDUMPER_PORT}"
Save the / etc/sysconfig/netdumper configuration file.
Restart the VMware ESXi Dump Collector service using the following command:
Service vmware-netdumper restart
Configure ESXi Dump Collector using ESXCLI
Set up the ESXi system to use ESXi Dump Collector by running esxcli system coredump in the local ESXi Shell or by using vCLI.
Esxcli system coredump network set-interface-name vmk0-server-ipv4 10.xx.xx.xx-server-port 6500
Note: you must specify the IP address and optional port of the VMkernel Nic and the server to which you want to send the core dump. If the configured ESXi system is running on a virtual machine that uses a vSphere standard switch, you must select a VMkernel port in promiscuous mode. ESXi Network Dump Collector is not supported on vSphere Distributed Switch in ESXi 5.0. For more information, see Network Dump Collector on vSphere ESXi 5.0 is not supported on vDS (2000781).
Enable ESXi Dump Collector:
Esxcli system coredump network set-enable true
Check that ESXi Dump Collector is configured correctly:
Esxcli system coredump network get
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.