Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

increasing file system size

10 views
Skip to first unread message

Aleksandar Milivojevic

unread,
Jul 8, 2002, 5:14:24 AM7/8/02
to
Is it possible to grow file system size in Solaris?

I have Solaris box connected to Compaq HSG-80 and I have volume of
200GB defined on it (with one partition of 200GB with file system of
same size). I increased volume size to 400GB, and I can see from
Solaris box that increase (both volume and partition are now 400GB
large). But file system size is still 200GB. Is there a way to
increase it to 400GB, without destroying the data on disk? I know
that it is possible by using Veritas VxVM vxresize command, but I
don't have Veritas installed on that box (so I need Solaris native
solution).

--
Aleksandar Milivojević <al...@fly.srk.fer.hr>
Opinions expressed herein are my own.
Statements included here may be fiction rather than truth.

Aleksandar Milivojevic

unread,
Jul 8, 2002, 6:10:27 AM7/8/02
to
"Michael Vilain (vil...@spamcop.net) wrote:
> There's supposedly an undocumented and unsupported command to newfs (-M)
> which will do this but the syntax and use isn't in the man page. Is
> growfs part of ODS or Solaris? You might be able to get it to work with
> that.
>
> Otherwise, shutdown, backup, newfs, and restore is the supported native
> Solaris solution.

Thanks for the hint for growfs. It appears that growfs is shell
script that is not dependent on the rest of ODS (it calls only devinfo
and mkfs, both of which are standard Solaris commands).

Anyhow, I copied only growfs shell script to Solaris box where I needed
to expand file system, and it worked perfectly. Seems that mkfs has
two undocumented options needed for expansion of file system: -G and
-M:

root 10557 10140 2 11:49:11 pts/1 0:06 /usr/lib/fs/ufs/mkfs -G -M /testdisk /dev/rdsk/c3t50001FE1000F9034d0s6 852566240

The last parameter for mkfs seems to be total number of blocks of
underlaying partition (as returned by devinfo -p).

Chris Thompson

unread,
Jul 8, 2002, 9:21:20 AM7/8/02
to
In article <news-110A1F.0...@corp.supernews.com>,
Michael Vilain <vil...@spamcop.net> wrote:
[...]

>
>There's supposedly an undocumented and unsupported command to newfs (-M)
>which will do this but the syntax and use isn't in the man page. Is
>growfs part of ODS or Solaris? You might be able to get it to work with
>that.

It's in the FAQ, http://www.wins.uva.nl/pub/solaris/solaris2/Q3.71.html

The option is -G (-M is auxilliary) and it's to mkfs: don't waste time
trying to fool newfs into passing it on to mkfs for you.

Prior to Solaris 9, "growfs" is part of ODS aka SDS. But the underlying
apparatus in /usr/lib/fs/ufs/mkfs is there regardless, although not
documented. That's why we asked Casper to put it the FAQ ...

Chris Thompson
Email: cet1 [at] cam.ac.uk

0 new messages