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.
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).
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