| 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?
|