How to increase Inode numbers in Solaris 10

Hi guys,
need your help on this since i dont know much about solaris.
the problem is i need to increase inodes space on /export/home/

root@BRF-DANCCM1 # /usr/ucb/df -i
Filesystem             iused   ifree  %iused  Mounted on
/dev/vx/dsk/bootdg/rootvol
                       53026 1162206     4%   /
/dev/vx/dsk/bootdg/var
                        8008  719928     1%   /var
/dev/vx/dsk/bootdg/opt
                        8123  479173     2%   /opt
/dev/vx/dsk/bootdg/home
                     4169154 1401662    75%   /export/home

any good and effective suggestion on this?
try to ask some people and they said i have to backup /export/home/ and then format the partition. and dump the data back to /export/home/.

Server is SUN Netra 240 running solaris 10. since the customer didt allow me to ssh remotely from outside. i have to go to the datacentre and troubleshoot it directly. (it will take 2hrs travel time..from my house to the datacentre)

Yes, that the way to do it.
While you do that, take the opportunity to migrate your slice to a zfs pool and /export/home to zfs and then forget about all of these pesky file-system annoyances forever ...

Hello, I have a similar problem but in the "/" root directory in Solaris 8 Containers Branded Zone. :eek:

I have 50GB space free but only 2000 free inodes numbers.
If I put in the root filesystem more then 2000 files I obtain the "Not enough space free" message while the space is still a lot free.

Because is Solaris 8 and is the root filesystem I can't make the same solution based in ZFS filesystems. Can someone help me about this?
Thanks a lot!

You can either increase the size of file system using growfs or you can take the backup up the file system and then use the followign command:-

`newfs -i <nbpi> <other newfs parameters> to recreate the filesystem
"nbpi" is a confusing term but the smaller the number the more inodes in the filesystem.

create a new filesystem with the needed inode size and clone the zone... haven't done this with a branded zone but maybe it's worth a try?!

I didn't check but why wouldn't a branded Solaris 8 zone be installed on ZFS ?
On Solaris Express on x86, I have Linux zones running on ZFS with no issues.

Hello and thanks to all the people.

I don't have experience whit ZFS filesystems and I'm fighting with Solaris Containers Branded Zone for Solaris 8.

jlliagre: I read that a instance of Solaris 8 installed in a Solaris Containers Branded Zones can be installed in a ZFS filesystem. I believe that the problem could be that afther from the Solaris 8 we couldn't take advantadge of this features.

Solaris 8 containers have limitations, for example I don't have disks:
SunOS 5.8# format
Searching for disks...done
No disks found!
I can't use growfs (inexist in Solaris8) and if I use newfs I can't put any raw device.
jlliagre: Can you, in your linux zones running on ZFS, change the inodes capacity with newfs "newfs -i <nbpi>"? or perhaps in ZFS it is innecessary forever to do that.

Thanks a lot again!

You don't need to format, partition disks or create filesystems from within a non global zone. All of this can be handled from the global one.

Solaris 8 branded zones can take advantage of ZFS without knowing this filesystem. Zones filesystems are mounted by the global zone. This hides the underlying filesystem just like you can NFS mount a remote filesystem your OS has no support for.

ZFS doesn't use statically defined inodes. Files can be created with no reachable restriction in size or number with ZFS.

Bizarre ! Vous avez dit Bizarre ?

ZFS Filesystems can easily be grown by adding devices to the pool.