[Voyage-linux] Breaking RO

Edwin Whitelaw (spam-protected)
Thu May 14 19:33:32 HKT 2009


I suspect you need to have /etc/dhcp3/dhcpd.conf place the dhcpd.leases 
file in a rw location, eg

lease-file-name         "/var/tmp/dhcpd.leases";

Because /var/tmp evaporates at shutdown, we also have this in 
/etc/init.d/dhcp3-server so it will start on boot.

if [ ! -f /var/tmp/dhcpd.leases ]; then
        touch /var/tmp/dhcpd.leases
        fi

We only issue dynamic leases with a *very* short lease time (~30 
minutes) to allow initial connections to work.  We then map them to 
their MAC in a config file.  Mapped addresses don't use the leases file 
but dynamic ones do, I believe and of course the mapping file is 
persistent across reboots..

This works very well for us since I don't mind if I lose the dynamic 
lease information on a reboot but if you need to keep iot then you'll 
probably need to write your leases file to something non-volatile.

HTH,

Edwin

Robert Rawlins - Think Blue wrote:
> Ok,
>
> After rebuilding the system from the ground up this morning and keeping a
> close eye on the packages, it appears to be the DHCP3-Client which causes
> the problems, the FS will mount RO with the other packages, as soon as dhcp3
> is on, bam! No longer mounts as ro.
>
> Any suggestions?
>
> Gustin is using this package so I'm inclined to think there isn't a problem
> with it, perhaps just a config issue or something?
>
> Rob
>
> -----Original Message-----
> From:
> voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.voyage.hk
> [mailto:voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.voyage
> .hk] On Behalf Of Robert Rawlins - Think Blue
> Sent: 09 May 2009 14:46
> To: voyage-linux at voyage.hk
> Subject: RE: [Voyage-linux] Breaking RO
>
> Hey Ward,
>
> Thanks for the suggestion. I've run 'lsof' and it gives me HUGE list of
> results. I'm not really sure what I'm looking for. I've attached the results
> to this mail as a txt file.
>
> What do you make of it? Cheers mate.
>
> Rob
>
> -----Original Message-----
> From: Ward Vandewege [mailto:ward at pong.be]
> Sent: 09 May 2009 14:37
> To: Robert Rawlins - Think Blue
> Cc: voyage-linux at voyage.hk
> Subject: Re: [Voyage-linux] Breaking RO
>
> On Sat, May 09, 2009 at 02:30:32PM +0100, Robert Rawlins - Think Blue wrote:
>   
>> voyage:~# remountro
>>
>> mount: / is busy
>>     
>
> Use fuser and/or lsof to see what process has a lock on a file and/or an
> open file in the RO partition.
>
> Thanks,
> Ward.
>
>   

-- 
<=+=+=+==+=+=+==+=+=+=+=+=+=+=+=>
Edwin Whitelaw, P.E.
New River Valley Unwired, LLC
2200 Lonesome Dove Dr
Christiansburg, VA 24073
540-239-0318





More information about the Voyage-linux mailing list