![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Increasing File system | rosyblue | SUN Solaris | 1 | 06-21-2007 10:56 AM |
| increase root file system size in solaris | sriram.s | SUN Solaris | 4 | 04-02-2007 04:28 AM |
| Help on increasing fs size | kingsto88 | HP-UX | 5 | 02-11-2007 07:37 AM |
| Increasing File Size on AIX | Rosie C | AIX | 1 | 05-12-2006 05:25 AM |
| increasing file system | big123456 | UNIX for Advanced & Expert Users | 1 | 10-25-2005 12:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
increasing ufs file system size in solaris
How do i increase the filesystem size on a root partition?
There is a slice with root on it, its like 2 gigs and nothing else is broken out except home. I want to increase root filesystem (and slice) and break out /usr and /var. This is solaris 9, only has solaris volume manager on it. This system has 2 disks on it, the 2nd disk is not used at this point so i can use it for a swap space so to speak. anyone care to point me in the right direction? Thanks! |
|
||||
|
I think you are out of luck unfortunately. UFS filesystems generally can't be grown. I believe your only choice would be to make a full backup, reinstall solaris laying out the filesystems how you want, then restore from your backup.
If you are using Solaris disksuite you might be able to get around that limitation, but I don't know how. I know with Veritas Volume Manager you can increase a volume and filesystem on the fly. But even then, if it is your encapsulated root volume it is an awfully painful process. |
|
|||||
|
pressy --- thanks for the compliment but that script is a hack of a hack of a hack (and so on and so forth) and not mine completely ...
anyways, the reformat and the data copies into the 2nd drive can be done during normal working hours with the reboot waiting until after the users are off the system ... i would suggest trying that option first --- maybe there's no need to reinstall the os at all ... |
|
|||||
|
Code:
if the 2nd drive is empty or reconfigurable --- 1. partition the 2nd drive into the setup you want to be the final layout 2. newfs all the new data partitions on the 2nd drive 3. copy all the data over from the 1st drive to it's new home on the 2nd drive if you plan on booting up the 2nd drive as another boot device --- 1. install boot block on / partition of 2nd drive 2. edit /etc/vfstab on 2nd drive to reflect correct disk devices for mounting if you plan on physically swapping drives --- 1. install boot block on / partition of 2nd drive 2. power off system, swap drives in slot0 and slot1, and boot anyways, i've found through the years that having the / filesystem include everything gave me much more flexibility than breaking out some of it's components --- i.e., the unused spaces in /home, /usr and /var are easily reclaimed if i need more space in /, i can create as many directories as i want without resorting to creative symlinks all over the place, etc. ... however, there are times i'd at least want some of the sub-directories broken off --- i.e., /var should be it's own filesystem if there is a massive amount of system log activity or if the server is a mail server, /home should be it's own filesystem if you want to contain and enforce quotas on user data, etc. you need to figure out how you folks want to support the server and how the server is going to be used in the long term so you'll know your better if you want to split out sub-directories into their own filesystems ... for pointers on intra-disk copies see this script |
|
||||
|
ufsdump | ufsrestore disk to disk
Can you do a ufsdump | ufsrestore disk to disk on different size slices conatining root?
source root partition which contains usr, var, and /. and is 2GB size. If I do a ufsdump | ufsrestore to the new disk, and then make it boot from the new disk. will this work? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|