Migrate /usr to another slice

From: sunmaillist (sunlist@netlam.com)
Date: Mon Jun 24 2002 - 09:01:56 EDT


Hello,

I have this problem with my Solaris 8 box. When I first
setup the partitions, I allocated slice 6 for /usr. However, the entry
for mounting slice 6 to /usr was missing in the /etc/vfstab file and
therefore slice 6 was never mounted to /usr. So /usr has always been
under
the / filesystem. Now the / is running out of space which is why I
discovered this problem in the first place. What I want to do now is to
move everything from the current contents of /usr to slice 6 (without
breaking anything like links and such), and then add
the entry for mounting slice 6 to /usr back into the vfstab file. What is
the best way for doing this? I thought maybe I could do this:

1) ufsdump 0vf somefilename /usr
2) mount slice 6 somewhere like /usrother
3) cd /usrother
4) ufsrestore rvf somefilename
5) add entry for mounting slice 6 to /usr in vfstab file
6) reboot and verify operation
7) reboot to single user mode and make sure /usr (slice 6 is not mounted)
8) go back into the original /usr and remove all the files to regain file
space
9) reboot to normal mode

But my concern is since /usr is on the / filesystem right now, I cannot
unmount that filesystem before I do the ufsdump which means some files are
in use and will not backup properly. Is there some way to get around
this? Is there another way to do what I need to do here?

Thanks in advance.

Fritz Lam
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:30 EDT