Sharing NFS Root between boards

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

Just wondering if it would be totally crazy for me to share the nfsroot between multiple boards. Right now I have it setup with seperate rootfs for each board, and it's a bit of a hassle for upgrades etc.

If I have stuff like /var/run, /var/lock, /var/tmp and /tmp set to tmpfs in the fstab would this be doable?

I guess the only other thing is getting u-boot to pass the hostname over, is that currently supported? I'm running u-boot 1.3.1 right now..

I suppose the other option is just to create a bunch of aliased directories, to try to minimize the amount of upgrade work required..

Any thoughts or comments would be most appreciated!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm, if you're going to share lumps you'd want to share /var/lock too otherwise each board will think it has exclusive access to a shared resource without actually having such a thing.

Hmm, if it were me I'd just write a script to automate the updates across multiple roots. I'm sure it's possible to share most things, though I'm not sure I could be bothered tracking down any issue which does end up arising.

Of course the next option, if you've got enough ram on each board, is to load the whole rootfs to a local location on each boot. Or use an initramd to copy the remote filesystem to flash/SD card locally at boot if you don't have enough RAM.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Squidgit! I'm thinking you're correct, it might just cause more problems than it's worth to do that. Cooking up a script to automate the upgrade process sounds like a fine alternative.

squidgit wrote:

Of course the next option, if you've got enough ram on each board, is to load the whole rootfs to a local location on each boot. Or use an initramd to copy the remote filesystem to flash/SD card locally at boot if you don't have enough RAM.

This is an interesting idea! I like the plan of duping the remote filesystem on a SD card, in case the network share goes down. Thanks for that!