Unix administration - is this a proper way to implement lofs - virtual file system

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > July 2004 > is this a proper way to implement lofs - virtual file system





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author is this a proper way to implement lofs - virtual file system
colin_lyse

2004-07-15, 7:51 am

using SunOS 5.8 on unix sparc. have mountpoints /opt and /mssc and want to
move everything from /opt to /mssc to an lofs off a directory in /mssc


1. Create a new directory under /mssc:
% mkdir /mssc/opt/home/apps"

2. Copy everything from old location to the new directory maintian
persmissions:
% cp -rp /opt/home/apps /mssc/opt/home/apps"

3. Change ownership on all files and subfolders:
% chown -R coopcomp:coopcomp /mssc/opt/home/apps"

4. Rename old directory assigning it a different name:
% mv /opt/home/apps /opt/home/apps_old"

5. Create lofs mount of /mssc/opt/home/apps on /opt/home/apps by following
these steps:
A. Add the following entry to the end of /etc/vfstab file:
/mssc/opt/home/apps - /opt/home/apps lofs - yes -

B. Execute mountall command for lofs file system type to mount this
new mount point:
% mountall -F lofs"

is this all we need?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com