运维工具
系统备份和恢复
Clonezilla
install clonezilla network boot system
clonezilla push setting
clonezilla pxelinux.cfg default config
clonezilla pxe boot password
kickstart
kickstart centos5.6-i386 config
kickstart auto install
kickstart example
Cobbler
cobbler backups-restore
aomei 傲梅
傲梅集中备份
傲梅备份 分类
系统监控工具
collectd
collectd 收集系统性能
NMON monitor
Nmon monitor system
njmon script initd code
nmon 2 data to influx db
Zabbix
zabbix 3.2 install on centos 6
zabbix firewall
zabbix support windows
Supervisor
supervisor shell script
supervisor config example
boot supervisrd with systemd on centos7
webhook and github to do file sync with supervisor
日志管理系统
Grafana
grafana install on centos 6
grafana install plugin
grafana influx version
Filebeat
filebeat yum install
Kibana
kibana yum install
Logstash
logstash install on centos
Elasticsearch
yum install elasticsearch 6.8
elasticsearch install on Centos 6.7
ELK init env config
Elasticsearch 错误集锦
Rsyslog
centos 6 rsyslog 日志实时同步
Rsyslog mysql log to master analyzer
Deploy
Jumpserver
jumpserver 0.3.2 install on centos 6
jumpserver 0.3.2 docker install on centos 7
jumpserver 0.5 install on centos 7
Opsmanage
opsmanage install centos7
Jenkins
jenkins install on centos 6
install plugin in jenkins…
jenkins set time execution
tomcat jenkins ansible
jenkins ansible ad-hoc command
jenkins ansible playbook project
jenkins publish over_ssh
Paramike
PSSH
Centos7部署工具pssh
Ansible
how to install ansible with yum
bit rpm install ansible
source to install ansible
ansible init system centos 6
ansible using method
ansible install httpd servers
copy code with ansible-playbook
ansible ping host actived
ansible add username
ansible config parameter
ansible config write format
ansible api study
ansible hosts config ssh
ansible get nmon data
ansible setup filter information
yum repo with ansible-playbook
ansible gitlab ci runner
ansible get data list
ansible get text content
ansible get linux release debug infor
ansible support windows pywinrm
Saltshaker
saltshaker use docker
how to install saltstack
saltshaker manual install
salt install and config
salt init system
deploy saltshaker on centos7
salt file config desc
salt cmdb
saltshaker dj mq mysql build
salt data to mysql
Rsync
rsync + inotify 数据实时同步
代码仓库
Gitlab
yum install gitlab
gitlab-ce and runner
gitlib api example
gitlab config
gitlab ce and ee
Gogs
Gitea
虚拟化系统
Vmware
centos 6 install vmware 14
Vagrant
从零开始创建基础 Box
打包我的 BOX
Vagrantfile Config
Vagrant简易教程
给 Vagrant 从 VirtualBox换用 VMware 或 虚拟机
优化 vagrantFile config
Vagrant 主机定义
vagrant SSH
Vagrant 搭建 说明
WSL
pycharm 安装支持 WSL
windows-WSL 安装
Docker
how to install docker on centos 6
docker config source daoclound
how to use docker by step
how to creat docker subnet
gogs deploy on docker
jenkins use docker to deploy
mysql use docker to deploy
docker-example-1
docker-example-2
mac-osx-toolbox-install-docker
Data DB
Influx DB
InfluxDB install on centos
Mysql DB
centos 6 install mysql 5.5
mysql 5.7 install centos 6
install percona mysql 5.6 with yum
centos 7 install mysql config
mysql data rsync from master/slave
About me
本文档使用 MrDoc 发布
-
+
首页
clonezilla push setting
# clonezilla push setting rblpush setting # drblpush -i --language 2 ```shell 提示! 當有yes/no選項的時候,預設的值是大寫的字母。例如 (y/N), 預設值是 "N", 當你按 "Enter"的時候,程式使用的值就是 "N"。如果你不確認選用那個好的時候,直接 按"Enter"鍵是一個保險的方式。 正在搜尋DRBL伺服器中已經安裝的相關程式...這個可能需要幾分鐘... 完成尋找DRBL伺服器所需的相關程式. 這是一個交談模式,在設定DRBL環境的過程中,您必須提供相關資料 # dnsdomainname: Unknown host 請輸入網域名稱(DNS domain),例如drbl.sf.net: # [drbl.org] hitachigst.global 您設定的網域名稱(DOMAIN)是 hitachigst.global 請輸入NIS/YP網域名稱: # [penguinzilla] 您設定的網域名稱(DOMAIN)是 penguinzilla 請輸入用戶端電腦名稱的前置字元: 這個前置字元是用來搭配流水編號自動產生用戶端電腦名稱,如果你有部份或是全部機器不想使用這個自動產生的電腦名稱,想要自己指定用戶端電腦名稱,現在可以先按Ctrl-C中斷此程式,編輯/etc/drbl/client-ip-hostname後,再執行此程式。 # [DRBL-] 您設定的用戶端電腦名稱的前置字元是 DRBL- eth1: IP address 10.81.235.191, netmask 255.255.254.0 eth2: IP address 172.31.42.210, netmask 255.255.255.0 在你的系統上找到已經設定好的乙太網路埠有: eth1 eth2 沒有找到這台伺服器的公開IP位址, 哪個網路連接埠是這台伺服器用來連接到外部網際網路,而不是給DRBL環境使用的? 這台伺服器有的乙太網路埠: eth1 (10.81.235.191), eth2 (172.31.42.210), # [eth1] eth1 你所選擇連接到網際網路的乙太網路埠是: eth1 DRBL環境使用乙太網路埠是: eth2 現在我們可以收集用戶端電腦網卡卡號(MAC Address)! 透過這個收集的步驟可以幫助您的DRBL環境讓用戶端電腦每次開機都拿到相同的IP, 如果您沒有用戶端電腦網卡卡號的紀錄檔時,你現在就應該做! 如果您已經有用戶端電腦網卡卡號時,您也可以把那些卡號依序,分組後,一行一行填在檔案中(檔案的數目就是您DRBL分流網路卡的張數),那麼,這個步驟您就可以略過. 這個步驟就是幫您做偵測卡號,然後存到檔案中,省去您抄錄卡號的時間與可能造成的打字錯誤.! 用戶端電腦的網卡卡號(MAC Adrees)將會依照您用戶端電腦開機的順序依序被紀錄下來. 所收集到的網路卡卡號將會依照用戶端電腦連到DRBL伺服器的網路卡來給檔名,存下來的檔名如macadr-eth1.txt, macadr-eth2.txt... 你可以在/etc/drbl/目錄下找到這些檔案。 請先將用戶端的電腦設定為由網路開機(etherboot或是PXE),並依照您想要排列的順序開機! 你是否要收集用戶端的網卡卡號? # [y/N] n 繼續... Hostmin: 172.31.42.1 你是否要讓DRBL伺服器的DHCP服務每次都發相同的IP給用戶端電腦(要使用此選項,您必須已經收集好用戶端電腦的網卡卡號(MAC Adrees)(如前述的步驟)並且存在檔案中),這是針對連接到DRBL伺服器網路連接埠 eth2 ? # [y/N] y 請輸入紀錄網卡卡號(MAC Adrees)的檔名,這是針對連接到DRBL伺服器網路連接埠 eth2. [macadr-eth2.txt] /etc/drbl/macadr-eth2.txt 這個網域的用戶端電腦中,起始的IP 4組數字中,最後一組數字的起始值是(也就是IP a.b.c.d的d的起始值)? 這是針對連接到DRBL伺服器網路連接埠 eth2. # [1] 211 你設定的檔名是 "macadr-eth2.txt". 這個檔中用戶端的電腦數目是 5. 我們將設定這些用戶端電腦的IP為,這是針對連接到DRBL伺服器網路連接埠 eth2 依據設定的網卡卡號紀錄檔,這些用戶端的IP,連接到網路埠 eth2 為: 172.31.42.211 - 172.31.42.215 # 接受 ? [Y/n] y 繼續... 你的DRBL環境配置: NIC NIC IP Clients +-----------------------------+ | DRBL SERVER | | | | +-- [eth1] 10.81.235.191 +- to WAN | | | +-- [eth2] 172.31.42.210 +- to clients group 2 [ 5 clients, their IP | | from 172.31.42.211 - 172.31.42.215] +-----------------------------+ Total clients: 5 按"Enter"鍵來繼續... 本系統中,有3種模式可以提供無碟的Linux服務給用戶端使用: [0] 完全DRBL模式(Full DRBL mode),每個用戶端都有自己的/etc與/var (基於NFS). [1] 單一系統印象檔模式(DRBL SSI, single system image) , 每個用戶端都使用tmpfs(以記憶體來當虛擬磁碟)的/etc與/var。此模式中,DRBL伺服器的負載與所需要的硬碟空間會少一些。但是請注意!在這個模式中,(a)用戶端電腦的記憶體建議至少要256MB以上,(b)用戶端電腦的系統設定檔並不會回存到伺服器中。所有開機後的系統設定只會使用一次然後關機後就消失。此外,如果你有修改過任何範本機器的設定檔(也就是位於/tftpboot/nodes下的設定檔),你要再執行drbl-gen-ssi-files來產生新的tarball範本檔於/tftpboot /node_root/drbl_ssi/中,(c) 如果你要針對某些用戶端設定一些特別的檔案,可以參考/tftpboot/node_root/drbl_ssi/clients/00_README。 [2] 不要提供無碟Linux服務給用戶端使用. 你要選用哪一個模式? # [0] 0 使用完全DRBL模式. 本系統中,Clonezilla再生龍有4個模式可以選用: [0] 完全模式(Full clonezilla mode),每個用戶端都有自己的/etc與/var (基於NFS). [1] 再生龍盒模式(Clonezilla box mode), 每個用戶端都使用tmpfs(以記憶體來當虛擬磁碟)的/etc與/var。此模式中,Clonezilla伺服器的負載與所需要的硬碟空間會少一些。但是請注意!這個模式中,用戶端電腦的系統設定檔並不會回存到伺服器中。所有開機後的系統設定只會使用一次然後關機後就消失! [2] 我不要使用再生龍. [3] 使用Clonezilla live當作用戶端做clonezilla工作時候的作業系統(測試中). 你要選用哪一個模式? # [0] 0 你選用完全模式(Full clonezilla mode)! 用戶端執行Clonezilla的工作時,選用的CPU架構是: i386 使用再生龍的時候,你要把印象檔存在此台機器的那個目錄中(請用絕對路徑,並且不要指定在/mnt/, /media/ 或是/tmp/下)? # [/data/image] Directory for clonezilla saved images: /data/image 如果你的用戶端的電腦有硬碟,其中有置換分割區(swap partition)或是可以寫的檔案系統,你是否要使用該置換分割區或是在上面產生一個置換檔來做虛擬記憶體, 以便用戶端的電腦可以使用需要更多記憶體的程式? (這個步驟不會毀損硬碟中原來的資料) # [Y/n] n 用戶端開機後要進入何種模式? "1" 為圖形模式(預設), "2" 為文字模式. # [1] 1 用戶端開機後為圖形模式. 用戶端開機後圖形模式您可以選擇登入的種類: (0)一般登入, (1)自動登入, (2)限時登入 # [0] 用戶端電腦開機後,使用者必須輸入帳號與密碼才能使用 # [y/N] 繼續... 基於安全考量, 你是否要為用戶端電腦設定開機密碼? # [y/N] 繼續... 你是否要在用戶端電腦開機的時候讓使用者可以選擇所要的系統? # [Y/n] y 用戶端電腦開機,出現提示符號時要等待多少個0.1秒? # [70] 100 繼續... 你是否要在用戶端電腦開機的時候使用圖形背景的選單? 注意!如果你的用戶端使用圖形背景無法正常開機,你可以使用"switch-pxe-bg-mode -m text"來切換成文字模式的背景. # [Y/n] Use graphic PXE Linux menu for the client. 利用別名介面的方式,每台用戶端電腦可以擁有2個IP, 其中一個是私有IP,用來連接到DRBL伺服器,另一個公開IP是用來直接透過交換器連接到外部網路使用! 你是否要設定每台用戶端電腦的公開IP? # [y/N] n 你是否要讓DRBL用戶端可以選擇使用終端機(Terminal)模式? 也就是說,你要讓用戶端電腦執行DRBL伺服器的遠端畫面(remote display) (這會大部分使用伺服器的資源), 請在此回答"Y". 請注意! 0. 若開啟此模式,用戶端的環境是非常有限的,例如用戶端無法直接使用USB,CD,聲音,印表機等. 1. 如果你的DRBL伺服器不夠強,你最好在此回答"no". 2. 如果你在此回答"yes",我們會開啟XDMCP讓用戶端來連線, 開啟XDMCP永遠不會是一個安全的作法,一個可行的方式是另外設定/etc/hosts.allow以及/etc/hosts.deny來讓您的用戶端機器連接,但是還不是最安全的. 在防火牆中設定網路埠177的規則是一個最安全的做法. 你可以讀XDMCP的相關手冊來了解相關細節. 請您自己根據您的需要來設定這些規則. 3. 如果你這裡回答"yes",待會你可能必須要重新啟動X視窗的桌面環境管理程式(gdm/kdm),在關閉所有的應用程式之前請記得先儲存您的資料! 你是否要開放終端機(Terminal)模式給用戶端選用? # [y/N] n 繼續... 你是否要讓DRBL伺服器也能提供NAT服務(也就是一般俗稱的IP分享器功能)? 如果不要的話,DRBL用戶端電腦將無法連到網際網路. # [Y/n] n 這台DRB伺服器未提供NAT服務(也就是一般俗稱的IP分享器功能),DRBL用戶端電腦將無法連到網際網路. —————————————————– 你是否要保留以前DRBL用戶端電腦的設定? # [Y/n] n 如果原來DRBL用戶端電腦的設定存在的話,將會被清除. dnsdomainname: Unknown host DRBL伺服器目前使用的核心支援 NFS over TCP! 【注意】如果你改變DRBL伺服器目前使用的核心版本,並且不確認那個核心是否支援NFS over UDP 或是 TCP,你最好重新執行"drblpush -i"以免用戶端電腦開不了機! 按"Enter"鍵來繼續... The calculated NETWORK for eth2 is 172.31.42.0. 現在準備部署這些檔案到系統中! 你要繼續執行嗎? 警告!如果你繼續執行,你的防火牆規則將會被改掉! 原來的規則將會被備份成iptables.drblsave於系統的設定目錄中(/etc/sysconfig或是/etc/default). # [Y/n] 開始進行... Some files are found in /usr/share/drbl//prerun/drbl/. Run them first... Checking the necessary disk space... done! Copying the config file to /etc/drbl... done! Backup the original /etc/hosts as /etc/hosts.drblsave... done! Generate the /etc/hosts... done! Cleaning the stale files of the diskless nodes if they exist... done! The version number for your GNU/Linux: CO6.5 Completely cleaning old common root files if they exist... done ! Completely cleaning old nodes if they exist... done ! Creating common root files... This might take several minutes...........Copying normal dir /lib64 to /tftpboot/node_root/... done! Update the kernel for client if necessary... The DRBL client uses x86_64 kernel with version 2.6.32-642.1.1.el6.centos.plus.x86_64... Trying to update the /tftpboot/node_root/lib/modules/2.6.32-642.1.1.el6.centos.plus.x86_64 from server's /lib/modules/... This might take several minutes... Found kernel modules in /lib/modules/2.6.32-642.1.1.el6.centos.plus.x86_64 and its arch "x86_64" matches client's "x86_64"... Syncing /lib/modules/2.6.32-642.1.1.el6.centos.plus.x86_64 to client's common root... Syncing /boot/*-2.6.32-642.1.1.el6.centos.plus.x86_64* to client's common root... Generating the /tftpboot/node_root/lib/modules/2.6.32-642.1.1.el6.centos.plus.x86_64/modules.dep Syncing /lib/firmware/ to client's common root... Copying the directory /etc/ to clients common root /tftpboot/node_root... Cleaning the ssh key file ssh_host_dsa_key copied from server... done! Cleaning the ssh key file ssh_host_dsa_key.pub copied from server... done! Cleaning the ssh key file ssh_host_key copied from server... done! Cleaning the ssh key file ssh_host_key.pub copied from server... done! Cleaning the ssh key file ssh_host_rsa_key copied from server... done! Cleaning the ssh key file ssh_host_rsa_key.pub copied from server... done! Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.deny copied from server... done! Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.allow copied from server... done! The startup services for DRBL client are: firstboot netfs rpcbind crond nfslock sshd ypbind haldaemon messagebus acpid cups cpuspeed abrtd drblthincli arm-wol Using udev for clients... Deleting the accounts (except root) in the clients common root template... done! Enabling the NIS client in the common root template... done! Creating some necessary files in the clients common root template...... done! Creating DRBL client: DRBL-172-31-42-211 172.31.42.211... Display manager:"gdm"... Setting node 172.31.42.211 as normal_login... done! Creating DRBL client: DRBL-172-31-42-212 172.31.42.212... Display manager:"gdm"... Setting node 172.31.42.212 as normal_login... done! Creating DRBL client: DRBL-172-31-42-213 172.31.42.213... Display manager:"gdm"... Setting node 172.31.42.213 as normal_login... done! Creating DRBL client: DRBL-172-31-42-214 172.31.42.214... Display manager:"gdm"... Setting node 172.31.42.214 as normal_login... done! Creating DRBL client: DRBL-172-31-42-215 172.31.42.215... Display manager:"gdm"... Setting node 172.31.42.215 as normal_login... done! Modifying option diskless_client_os in drbl-ocs.conf... Disable the password in pxelinux simple menu for all clients... Disabling PXE password in config file /tftpboot/nbi_img/pxelinux.cfg/default... done! add necessary services to this DRBL server: DHCP, TFTP, NFS, NIS... Generating the NFS exports for DRBL clients... Backup the original /etc/exports as /etc/exports.drblsave Exporting to clients by IP address line-by-line... Full DRBL or Full Clonezilla mode, exporting client's directories etc, var, root... The /etc/exports setting is ok now! 這台DRB伺服器未提供NAT服務(也就是一般俗稱的IP分享器功能),DRBL用戶端電腦將無法連到網際網路. Now stop the NAT service... iptables: Setting chains to policy ACCEPT: nat filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ] Now set the YP securenets... Backup the original /var/yp/securenets as /var/yp/securenets.drblsave The /var/yp/securenets setting is done! Update YP... Now add the service: dhcpd xinetd rpcbind iptables ypserv ypbind yppasswdd ypxfrd nfs nfslock Force to add dhcpd service in this RH-like DRBL server... Force to add xinetd service in this RH-like DRBL server... Force to add rpcbind service in this RH-like DRBL server... Force to add iptables service in this RH-like DRBL server... Force to add ypserv service in this RH-like DRBL server... Force to add ypbind service in this RH-like DRBL server... Force to add yppasswdd service in this RH-like DRBL server... Force to add ypxfrd service in this RH-like DRBL server... Force to add nfs service in this RH-like DRBL server... Force to add nfslock service in this RH-like DRBL server... Now start the service: dhcpd xinetd rpcbind iptables ypserv ypbind yppasswdd ypxfrd nfs nfslock Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ] Stopping xinetd: [ OK ] Starting xinetd: [ OK ] Stopping rpcbind: [ OK ] Starting rpcbind: [ OK ] iptables: Applying firewall rules: [ OK ] Stopping YP server services: [ OK ] Starting YP server services: [ OK ] Shutting down NIS service: [ OK ] Starting NIS service: [ OK ] Binding NIS service: . [ OK ] Stopping YP passwd service: [ OK ] Starting YP passwd service: [ OK ] Stopping YP map server: [ OK ] Starting YP map server: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS mountd: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Shutting down RPC idmapd: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS mountd: [ OK ] Starting NFS daemon: [ OK ] Starting RPC idmapd: [ OK ] Stopping NFS locking: [ OK ] Stopping NFS statd: [ OK ] Starting NFS statd: [ OK ] ip_forward is already on. DRBL伺服器中的圖形顯示管理程式(display manager)是 "gdm" DRBL伺服器中的GDM遠端連線已經關閉! 關閉用戶端的終端機模式! 完成 ! ``` ```bash Clean all the previous saved config file if they exist...done! Turn on the boot prompt for PXE client...done! Turn off the thin client option in PXE boot menu...done! Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client use graphical PXE boot menu... done! Full DRBL mode. Remove clientdir opt for label drbl in pxelinux config... Setting drbl_mode="full_drbl_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done! Full clonezilla mode. Remove clientdir opt for label clonezilla in pxelinux config... Setting clonezilla_mode="full_clonezilla_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done! 你必須要再執行"dcs" -> clonezilla-start來啟動再生龍clonezilla服務,用戶端開機的時候也才會出現再生龍的選單 No hidden label Clonezilla-live was found! Skip it. Some files are found in /usr/share/drbl//postrun/drbl/. Run them now... *****************************************************. Enjoy DRBL!!! http://drbl.org; http://drbl.nchc.org.tw NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw *****************************************************. 如果你喜歡,你可以現在把這台DRBL伺服器重新開機,確認所有的程式與設定是正確的。(這個步驟不一定要做,只是一個選項供您確認)。 *****************************************************. DRBL伺服器已經就緒! 現在請設定用戶端電腦由PXE開機(參考4步安裝法的第四步驟)。打開用戶端電腦,然後開始享用DRBL吧! PS. drblpush存了一個設定檔在/etc/drbl/drblpush.conf。因此下次如果你要使用同樣的設定檔方式來重新執行一次drblpush,可以這樣執行: drblpush -c /etc/drbl /drblpush.conf ```
Bobby
2021年12月20日 00:37
分享文档
收藏文档
阅读
189
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码