Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Remote Kernel Crash Dumps using the SSH protocol
Configuration
In addition to local dump, it is now possible to use the remote dump functionality to send the kernel crash dump to a remote server, using either the SSH or NFS protocols. Local Kernel Crash Dumps Local dumps are configured automatically and will remain in use unless a remote protocol is chosen. Many configuration options exist and are thoroughly documented in the /etc/default/kdump−tools file. Remote Kernel Crash Dumps using the SSH protocol To enable remote dumps using the SSH protocol, the /etc/default/kdump−tools must be modified in the following manner : # −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− # Remote dump f a c i l i t i e s : # SSH − username and hostname o f t h e remote s e r v e r t h a t w i l l r e c e i v e t h e dump # and dmesg f i l e s . 18 # SSH_KEY − F u l l path o f t h e s s h p r i v a t e key t o be used t o l o g i n t o t h e remote # s e r v e r . u s e kdump−c o n f i g p r o p a g a t e t o send t h e p u b l i c key t o t h e # remote s e r v e r # HOSTTAG − S e l e c t i f hostname o f IP a d d r e s s w i l l be used a s a p r e f i x t o t h e # timestamped d i r e c t o r y when s e n d i n g f i l e s t o t h e remote s e r v e r . # ’ ip ’ i s t h e d e f a u l t . SSH=”ubuntu@kdump−n e t c r a s h ” The only mandatory variable to define is SSH. It must contain the username and hostname of the remote server using the format {username}@{remote server}. SSH_KEY may be used to provide an existing private key to be used. Otherwise, the kdump−config propagate command will create a new keypair. The HOSTTAG variable may be used to use the hostname of the system as a prefix to the remote directory to be created instead of the IP address. The following example shows how kdump−config propagate is used to create and propagate a new keypair to the remote server : sudo kdump−c o n f i g p r o p a g a t e Need t o g e n e r a t e a new s s h key . . . The a u t h e n t i c i t y o f h o s t ’ kdump−n e t c r a s h ( 1 9 2 . 1 6 8 . 1 . 7 4 ) ’ can ’ t be e s t a b l i s h e d . ECDSA key f i n g e r p r i n t i s SHA256 : iMp+5Y28qhbd+tevFCWrEXykDd4dI3yN4OVlu3CBBQ4 . Are you s u r e you want t o c o n t i n u e c o n n e c t i n g ( y e s /no ) ? y e s ubuntu@kdump−n e t c r a s h ’ s password : pr o pa g at e d s s h key / r o o t / . s s h /kdump_id_rsa t o s e r v e r ubuntu@kdump−n e t c r a s h The password of the account used on the remote server will be required in order to successfully send the public key to the server The kdump−config show command can be used to confirm that kdump is correctly configured to use the SSH protocol : kdump−c o n f i g show DUMP_MODE: kdump USE_KDUMP: 1 KDUMP_SYSCTL: k e r n e l . panic_on_oops=1 KDUMP_COREDIR: / var / c r a s h c r a s h k e r n e l addr : 0 x2c000000 / var / l i b /kdump/ vmlinuz : s y m b o l i c l i n k t o / boot / vmlinuz −4.4.0−10− g e n e r i c kdump i n i t r d : / var / l i b /kdump/ i n i t r d . img : s y m b o l i c l i n k t o / var / l i b /kdump/ i n i t r d . img −4.4.0−10− g e n e r i c SSH : ubuntu@kdump−n e t c r a s h SSH_KEY: / r o o t / . s s h /kdump_id_rsa HOSTTAG: i p c u r r e n t s t a t e : ready t o kdump Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling