The dhcpd.leases file is DHCP's persistent database for data it must
dynamically manipulate, not a log file. All log content in DHCP goes
through syslog. dhcpd.leases is *usually* appending to the end and will
for example have an old lease or host declaration, followed by an amending
statement later, but it does on occasion perform cleanup.
xCAT's host declarations land in dhcpd.leases because we dynamically add
the declarations to the running dhcpd instance. dhcpd in turn writes out
the data we send it to dhcpd.leases so that it will remember on next
restart.
Of course, this means if you intend to do anything other than read the
dhcpd.leases file, you need to either use a utility like omshell to do it
live or shut down dhcpd when you do the changes. If you wish to read
config, always go to end of file and reverse search for what you want to
make sure you are dealing with the relevant entry.
2012/2/16 m13601078155 <[email protected]>
> **
> /var/lib/ dhcp/ dhcpd.lease is log file for dhcp NOT configration file .
>
>
>
> 2012-02-16
> ------------------------------
> m13601078155
> ------------------------------
> *发件人:* Qamar Nazir
> *发送时间:* 2012-02-16 21:03:18
> *收件人:* [email protected]
> *抄送:*
> *主题:* Re: [xcat-user] which file define mac-ip
> Do you want '/var/lib/dhcpd/dhcpd.leases' file?
>
> Best Regards,
>
>
>
> *Qamar Nazir*
>
> HPC Software Engineer
>
> On 02/16/2012 12:35 PM, m13601078155 wrote:
>
> Which file is define mac-ip pair .I can not find it in the dhcpd.conf
> that xCAT generated .
> NOT the following line in dhcpd.conf.
>
> host ns {
> next-server 207.175.42.1;
> hardware ethernet 12:34:56:78:AB:CD;
> fixed-address 207.175.42.254;
>
> The following generated by xCAT
> #xCAT generated dhcp configuration
> authoritative;
> option space isan;
> option isan-encap-opts code 43 = encapsulate isan;
> option isan.iqn code 203 = string;
> option isan.root-path code 201 = string;
> option space gpxe;
> option gpxe-encap-opts code 175 = encapsulate gpxe;
> option gpxe.bus-id code 177 = string;
> option user-class-identifier code 77 = string;
> option gpxe.no-pxedhcp code 176 = unsigned integer 8;
> option iscsi-initiator-iqn code 203 = string;
> ddns-update-style none;
> option client-architecture code 93 = unsigned integer 16;
> option gpxe.no-pxedhcp 1;
> omapi-port 7911;
> key xcat_key {
> algorithm hmac-md5;
> secret "MDhURDV4alU0RjBTdTEwSWV3UExWMWZPbTdYbElRRzE=";
> };
> omapi-key xcat_key;
> shared-network eth2 {
> subnet 10.89.146.0 netmask 255.255.254.0 {
> max-lease-time 43200;
> min-lease-time 43200;
> default-lease-time 43200;
> option routers 10.89.147.254;
> next-server 10.89.147.156;
> option log-servers 10.89.147.156;
> option ntp-servers 10.89.147.156;
> option domain-name "cluster.net";
> option domain-name-servers 10.89.147.156;
>
> if option user-class-identifier = "xNBA" { #x86, xCAT Network Boot Agent
> filename =
> "http://10.89.147.156/tftpboot/xcat/xnba/nets/10.89.146.0_23"<http://10.89.147.156/tftpboot/xcat/xnba/nets/10.89.146.0_23>
> ;
> } else if option client-architecture = 00:00 { #x86
> filename "xcat/xnba.kpxe";
> } else if option vendor-class-identifier = "Etherboot-5.4" { #x86
> filename "xcat/xnba.kpxe";
> } else if option client-architecture = 00:02 { #ia64
> filename "elilo.efi";
>
> } else if substring(filename,0,1) = null { #otherwise, provide yaboot if
> the client isn't specific
> filename "/yaboot";
> }
> range dynamic-bootp 10.89.146.1 10.89.147.253;
> } # 10.89.146.0/255.255.254.0 subnet_end
> } # eth2 nic_end
>
> 2012-02-16
> ------------------------------
> m13601078155
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user