Sorry the summary took so long but here it is. Many thanks to all those who replied (there were many :-) ). The general procedure is as follows: 1) boot cdrom -s 2) mount /dev/rdsk/c0t0d0s0 to /a 3) mount /dev/rdsk/c0t0d0s6 to /mnt 4) There are many ways to do the actual file transfer but I think the most straight forward one is: cd /a/usr find . -print |cpio -pvmPd /mnt 5) Edit /etc/vfstab to mount the new /usr 6) mv /a/usr /a/usrbak 6) reboot 7) verify that everythingis ok 8) boot cdrom -s 9) mount /dev/rdsk/c0t0d0s0 /a 10) remove or move /a/usrbak 11) reboot Thanks again. Fritz > -----Original Message----- > From: sunmaillist [mailto:sunlist@netlam.com] > Sent: 24 June 2002 14:02 > To: sunmanagers@sunmanagers.org > Subject: Migrate /usr to another slice > > > 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 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Tue Jul 2 19:35:26 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:48 EST