I cannot configure and start the drbl server.

已查看 1,773 次
跳至第一个未读帖子

iamd...@gmail.com

未读,
2008年3月21日 05:04:422008/3/21
收件人 再生龍clonezilla
Dear Everyone,

My machines cannot connect to the Internet.
So I download the rpms manually, and install it.
However when I configure the server with command "drblpush -i", there
are many errors.
Here is some of the error message:

1. [root] You should run this program /opt/drbl/sbin/ocs-related-srv
in DRBL server, NOT in DRBL client or other machine.
Program terminated!
2. Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory.
3. Turn on the boot prompt for PXE client...Can't open /tftpboot/
nbi_img/pxelinux.cfg/default: No such file or directory.

About the error 1, I am sure that I am runing it in the server not
client.
And about the others, I don't know howto deal with them.

by the way, my server machine's OS is RHEL4.
And I modify the /etc/redhat-release to redhat desktop 9.

The following is the whole log:

[root@tivm59 setup]# ./drblpush -i
******************************************************
Hint! When a yes/no option is available, the default value is
uppercase, Ex. (y/N), the default is "N", when you press "Enter", it
will use "N". If you are not sure which one to choose, you can just
press "Enter" key.
******************************************************
Searching the installed packages for DRBL server...This might take
several minutes...
Finished searching the installed packages for DRBL server.
******************************************************
------------------------------------------------------
The interactive mode let you supply the information of your DRBL
environment.
------------------------------------------------------
------------------------------------------------------
Please enter DNS domain (such as drbl.sf.net):
[drbl.sf.net] 9.181.2.102
Set DOMAIN as 9.181.2.102
------------------------------------------------------
Please enter NIS/YP domain name:
[penguinzilla]
Set DOMAIN as penguinzilla
------------------------------------------------------
Please enter the client hostname prefix:
This prefix is used to automatically create hostname for clients. If
you want to overwrite some or all automatically created hostnames,
press Ctrl-C to quit this program now, edit /opt/drbl/conf/client-ip-
hostname, then run this program again.
[tivm59]
Set the client hostname prefix as tivm59
------------------------------------------------------
Found eth0 IP (9.125.74.174) in your system, but it's not private IP,
not well configured, or not up now!!!
We will skip eth0!
Found private IP "192.168.0.1" in eth0:1 on your system!
Configured ethernet card(s) found in your system: eth0:1
------------------------------------------------------
The ethernet port for Internet access is: eth0
The ethernet port(s) for DRBL environment: eth0:1
******************************************************
******************************************************
Now we can collect the MAC address of clients!
If you want to let the DHCP service in DRBL server offer same IP
address to client every time when client boot, and you never did this
procedure, you should do it now!
If you already have those MAC addresses of clients, you can put them
into different group files (These files number is the same number of
networks cards for DRBL service). In this case, you can skip this
step.
This step helps you to record the MAC addresses of clients, then
divide them into different groups. It will save your time and reduce
the typos.
The MAC addresses will be recorded turn by turn according to the boot
of clients,
and they will be put into different files according to the network
card in server, file name will be like macadr-eth1.txt, macadr-
eth2.txt... You can find them in directory /etc/drbl.
Please boot the clients by order, make sure they boot from etherboot
or PXE!
Do you want to collect them ?
[y/N] y
******************************************************
OK! Let's do it!
request_eth_port:eth0:1
Stopping dhcpd ...
关闭 dhcpd: [ 确定 ]
Stopping xinetd ...
停止 xinetd: [ 确定 ]
*****************************************************.
Start detecting MAC address....
Enter 1 or press Enter to view the collecting status.
Enter 2 or q to finish collecting and quit.
1
=======================================
Total: 0
=======================================
Enter 1 or press Enter to view the collecting status.
Enter 2 or q to finish collecting and quit.
1
=======================================
00:14:85:9F:1D:B0
Total: 1
=======================================
Enter 1 or press Enter to view the collecting status.
Enter 2 or q to finish collecting and quit.
1
=======================================
00:14:85:9F:1D:B0
Total: 1
=======================================
Enter 1 or press Enter to view the collecting status.
Enter 2 or q to finish collecting and quit.
2
*****************************************************.
The collected MAC addresses from [eth0:1] are saved in file(s)
separately: macadr-eth0:1.txt.
These files are saved in directory /etc/drbl.
******************************************************
OK! Let's continue...
******************************************************
Do you want to let the DHCP service in DRBL server offer same IP
address to the client every time when client boots (If you want this
function, you have to collect the MAC addresses of clients, and save
them in file(s) (as in the previous procedure)). This is for the
clients connected to DRBL server's ethernet network interface
eth0:1 ?
[y/N] y
******************************************************
OK! Please tell me the file name which contains the MAC address of
clients line by line for eth0:1.
[macadr-eth0:1.txt]
******************************************************
What is the initial number do you want to use in the last set of
digits in the IP (i.e. the initial value of d in the IP address
a.b.c.d) for DRBL clients connected to this ethernet port eth0:1.
[1]
******************************************************
The file name you set is "macadr-eth0:1.txt".
The clients number in this file is 1.
We will set the IP address for the clients connected to DRBL server's
ethernet network interface eth0:1 By the MAC address file you set, the
IP addresses for the clients connected to DRBL server's ethernet
network interface eth0:1 as: 192.168.0.1 - 192.168.0.1
Accept ? [Y/n]
******************************************************
OK! Let's continue...
******************************************************
The Layout for your DRBL environment:
******************************************************
NIC NIC IP Clients
+-----------------------------+
| DRBL SERVER |
| |
| +-- [eth0] 9.125.74.174 +- to WAN
| |
| +-- [eth0:1] 192.168.0.1 +- to clients group 0:1 [ 1 clients, their
IP
| | from 192.168.0.1 - 192.168.0.1]
+-----------------------------+
******************************************************
Total clients: 1
******************************************************
Press Enter to continue...
******************************************************
------------------------------------------------------
In the system, there are 3 modes for diskless linux services:
[0] Full DRBL mode, every client has its own NFS based /etc and /var.
[1] DRBL SSI (Single system image) mode, every client uses tmpfs
based /etc and /var. In this mode, the loading and necessary disk
space of server will be lighter. NOTE! (a) The client machine memory
is recommended at least 256 MB. (b) The setting and config files of
client will not be saved to the DRBL server! They are just used once
and will vanish after the machine shutdowns! Besides, if you modify
any file in the template client (located in /tftpboot/nodes), you have
to run /opt/drbl/sbin/gen_ssi_files to create the template tarball in /
tftpboot/node_root/drbl_ssi/. (c) If you want to provide some file to
overwrite the setting in the template tarball when client boots,
check /tftpboot/node_root/drbl_ssi/clients/00_README for more
details.
[2] I do NOT want to provide diskless Linux service to client.
Which mode do you prefer ?
[0]
Full DRBL mode is chosen!
******************************************************
******************************************************
------------------------------------------------------
In the system, there are 3 modes available for clonezilla:
[0] Full Clonezilla mode, every client has its own NFS based /etc and /
var.
[1] Clonezilla box mode, every client uses tmpfs based /etc and /var.
In this mode, the loading and necessary disk space of server will be
lighter than that in Full Clonezilla mode. Note! In Clonezilla box
mode, the setting and config files of client will not be saved to the
DRBL server! They just use once and will vanish after the machine
shutdowns!
[2] I do NOT want clonezilla.
Which mode do you prefer ?
[0]
Full clonezilla mode is set!
******************************************************
******************************************************
------------------------------------------------------
When using clonezilla, which directory in this server you want to
store the saved image (Please use absolute path, and do NOT assign it
under /mnt/, /media/ or /tmp/) ?
[/home/partimag]
Directory for clonezilla saved images: /home/partimag
------------------------------------------------------
If there is a local harddrive with swap partition or writable file
system in your client machine,
do you want to use that swap partition or create a swap file in the
writable filesystem so that client has more memory to use ? (This step
will NOT destroy any data in that harddisk)
[Y/n]
******************************************************
OK! We will try to create a swap space for your client if it has a
local hard drive!
------------------------------------------------------
What's the maximun size (Megabytes) for the swap space ?
We will try to allocate the swap space for you, if it's not enough,
60% of the free space will be used.
[128]
maxswapsize=128
******************************************************
------------------------------------------------------
Which mode do you want the clients to use after they boot ?
"1": Graphic mode (X window system) (default),
"2": Text mode.
[1]
The clients will enter graphic mode after booting.
******************************************************
------------------------------------------------------
Which mode do you want when client boots in graphic mode ?
0: normal login, 1: auto login, 2: timed login
[0]
The clients will wait for user to login when they boot.
******************************************************
------------------------------------------------------
Do you want to set the root's password for clients instead of using
same root's password copied from server ? (For better security)
[y/N] y
New root's password for clients (It will not be echoed in the
screen) ?
Retype new password (It will not be echoed in the screen).
------------------------------------------------------
Do you want to set the pxelinux password for clients so that when
client boots, a password must be entered to startup (For better
security)
[y/N]
OK! Let's continue...
------------------------------------------------------
Do you want to set the boot prompt for clients ?
[Y/n]
How many 1/10 sec is the boot prompt timeout for clients ?
[70]
OK! Let's continue...
------------------------------------------------------
------------------------------------------------------
Do you want to use graphic background for PXE menu when client
boots ?
Note! If you use graphical PXELinux menu, however client fails to
boot, you can switch to text mode by running "/opt/drbl/sbin/switch-
pxe-bg-mode -m text".
[Y/n]
Use text PXE Linux menu for client.
------------------------------------------------------
------------------------------------------------------
By using alias interface, every client can have 2 IPs,
one of them is private IP for clients connected to DRBL server, and
the other is public IP for clients directly connected to WAN from
switch!
Do you want to setup public IP for clients ?
[y/N]
------------------------------------------------------
Do you want to let DRBL clients have an option to run terminal mode ?
i.e. you want to let that client run remote display (which will mostly
use resources of server), say "Y" here.
Note!
0. If you say yes to this option, this will be a very limited
environment for client, i.e. NO local access for USB, CD, audio,
printer, etc. in client.
1. If your server is not powerful, say "no" here.
2. By saying "yes" here, we will turn on xdmcp,
It is never a safe thing to turn on that. Setting up /etc/hosts.allow
and /etc/hosts.deny to only allow local access is another alternative
but not the safest.Firewalling port 177 is the safest if you wish to
have xdmcp on.
Read the manual for more notes on the security of XDMCP.
Please set it by yourself!
3. If you say "yes" here, you might have to restart your desktop
environment manager (gdm/kdm) later, remember to save your data before
you close applications!
Do you want to let client has an option to run terminal mode ?
[y/N]
OK! Let's continue...
------------------------------------------------------
------------------------------------------------------
Do you want to let DRBL server as a NAT server ? If not, your DRBL
client will NOT be able to access Internat.
[Y/n]
OK! Let's continue...
------------------------------------------------------
------------------------------------------------------
Do you want to keep the old setting of existing DRBL clients if they
exist ?
[Y/n] n
We will remove all the setting of the DRBL clients if they already
exist.
******************************************************
******************************************************
The running kernel in the server supports NFS over TCP!
Note! If you change the running kernel in the server, and not sure
whether the kernel supports NFS over udp or tcp, you'd better to re-
run "drblpush -i" again to avoid the client boots in failure!
Press Enter to continue...
------------------------------------------------------
Searching installed Etherboot files for dhcpd.conf... done!
******************************************************
The calculated NETWORK for eth0:1 is 192.168.0.0.
******************************************************
******************************************************
We are now ready to deploy the files to system!
Do you want to continue ?
Warning! If you go on, your firewall rules will be overwritten during
the setup!The original rules will be backuped as iptables.drblsave in
system config directory (/etc/sysconfig or /etc/default).
[Y/n]
******************************************************
OK! Let's do it!
------------------------------------------------------
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 for clients connected to eth0:1... done!
Cleaning the stale files of the diskless nodes if they exist... done!
Backuping the old MAC address files... done!
*****************************************************.
*****************************************************.
The version number for your GNU/Linux: RH9
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........... done!
Update the kernel for client if necessary...
Warning! Unable to find the kernel version information for DRBL
clients!
Are you sure you already run "drblsrv -i" ?
Press "Enter" to continue...

Unable to find the DRBL client's arch info!!! Did you run "drblsrv -
i" ? Program terminated!!!
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!
service nxsensor does not support chkconfig
service nxserver does not support chkconfig
The startup services for DRBL client are:
firstboot netfs portmap crond nfslock sshd crond xfs ypbind kudzu
haldaemon messagebus acpid gpm cups drblthincli mkswapfile arm-wol
iiim
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: tivm590-102 192.168.0.2... Display manager for
this client:"gdm"...
Setting node 192.168.0.2 as normal_login... done!
[root] You should run this program /opt/drbl/sbin/ocs-related-srv in
DRBL server, NOT in DRBL client or other machine.
Program terminated!
Change the root's password for DRBL client 192.168.0.2...done!
Template client for DRBL SSI is 192.168.0.2
Disable the password in pxelinux simple menu for all clients...
Disabling PXE password in config file /tftpboot/nbi_img/pxelinux.cfg/
default... Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such
file or directory.
Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory.
Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory.

find: /tftpboot/nbi_img/pxelinux.cfg/: No such file or directory
done!
Now 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!
Now generate the firewall rules for NAT service...
Warning! /etc/sysconfig//iptables is renamed as iptables.drblsave!
Your firewall rules is overwritten!!! We set the NAT for clients to
access this DRBL server!
Stop the NAT service first...
清除防火墙规则: [ 确定 ]
把 chains 设置为 ACCEPT 策略:filter nat [ 确定 ]
将当前规则保存到 /etc/sysconfig/iptables: [ 确定 ]
ip_forward is already on.
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 portmap iptables ypserv ypbind
yppasswdd ypxfrd nfs nfslock ntpd
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 portmap 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...
Force to add ntpd service in this RH-like DRBL server...
Now start the service: dhcpd xinetd portmap iptables ypserv ypbind
yppasswdd ypxfrd nfs nfslock ntpd
启动 dhcpd: [ 确定 ]
启动 xinetd: [ 确定 ]
停止 portmap: [ 确定 ]
启动 portmap: [ 确定 ]
清除防火墙规则: [ 确定 ]
把 chains 设置为 ACCEPT 策略:filter nat [ 确定 ]
应用 iptables 防火墙规则: [ 确定 ]
停止 YP 服务器的服务: [ 确定 ]
启动 YP 服务器的服务: [ 确定 ]
关闭 NIS 服务: [ 确定 ]
关联到 NIS 域: [ 确定 ]
监听 NIS 域服务器。
停止 YP 口令服务: [ 确定 ]
启动 YP 口令服务: [ 确定 ]
停止 YP 映射图服务器: [ 确定 ]
启动 YP 映射图服务器: [ 确定 ]
关闭 NFS mountd: [ 确定 ]
关闭 NFS 守护进程: [ 确定 ]
关闭 NFS quotas: [ 确定 ]
关闭 NFS 服务: [ 确定 ]
启动 NFS 服务: [ 确定 ]
关掉 NFS 配额: [ 确定 ]
启动 NFS 守护进程: [ 确定 ]
启动 NFS mountd: [ 确定 ]
停止 NFS statd: [ 确定 ]
启动 NFS statd: [ 确定 ]
关闭 ntpd: [ 确定 ]
启动 ntpd: [ 确定 ]
ip_forward is already on.
The display manager in this DRBL server is "gdm"
The GDM remote access in the DRBL server is already off!
Disable the terminal mode for DRBL clients ...
done !
Clean all the previous saved config file if they exist...done!
Turn on the boot prompt for PXE client...Can't open /tftpboot/nbi_img/
pxelinux.cfg/default: No such file or directory.
Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory.
file /tftpboot/nbi_img/pxelinux.cfg/default not found!
file /tftpboot/nbi_img/pxelinux.cfg/default not found!
file /tftpboot/nbi_img/pxelinux.cfg/default not found!
file /tftpboot/nbi_img/pxelinux.cfg/default not found!
done!
Turn off the thin client option in PXE boot menu...file /tftpboot/
nbi_img/pxelinux.cfg/default not found!
done!
Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client
use graphical PXE boot menu... Can't open /tftpboot/nbi_img/
pxelinux.cfg/default: No such file or directory.
Can't open /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory.
done!
Full DRBL mode. Remove clientdir opt for label drbl in pxelinux
config...
file /tftpboot/nbi_img/pxelinux.cfg/default not found!
grep: /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory
wc: /tftpboot/nbi_img/pxelinux.cfg/default: No such file or directory
syntax error at -e line 1, near "(.."
syntax error at -e line 1, near ";}"
Execution of -e aborted due to compilation errors.
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...
grep: /tftpboot/nbi_img/pxelinux.cfg/default: No such file or
directory
wc: /tftpboot/nbi_img/pxelinux.cfg/default: No such file or directory
syntax error at -e line 1, near "(.."
syntax error at -e line 1, near ";}"
Execution of -e aborted due to compilation errors.
Setting clonezilla_mode="full_clonezilla_mode" in /etc/drbl/
drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
You have to use "/opt/drbl/sbin/dcs" -> clonezilla-start to start
clonezilla serivce, so that there will be a clonezilla menu when
client boots
*****************************************************.
Enjoy DRBL!!!
http://drbl.nchc.org.tw; http://drbl.sf.net
NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw
*****************************************************.
If you like, you can reboot the DRBL server now to make sure
everything is ready...(This is not necessary, just an option.).
*****************************************************.
DRBL server is ready! Now set the client machines to boot from PXE or
Etherboot (refer to http://drbl.sourceforge.net for more details).
NOTE! If Etherboot is used in client machine, version 5.4.0 or newer
is required!
PS. The config file is saved as /etc/drbl/drblpush.conf. Therefore if
you want to run drblpush with the same config again, you may run it
as: /opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf

Steven Shiau

未读,
2008年3月21日 05:11:022008/3/21
收件人 ocs-clo...@googlegroups.com
1. Did you run as root ?
2. Did you run "/opt/drbl/sbin/drblsrv -i" first ?
Check
http://drbl.sourceforge.net/one4all/
for more details.

Steven.

--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A

iamd...@gmail.com

未读,
2008年3月21日 21:57:242008/3/21
收件人 再生龍clonezilla
Hi, Steven Shiau
I am sure that I run the program in root.
And because in the server room, my machine cannot connect to internet.
So I cannot execute "/opt/drbl/sbin/drblsrv -i", so I download the
required rpm packages, and install them by "rpm -ivh *.rpm".
I got the required rpm packages by running "/opt/drbl/sbin/drblsrv-
offline -r". And I am sure that I have installed all the required
packages in the drbl server.

By the way, do you mean that I must run "/opt/drbl/sbin/drblsrv -i",
and I should not install the packages manually?
And is it mean that the program "drblsrv -i" does not only install
required packages, it also do some configuration?

Thank you very much!

My machines info:
1. RHEL4 without any updates
2. I have modified the "/etc/redhat-release", and the drbl program
think that my OS is redhat 9.


On 3月21日, 下午5時11分, Steven Shiau <ste...@nchc.org.tw> wrote:
> 1. Did you run as root ?
> 2. Did you run "/opt/drbl/sbin/drblsrv -i" first ?
> Checkhttp://drbl.sourceforge.net/one4all/
> for more details.
>
> Steven.

Steven Shiau

未读,
2008年3月21日 22:01:142008/3/21
收件人 ocs-clo...@googlegroups.com
You can use either "/opt/drbl/sbin/drblsrv -i" or
"/opt/drbl/sbin/drblsrv-offline ..." as shown in
http://drbl.sourceforge.net/one4all/
When you run drblsrvl-offline and drblpush, copy and paste all the
messages and post that so that it's easier for others to do something
for you.

Steven.

--

Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw

Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A

回复全部
回复作者
转发
0 个新帖子