Linux 运维自动化之Cobbler的管理与使用详解(3)

 

 

首页Linux教程

背景:

阅读新闻

Linux 运维自动化之Cobbler的管理与使用详解

[日期:2013-12-07]   来源:Linux社区  作者:freeloda   [字体:]  

3.具体的安装过程
(1).安装前检查
[root@node2 ~]# cobbler check
No configuration problems found. All systems go.
[root@node2 ~]# cobbler sync
task started: 2013-11-11_170434_sync
task started (id=Sync, time=Mon Nov 11 17:04:34 2013)
running pre-sync triggers
cleaning trees
removing: /var/www/cobbler/images/CentOS-5.5-x86_64
removing: /var/www/cobbler/images/CentOS-5.5-xen-x86_64
removing: /var/lib/tftpboot/pxelinux.cfg/default
removing: /var/lib/tftpboot/grub/grub-x86_64.efi
removing: /var/lib/tftpboot/grub/images
removing: /var/lib/tftpboot/grub/efidefault
removing: /var/lib/tftpboot/grub/grub-x86.efi
removing: /var/lib/tftpboot/images/CentOS-5.5-x86_64
removing: /var/lib/tftpboot/images/CentOS-5.5-xen-x86_64
removing: /var/lib/tftpboot/s390x/profile_list
copying bootloaders
trying hardlink /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi
trying hardlink /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi
copying distros to tftpboot
copying files for distro: CentOS-5.5-x86_64
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/pxeboot/vmlinuz -> /var/lib/tftpboot/images/CentOS-5.5-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/pxeboot/initrd.img -> /var/lib/tftpboot/images/CentOS-5.5-x86_64/initrd.img
copying files for distro: CentOS-5.5-xen-x86_64
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/xen/vmlinuz -> /var/lib/tftpboot/images/CentOS-5.5-xen-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/xen/initrd.img -> /var/lib/tftpboot/images/CentOS-5.5-xen-x86_64/initrd.img
copying images
generating PXE configuration files
generating PXE menu structure
copying files for distro: CentOS-5.5-x86_64
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/pxeboot/vmlinuz -> /var/www/cobbler/images/CentOS-5.5-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/pxeboot/initrd.img -> /var/www/cobbler/images/CentOS-5.5-x86_64/initrd.img
Writing template files for CentOS-5.5-x86_64
copying files for distro: CentOS-5.5-xen-x86_64
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/xen/vmlinuz -> /var/www/cobbler/images/CentOS-5.5-xen-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/CentOS-5.5-x86_64/images/xen/initrd.img -> /var/www/cobbler/images/CentOS-5.5-xen-x86_64/initrd.img
Writing template files for CentOS-5.5-xen-x86_64
rendering DHCP files
generating /etc/dhcp/dhcpd.conf
rendering TFTPD files
generating /etc/xinetd.d/tftp
cleaning link caches
running post-sync triggers
running Python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running: dhcpd -t -q
received on stdout:
received on stderr:
running: service dhcpd restart
received on stdout: 关闭 dhcpd:[确定]
正在启动 dhcpd:[确定]
received on stderr:
running shell triggers from /var/lib/cobbler/triggers/sync/post/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
*** TASK COMPLETE ***

(2).查看一下启动的服务端口
[root@node2 mnt]# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address        Foreign Address      State    PID/Program name 
tcp    0  0 0.0.0.0:22        0.0.0.0:*          LISTEN  1031/sshd   
tcp    0  0 127.0.0.1:25        0.0.0.0:*          LISTEN  1108/master   
tcp    0  0 127.0.0.1:6010      0.0.0.0:*          LISTEN  1143/sshd   
tcp    0  0 127.0.0.1:25151      0.0.0.0:*          LISTEN  2015/python   
tcp    0  0 :::80            :::*            LISTEN  2030/httpd   
tcp    0  0 :::22            :::*            LISTEN  1031/sshd   
tcp    0  0 ::1:25          :::*            LISTEN  1108/master   
tcp    0  0 ::1:6010          :::*            LISTEN  1143/sshd   
tcp    0  0 :::873          :::*            LISTEN  1990/xinetd   
udp    0  0 0.0.0.0:67        0.0.0.0:*                1974/dhcpd   
udp    0  0 0.0.0.0:69        0.0.0.0:*                1990/xinetd   
udp    0  0 0.0.0.0:69        0.0.0.0:*                1905/in.tftpd

(3).启动客户端(设置为网络启动)

Linux 运维自动化之Cobbler的管理与使用详解

Linux 运维自动化之Cobbler的管理与使用详解

Linux 运维自动化之Cobbler的管理与使用详解

 

Linux 网络流量实时监控工具之ntopng详解

Linux 运维自动化之Cobbler实战案例

相关资讯       Cobbler 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/18951.html