LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Question on nfsroot shared by multiple targets
@ 2007-06-11  8:48 Johan Borkhuis
  2007-06-11 10:26 ` Ajit Singh
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Borkhuis @ 2007-06-11  8:48 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I have the following setup: one server, with DHCP server and NFS-root 
for an embedded target. With one target this works OK, but now I want to 
add another target. The problem I see is that both targets are going to 
write into the same logfiles and lockfiles.
I did setup the DHCP server in such a way that the NFS-root of the 
target points to /nfsroot/<last octet of IP address>. But for this to 
work I need a copy of the complete tree for each target board. I would 
prefer to have only one tree for all targets, as this saves the effort 
of keeping all trees in sync.
I could create a smaller NFS-root per target, with only /etc, /var and 
some other directories and mount-points and mount all directories from a 
central nfsroot using the local fstab in /etc. This could work for /var, 
but I would still need to keep /etc in sync.

Is there another way to do this, or is this the correct way to setup a 
multi-target system?

Kind regards,
    Johan Borkhuis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on nfsroot shared by multiple targets
  2007-06-11  8:48 Question on nfsroot shared by multiple targets Johan Borkhuis
@ 2007-06-11 10:26 ` Ajit Singh
  0 siblings, 0 replies; 2+ messages in thread
From: Ajit Singh @ 2007-06-11 10:26 UTC (permalink / raw)
  To: Johan Borkhuis
  Cc: linuxppc-embedded-bounces+ajit.singh=vihaannetworks.com,
	linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2892 bytes --]

Johan,

The way i had done it was creating a read only partition for the / (root) 
filesystem. The /var partition was the only one created seperately for the 
different mounted systems. The additional work done was to have a /var/etc 
with the links made from the /etc directory for the files that need change 
across the system. The entries softlink and if any file ctreation was done 
in the rcS scripts. It would take a bit of time, but it works.

regards
Ajit


Vihaan Networks Limited | 246, Phase - IV, Udyog Vihar, Gurgoan , PIN 
122015, Haryana, India, Phone: +91-124-4311712, Fax: +91-124-4104766 | 
www.vihaannetworks.com

DISCLAIMER This message and any attachment therewith is privileged, 
confidential and proprietary in nature and the property of the originator. 
It is intended solely and exclusively for use by the individual to whom it 
is addressed. It should not be circulated or used for any purpose other 
than for what is stated. If you have received this message erroneously, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message and are 
called upon to delete the same from your system. Any contradictory action 
by you may invite penal consequences. Vihaan Networks Ltd. accepts no 
responsibility for loss or damage arising from the use of the information 
transmitted by this email including but not limited to damage from virus."



Johan Borkhuis <j.borkhuis@dutchspace.nl> 
Sent by: 
linuxppc-embedded-bounces+ajit.singh=vihaannetworks.com@ozlabs.org
06/11/07 02:18 PM

To
linuxppc-embedded@ozlabs.org
cc

Subject
Question on nfsroot shared by multiple targets






Hello,

I have the following setup: one server, with DHCP server and NFS-root 
for an embedded target. With one target this works OK, but now I want to 
add another target. The problem I see is that both targets are going to 
write into the same logfiles and lockfiles.
I did setup the DHCP server in such a way that the NFS-root of the 
target points to /nfsroot/<last octet of IP address>. But for this to 
work I need a copy of the complete tree for each target board. I would 
prefer to have only one tree for all targets, as this saves the effort 
of keeping all trees in sync.
I could create a smaller NFS-root per target, with only /etc, /var and 
some other directories and mount-points and mount all directories from a 
central nfsroot using the local fstab in /etc. This could work for /var, 
but I would still need to keep /etc in sync.

Is there another way to do this, or is this the correct way to setup a 
multi-target system?

Kind regards,
    Johan Borkhuis


_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


[-- Attachment #2: Type: text/html, Size: 3908 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-11 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11  8:48 Question on nfsroot shared by multiple targets Johan Borkhuis
2007-06-11 10:26 ` Ajit Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox