?
?I have recently upgraded to Solaris 2.5, and everything seems
?to work right yet :) However, my /usr (s6) partition has been filled
?up to 100% by the upgrade. I have a contiguous an unused
?partition (s7) on this disk: is it possible to add this disk space
?to the /usr partition using the "format" utility?
I have never tried this, but have the following article saved away:
|Newsgroups: comp.unix.solaris
|Subject: Re: can you grow a filesystem in 2.x?
|Date: 14 Nov 1995 23:56:30 +0100
|
|>I'm attempting to expand a partition from 3gigs to 4gigs. Is there a
|>way to grow this partition without laying down a totally new filesystem
|>and hosing my data?
|
|Yes - if you have Online:DiskSuite use the growfs script (it'll work
|on any ufs filesystem), if you don't, you have to do it manually.
|
|To grow a ufs filesystem would do the following:
|
|/usr/lib/fs/ufs/mkfs -G /dev/rdsk/slice_to_grow size_in_blocks
|
|(Note - you have to use the ufs-specific mkfs-command, and the -G option
|is undocumented as far as I can tell)
|
|You can get the size of the slice with devinfo. If you used any extra
|options when you mkfs:ed (or newfs:ed) the filesystem you should
|probably include those too. It's also possible to grow a mounted
|filesystem by adding -M /path/to/mountpoint though I wouldn't
|recommend it.
|
|No guarantees that it'll work...
|
|Good luck,
|/Anders
|
|--
| -- Of course I'm crazy, but that doesn't mean I'm wrong.
|System administrator at DjungelData | Fax: +46 31 772 3202
|Chalmers University of Technology, G|teborg, Sweden | Tel: +46 31 772 3241
-------------------------------------------------------------------------------
Fax: (716) 645-3464
WWW: http://www.cs.buffalo.edu/~milun/