- Print
- PDF
Inspect Ncloud Tool Kit (Linux)
- Print
- PDF
Available in Classic
Linux Ncloud Tool Kit (Linux NTK) is a tool kit for inspecting Windows server provided on NAVER Cloud Platform. The provided functions are as follows:
- Linux server status diagnosis functions
- Check account configuration file
- Check required processes and required scripts
- DNS setting status
- Check the network setting information
- Root file system status
- File system mount setting status
- Check grub information
- Check kernel image list
- Repository setting status
- Check essential package
- Measuring storage IOPS
This section only describes content related to NAVER Cloud Platform XEN hypervisor Linux server.
Diagnosis of Linux server status
You can diagnose the status of the Linux server and identify the problematic symptoms and causes of them using Linux NTK.
Account Config File
Check the account configuration file.
Function | Cause | Measures |
---|---|---|
/etc/passwd Check if the file exists
| No /etc/passwd file exists | Copy the default backup file by running the following command# cp -p /etc/passwd- /etc/passwd |
/etc/shadow Check if the file exists
| No /etc/shadow file exists | Copy the default backup file by running the following command# cp -p /etc/shadow- /etc/shadow |
/etc/group Check if the file exists
| No /etc/group file exists | Copy the default backup file by running the following command# cp -p /etc/group- /etc/group |
Mandatory Process
Check the processes that are essential to operating NAVER Cloud Platform Linux server.
Function | Cause | Measures |
---|---|---|
Check whether the Xentools package is installed
| The Xentools package is not properly installed | See Re-installing Xentools (Linux) to re-install Xentools (Linux) |
Check the status of Xentools service registration (enable) upon booting
| The Xentools service is not set to auto-start upon booting |
Ncloud Setup Script
Check the setup scripts that are essential to operating NAVER Cloud Platform Linux server.
When you create the My server image, make sure to check the following table to reset the administrator password.
Function | Cause | Measures |
---|---|---|
Check the ncloud_auto.sh script
| No ncloud_auto.sh file exists |
|
The ncloud_auto.sh file exists, but the permission does not satisfy the condition | Run the following command to configure file permissions# chmod 700 /usr/local/etc/ncloud_auto.sh | |
Check the mandatory content in the ncloud_auto.sh script
| The ncloud_auto.sh script contains invalid content |
|
Check the mandatory script settings that must be executed upon booting
| No ncloud_auto.sh syntax exists in rc.local | Insert the following syntax in /etc/rc.local/usr/local/etc/ncloud_auto.sh > /tmp/. ncloud_out.log 2> /tmp/.ncloud_error.log & |
Check the status of the mandatory service that must be executed upon booting
| ncloud_auto.service is disabled | Run the following command to enable the ncloud_auto service# systemctl enable ncloud_auto.service |
Check the status of the rc.local file and the related services
| Permission of the rc.local file does not meet the condition | Run the following command to configure file permissions# chmod 755 /etc/rc.local |
rc-local.service is disabled | Run the following command to enable the service
# systemctl unmask rc-local.service # systemctl enable rc-local.service |
DNS Config
Check DNS settings and status.
Function | Cause | Measures |
---|---|---|
Check the /etc/resolv.conf file
| No /etc/resolv.conf file exists | 1. Run the following command to create the `resolv.conf` file and update permissions# touch /etc/resolv.conf # chmod 644 /etc/resolv.conf |
Check the connection status with NAVER Cloud Platform internal servers
| Failed to connect to NAVER Cloud's internal server | See Check DNS settings to check the DNS settings |
Check the mandatory content in the /etc/resolv.conf file
| Required settings are missing or erroneous in the /etc/resolv.conf file | |
Check the first DNS information in the /etc/resolv.conf file or systemd-resolve
| The first DNS information is not the IP information provided by NAVER Cloud Platform |
Network Config
Check the network setting information.
Function | Cause | Measures |
---|---|---|
Check network configuration files
| No network configuration file exists | Recreate the network configuration file and restart the network service |
Check eth0 interface DHCP setting
| BOOTPROTO of eth0 is not set to DHCP | Change the BOOTPROTO value to DHCP and restart network service
|
Check additional network interface BOOTPROTO value setting
| BOOTPROTO has no value set in the additional network interface | Assign a value to BOOTPROTO and restart the network service |
Check Network Manager service status (CentOS 7 only)
| If the network manager is enabled in a CentOS 7 environment, then DHCP operation will cause an error | Run the following command to disable the Network Manager service# systemctl disable NetworkManager # systemctl stop NetworkManager # systemctl mask NetworkManager # chkconfig network on # systemctl restart network.service |
Root file system
Check the root file system status.
Function | Cause | Measures |
---|---|---|
Check root file system (/) overall utilization
| The root file system (/) has a high usage rate (90% or higher) | Delete unnecessary files from the root file system (/) |
Check if the /tmp directory exists
| No /tmp directory exists | Run the following command to create the directory# mkdir /tmp |
Check the /tmp directory permission
| Permission of /tmp does not meet the condition | Run the following command to configure permissions# chmod 1777 /tmp |
Check the /tmp directory owner
| Owner of /tmp does not meet the condition | Run the following command to set the directory owner# chown root: /tmp |
Check the owner group of the /tmp directory
| Owner group of /tmp does not meet the condition | Run the following command to set the directory owner group# chown :root /tmp |
fstab File
Check the file system mount information configuration file (/etc/fstab
).
Function | Cause | Measures |
---|---|---|
Check if /etc/fstab exists
| No /etc/fstab file exists | Run the following command to create the file and then see Using fstab to check the fstab file# touch /etc/fstab # chmod 644 /etc/fstab |
Check the /etc/fstab syntax
| The content registered in /etc/fstab is incorrect or of an invalid format | See Using fstab to check the fstab file |
grub Config
Check the configured grub information.
Function | Cause | Measures |
---|---|---|
Check grub files
| The mandatory file for booting has been deleted or damaged | 1. Create and restore a new server after backing up the storage snapshot 2. Run the following command to create the grub file # grub2-mkconfig -o /boot/grub2/grub.cfg |
Kernel Image
Check the kernel image list.
Function | Cause | Measures |
---|---|---|
Check kernel images
| No /boot directory exists | Create and restore a new server after backing up the storage snapshot |
Repo Config
Check the repository configuration file.
Function | Cause | Measures |
---|---|---|
Check repository configuration directory
| No repository configuration directory exists | Run the following command to create a repository configuration directory
# mkdir -p /etc/yum.repos.d/ # mkdir -p /etc/apt/ |
Check repository configuration files
| No repository configuration file exists | Run the following commands to download the repository configuration file
# wget -q http://init.ncloud.com/server/linux/repo/centos7/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo # wget -q http://init.ncloud.com/server/linux/repo/ubuntu18/sources.list -O /etc/apt/sources.list |
Mandatory Package
Check the packages that are essential to operating NAVER Cloud Platform Linux server.
Function | Cause | Measures |
---|---|---|
Check if the wget package exists
| No wget package is installed | Run the following commands to download the package
# yum install wget # apt install wget |
Check if /usr/bin/wget file can run
| No wget execution file exists or there is no permission to run the file | Run the following commands to download the package
# yum install wget # apt install wget |
Check if the dos2unix package exists
| No dos2unix package is installed | Run the following commands to download the package
# yum install dos2unix # apt install dos2unix |
Check if /usr/bin/dos2unix file can run
| No dos2unix execution file exists or there is no permission to run the file | Run the following commands to download the package
# yum install dos2unix # apt install dos2unix |
Check if the rpcbind package exists (except for Ubuntu)
| No rpcbind package is installed | Run the following command to download the package
# yum install rpcbind |
Check if the /usr/sbin/rpcbind file can run (except for Ubuntu)
| No rpcbind execution file exists or there is no permission to execute the file | Run the following command to download the package
# yum install rpcbind |
Check if the chrony package exists (except for Ubuntu)
| No chronyd package is installed | Run the following command to download the package
# yum install chrony |
Check if the /usr/sbin/chronyd file can run (except for Ubuntu)
| No chrony execution file exists or there is no permission to run the file | Run the following command to download the package
# yum install chrony |
Measuring storage IOPS
Linux NTK provides FIO test tools to measure the performance of storage attached to Linux servers.
1. Run Linux NTK
To run Linux NTK, do the following:
- Enter the
cd /usr/local/etc
command.- You are moved to the path where NTK is located.
- Enter the
tar zxvf ntk.tar.gz
command.- The NTK file is unzipped.
- If no ntk.tar.gz file exists or if you wish to replace the existing file with the latest version, enter
wget -P /usr/local/etc http://init.ncloud.com/server/ntk/linux/xen/ntk.tar.gz
to download the file.
- Enter the following commands to run NTK.
# cd /usr/local/etc/ntk # ./ntk
2. Run FIO TEST
To measure IOPS on storage disks, do the following:
After running NTK, click (E) EXECUTE - << Run System Apps >>.
Click (F) FIO TEST - << FOR DISK IO TEST >>.
Click the [YES] button to measure disk IOPS.
Select the disk to measure the IOPS for and click the [OK] button.
NoteIf the server has only 1 disk connected, this step is skipped and the disk is automatically selected.
Select the IOPS test options and click the [OK] button.
- random read: random reading
- random write: random writing
- Disk IOPS is measured.
Check the result upon completing the measurement, and click the [OK] button.
Click the [Yes] button to forward the log file to NAVER Cloud Platform's technical support center. If you will not forward it, click the [No] button to exit.
- If the logs have been successfully forwarded, you can see the log download short-URL with a delivery success message.