HP-UX System Administrator's Guide: Routine Management Tasks
NOTE: In this example, we are changing the file system’s name, as well as moving
it, so tar cv /projects is not the right way to back it up; specify an absolute
path name only if you want tar to recover the data to that path name.
8. Do this step on the new server, that is, the system you are moving the directory
to,fp_server in this example.
Recover the files onto fp_server; for example,
cd /work/project6
tar xv
This copies the entire contents of the tape in the system default tape drive to
/work/project6.
9. Do this step on the new server, that is, the system you are moving the directory
to,fp_server in this example.
Export the directory; for example, by editing/etc/dfs/dfstab to include an
entry for the file system. The entries are of the form:
share [-F fstype] {-o options] [-d “text”] pathname
For the file system in this example the entry would be:
share -F NFS -o anon=65534 -d “work directory” /work/project6
and running the shareall command to force the system to reread
/etc/dfs/dfstab:
shareall -F nfs
You can also use HP SMH to perform this task; see HP-UX System Administrator’s
Guide: Configuration Management.
NOTE: If this system is not already sharing file systems, you may need to
configure it as an NFS server; check that /etc/rc.config.d/nfsconf has
NFS_SERVER=1, or use HP SMH to verify that NFS SERVER is enabled; see HP-UX
System Administrator’s Guide: Configuration Management.
10. Do this step on each NFS client in the workgroup.
Mount the imported file system:
mount -a
Once everyone has verified that their files are intact in their new location
(/work/project6 in this example), you can remove /projects from wsb2600,
freeing the space for other uses.
Managing Disks - Quick Reference Examples 115