Moving /usr From Under Root "/" To Its Own Partition

From: Dave Warchol (Warchol@harthosp.org)
Date: Tue Jun 03 2003 - 14:39:17 EDT


Hello:
          I need to move /usr from under root "/" to its own partition
(space and backup issues). The system is currently running under
c1t1d0, with one large root partition. I don't have any space that I
could use temporarily on the existing disk. This is one piece in
migrating from a smaller (c1t1d0, 18G) disk to a larger one (c1t2d0,
36G). The steps that I have are:

a. Document and backup everything first.
b. Create a new directory under root, /usr2
c. Run newfs on c1t2d0s4 build the filesystem on the new usr
patition on c1t2d0s4
d. mount /dev/dsk/c1t2d0s4 /usr2
e. cd /usr2
f. ufsdump 0ucf - /usr | ufsrestore xf 
g. Change /etc/vfstab to include /usr as a filesystem
h. mv /usr /usr_prev (do I need to do this in single user mode?)
i. Reboot
j. When comfortable that everything is ok, remove /usr_prev
(reclaim space).
k. Migrate the remaining partitions from the small disk to
the large disk, install the bootblk on the large disk and boot off the
large disk....

Just want to make sure (in advance) that I haven't missed anything. If
there is a better way, I am all ears.... I will summarize.

Thanks
Dave
_______________________________________________
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:26:31 EDT