[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Testbed-admins] database info reset by nfree command
More specifically i see the problem in the nfree script
######################################################################
# Step 1b
#
# Ugh. If we are resetting the PXE boot program for any of the nodes
# we need to clear them and regenerate the dhcpd.conf file now, before
# we start freeing up nodes in Step 2. If we delayed HUP'ing til after
# Step 2, then nodes might have already been rebooted by the reload
# daemon.
#
# NOTE: this does not happen very often. elabinelab, plabinelab?
#
foreach my $node (@freed_nodes) {
if ($node->pxe_boot_path() && $node->pxe_boot_path() ne "") {
$node->Update({"pxe_boot_path" => "NULL"}) == 0 or
die("*** $0:\n".
" Could not update pxe_boot_path for $node\n");
$mustmakeconf = 1;
}
}
if ($mustmakeconf) {
system("$makeconf -i -r") == 0 ||
print STDERR "*** WARNING: $makeconf failed!\n";
}
Do we need this or can i comment this out ??
cheers,
Hussam
(Hussamuddin Nasir)
Netlab Operations Team
-------------------------------------------------------------------
Laboratory for Adv. Networking Phone : (859)218-0059
James F Hardymon Building Fax : (859)323-3740
301 Rose Street, Rm 202 E-mail : nasir@netlab.uky.edu
Lexington, KY 40506-0495 Web : http://www.netlab.uky.edu
University of Kentucky
**********************
-------------------------------------------------------------------
On 04/13/2009 01:01 PM, Hussamuddin Nasir wrote:
HI guys,
As you know we had added 24 more machines to our Testbed which had
no serial lines. SO i was forced to use the pxeboot-vga for them. We had
55 more machines that use serial lines and pxeboot-serial. To make both
of them work , i played around with the database tables to make the
following changes
1. Made pxeboot-serial as the default pxeboot and updated the values for
all the machine that do not have serial ports in the database with
pxeboot_path=/tftpboot/pxeboot-vga ; then ran makedhcpd_conf to update
my dhcp server config.
2. Also built separate Frisbee and FREEBSD MFS images with support for
only vga console for the new machines and the updated the database
tables likewise
This made every thing work as i wanted them , but as soon as i try to
free a node using the nfree command, it resets the pxeboot path value in
the database for that node to NULL which ultimately hangs the node on
pxeboot
Any solutions for this situation ??