In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How do I log persistent logs from a VM vSAN cluster to storage? In fact, it is not difficult to solve this problem. For this reason, Xiaobian summarized this article. Let's take a look at the method of logging persistent logs in VM vSAN clusters to storage.
If ESXi is installed on a USB or SD device and local storage is allocated to a vSAN, there may not be enough local storage 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 network servers.
Configuring vSphere Syslog Collector:
To modify VMware Syslog Collector's configuration after it is installed:
Backup this file:
vCenter Server 5.5 and earlier: %PROGRAMDATA%\VMware\VMware Syslog Collector\vmconfig-sy.xml
vCenter Server 6.0:%PROGRAMDATA%\VMware\vCenterServer\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 properties:
514
TCP,UDP
10
20
1514
Note: Configuration in vCenter Server overrides ESXi host configuration files.
Save and close the file.
Stop the VMware Syslog Collector service.
Delete this file:
vCenter Server 5.5 and earlier: %PROGRAMDATA%\VMware\VMware Syslog Collector\vmconfig-sy.xml
vCenter Server 6.0:%PROGRAMDATA%\VMware\vCenterServer\cfg\vmsyslogcollector\config.xml
Renaming copies of modified files:
vCenter Server 5.5 and earlier: %PROGRAMDATA%\VMware\VMware Syslog Collector\vmconfig-sy.xml
vCenter Server 6.0:%PROGRAMDATA%\VMware\vCenterServer\cfg\vmsyslogcollector\config.xml
Start the VMware Syslog Collector service. If the logs on the Syslog server are no longer updated, 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.
Changing or values has no effect on existing log files.
Syslog Collector maximum recommended number of ESXi hosts is 30.
Configuring ESXi Dump Collector:
Configuring ESXi Dump Collector with VMware vCenter Server Virtual Appliance Command Line
Open the Console of the vCenter Server Virtual Appliance.
Log in with an 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 used to store received core dumps.
Change the listening UDP port number to the desired value.
Change the maximum amount of disk space used to store received core dumps to another value as needed. The value is specified in gigabytes.
To enable verbose logging, modify the NETDUMPER_OPTIONS line to read:
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
Configuring ESXi Dump Collector with ESXCLI
Set up an ESXi system to use ESXi Dump Collector by running esxcli system coredump in a local ESXi Shell or using vCLI.
esxcli system coredump network set --interface-name vmk0 --server-ipv4 10.xx.xx.xx --server-port 6500
Note: You must specify the VMkernel NIC and the IP address and optional port of the server to which you want to send the core dump. If the configured ESXi system runs on a virtual machine that uses vSphere standard switches, you must select a VMkernel port that is 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 if ESXi Dump Collector is configured correctly:
esxcli system coredump network get
The above is how to log persistent logs in VM vSAN cluster to storage. Do you have any gains after reading it? If you want to know more about it, welcome to pay attention to industry information!
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.