First tar /opt in a tarfile on your other disk
ex : cd /opt
tar cf - . | (cd /newdisk; tar xpvf -)
compare the size of the two file systems, if they are equal
unmount /newdisk
unmount /opt
then modify /etc/vfstab to reflect the change for /opt
mount /opt.
mkdir /a
mount /dev/dsk/c0t1d0s4 /a
account for vfstab
Can you make the change to vfstab first before you unmount the filesystem?
unmount /newdisk
unmount /opt
then modify /etc/vfstab to reflect the change for /opt
mount /opt.
With the mount procedure you are not moving the filesystem
off one disk to another. the data is still on the original disk - you are just changing where it appears to be by changing the mount point.
"cp" or the "find" command works well for moving data. With the find command use -print and pipe it to cpio. Check the man pages on cpio for options (I use -pdlumv).
After the copy , compare records - I use "du -k".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.