Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move filesystems to a larger disk

Status
Not open for further replies.
Aug 10, 2001
21
0
0
US
I have / and /usr on one smaller disk and I would like to move them to a larger disk.
what is the procedure to move both of them to a larger disk?
 
Hey,
First of all take a complete backup of / and /usr using ufsdump command on a tape.If u have a /var filesystem also ,then take its backup also.
Then shutdown your server.When u restart press Stop+A and at the OK prompt boot your system with cdrom by giving the command:
boot cdrom -s(this boots the system from cdrom in single user mode)
then format your new hard disk with the partition size that u want.
using newfs command create a filesystem on it and then mount it on a temp. mount pt
(eg mount /dev/dsk/c0t1d0s0 /a)
then change dir to /a (cd /a)
after that using ufsrestore command restore the / filesystem on it(ufsrestore rfs /dev/rmt/0mn /)
then give the command:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
then umount /a
then mount the /usr and /var to /a one after another and restore the contents to them.
After that reboot your system.

I hope this helps.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top