Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Explaining odd entries in 'df' output' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Explaining odd entries in 'df' output
Authored by: kentmartin on Jan 29, '10 09:42:57AM
My entire household lives by this functionality. ie, my laptop:

kent@epona ~ $ df -h

Filesystem                 Size   Used  Avail Capacity  Mounted on
/dev/disk0s2              143Gi  134Gi  8.7Gi    94%    /
devfs                     110Ki  110Ki    0Bi   100%    /dev
map -hosts                  0Bi    0Bi    0Bi   100%    /net
map auto_home               0Bi    0Bi    0Bi   100%    /home
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes/Luxmi
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes/Hermes
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes/Dionisus
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes/Mnemosyne
trigger                     0Bi    0Bi    0Bi   100%    /net/venus/Volumes/Ganimides
venus:/Volumes/Ganimides  698Gi  530Gi  168Gi    76%    /net/venus/Volumes/Ganimides
venus:/Volumes/Mnemosyne  1.4Ti  1.3Ti   62Gi    96%    /net/venus/Volumes/Mnemosyne
venus:/Volumes/Dionisus   1.4Ti  1.4Ti  9.0Gi   100%    /net/venus/Volumes/Dionisus
venus:/Volumes/Luxmi      1.4Ti  1.4Ti   14Gi   100%    /net/venus/Volumes/Luxmi
venus:/Volumes/Hermes     1.8Ti   43Gi  1.8Ti     3%    /net/venus/Volumes/Hermes
Venus is our server containing media. Each other machine then has a set of symlinks containing something like:

kent@epona ~ $ ls -l /Movies
lrwxr-xr-x  1 kent  admin  35 28 Dec 12:25 /Movies -> /net/venus/Volumes/Mnemosyne/Movies
The NFS server on venus is then set up as follows:

venus:~ kent$ cat /etc/exports 
/Volumes/Dionisus -ro
/Volumes/Ganimides -ro
/Volumes/Luxmi -ro
/Volumes/Mnemosyne -ro
/Volumes/Hermes -ro
That way, any machine that has a 5 second setup done on it has instant on demand access to all the media on the server. If they're not on our network, the symlinks will just fail to resolve. Venus happens to be an OSX machine, but, it could just as easily be a Linux box or Solaris - or just about any other *nix for that matter. The clients wouldn't notice the difference. Similarly, linux clients are set up exactly the same way (install autofs on ubuntu for example). NFS, simple, old and works just fine :)

[ Reply to This | # ]