Got it

How to collect the controller hosts logs

Latest reply: Dec 25, 2021 00:42:14 802 4 2 0 0

Hello, everyone! Today I will share with you how to collect the controller hosts logs.

1. Log in to the first controller host backend.


2. Import environment variables to the host.

source set_env  (select 1,default password: **)


3. Collect the first controller logs.

cd /var/log/fusionsphere/component

tar -zcvf /home/fsp/neutron-log01.tar.gz neutron neutron-dhcp-agent neutron-server

chown fsp:fsp /home/fsp/neutron-log01.tar.gz

cd /var/log/fusionsphere/operate

tar -zcvf /home/fsp/neutron-api01.tar.gz neutron-api

chown fsp:fsp /home/fsp/neutron-api01.tar.gz


4. Run cps host-list, get the other controller hosts to manage IP, for example: 172.28.0.3,172.28.0.4.

cps host-list


5. Login the other controller hosts from the firt contronller host, and collect the second controller host logs.

su fsp

ssh fsp@controllerIp(for example:ssh fsp@172.28.0.3)

su - root

cd /var/log/fusionsphere/component

tar -zcvf /home/fsp/neutron-log02.tar.gz neutron neutron-dhcp-agent neutron-server

chown fsp:fsp /home/fsp/neutron-log02.tar.gz

cd /var/log/fusionsphere/operate

tar -zcvf /home/fsp/neutron-api02.tar.gz neutron-api

chown fsp:fsp /home/fsp/neutron-api02.tar.gz

su fsp

scp /home/fsp/neutron* fsp@172.28.0.2:/home/fsp  (default password:Huawei@CLOUD8!)


6. Login the third controller host from the current contronller host and collect the third controller host logs.

su fsp

ssh fsp@controllerIp(for example:ssh fsp@172.28.0.4)

su - root

cd /var/log/fusionsphere/component

tar -zcvf /home/fsp/neutron-log03.tar.gz neutron neutron-dhcp-agent neutron-server

chown fsp:fsp /home/fsp/neutron-log03.tar.gz

cd /var/log/fusionsphere/operate

tar -zcvf /home/fsp/neutron-api03.tar.gz neutron-api

chown fsp:fsp /home/fsp/neutron-api03.tar.gz

su fsp

scp /home/fsp/neutron* fsp@172.28.0.2:/home/fsp  (default password:Huawei@CLOUD8!)

This is what I want to share with you today, thank you!

  • x
  • convention:

little_fish
Admin Created Apr 15, 2020 00:42:19

Collect the controller hosts logs.
View more
  • x
  • convention:

piaopiaoran
Created Apr 30, 2020 08:34:30

Thanks for your share!
View more
  • x
  • convention:

futurework
Created Dec 24, 2021 21:03:40

good
View more
  • x
  • convention:

lisali
Created Dec 25, 2021 00:42:14

Thanks for your sharing!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.