Gopi Desaboyina Solaris Blogs

Just another WordPress.com weblog

Increasing Inodes on UFS filesystem

Weblogic Installer on Solaris fails with following error

WARN  [WizardController] com.bea.plateng.common.util.diskspace.FileSystem – Unsatisfied link error…….
WARN  [WizardController] com.bea.plateng.common.util.diskspace.FileSystem – Unsatisfied link error…….
ERROR [Thread-4] com.bea.plateng.wizard.installer.utils.InstallFiles$ExtractFiles – Error encountered during file installation.
com.bea.plateng.common.util.crlf.CRLFException: /Weblogic/wlserver_10.3/server/lib/consoleapp/consolehelp/en-us/taskhelp/channels/ConfigureListenAddresses.html (No space left on device)

    at java.io.FileOutputStream.open(Native Method)

1. Check if you’ve sufficient space on that mount point using df command Ex: df -h /Weblogic
2. If it shows up free space. But still you get that error. You could be running out of Inodes on that filesystem.

    Check them using df -k -o i /Weblogic.

    Below is  the o/p my from my case.

                 Filesystem         iused     ifree     %iused     Mounted on
        /dev/md/dsk/d7     10752         0     100%     /Weblogic

  see from above that almost Inodes are consumed on this filesystem.

3. So How can we resolve this issue ? 
 a) Check if you’ve any unwanted files & hard links have been there on filesystem.If necessary cleanup files.especially if there is no cleanup,log files might filed up from so long. 
 b) Increase the Inodes on filesystem. 
    –> You can’t increase the inodes on filesystem without destroying the filesystem. So full backup required. 
    –> check how the filesystem was created using
           # mkfs -m /dev/md/dsk/d7
            mkfs -F ufs -o
            nsect=255,ntrack=16,bsize=8192,fragsize=1024,cgsize=26,free=1,rps=90,nbpi=xxxxxx,opt=t,apc=0,gap=0,nrpos=8,maxcontig=16
            /dev/md/dsk/d7 20481600

From the above output you need to look at nbpi ( Number of Bytes for Inode). This gets calculated automatically based on the disk size while doing newfs. If you need more Inodes. you need to reduce the size of this value which will increase the inodes available. Below are the default nbpi values
           
            Disk size                   Density ( Please read man newfs for more details)
            Less than 1GB             2048
            Less than 2GB             4096
            Less than 3GB             6144
            3GB to 1 Tbyte            8192

So to increase the inodes after full backup. run newfs -i nbpi=xxxxxx ( The lesser the value. More Inodes ). Once filesystem is created restore the data from backup.

April 26, 2011 Posted by | Solaris | 3 Comments

Installing Locale in Solaris 10.

Installing Japanese fonts/Locale in Solaris 10.
=======================================
1. Check what all locales you’ve installed using locale -a
2. localeadm -lt –> Check if you’ve Japanese there. If not you can directly install from DVD localeadm -a
3. localeadm -v -a ja -d /<DVD Mount Path/Solaris_10/Product>
4. localeadm -v -r ja –> This one removes the Japnese Packages ( Only Locale Related Packages).
5. set the LANG & LC_ALL variables then open gedit or appropriate program to check fonts.

Check if your installation supports Japanese Region ?
=====================================================

# localeadm -lt
You do not appear to have created a fresh config file since you began using this application.
If you have a set of Solaris install images available to you, it is recommended that you do so before proceeding.

Do you wish to create a new config file? [y/n]: y

Please select the option that was used to install Solaris

1.  CD installation/net installed CD images
2.  DVD installation/net installed combined image

Please enter your choice:
^C
The following regions are supported by localeadm:

—————–

Australasia (aua)
[ Australia, New Zealand ]

Central America (cam)
[ Costa Rica, Guatemala, Nicaragua, Panama, El Salvador ]

Central Europe (ceu)
[ Austria, Czech Republic, Germany, Hungary, Poland, Slovakia, Switzerland (German), Switzerland (French) ]

Eastern Europe (eeu)
[ Albania, Bosnia, Bulgaria, Estonia, Croatia, Kazakhstan, Lithuania, Latvia, Macedonia, Romania, Russia, Serbia, Slovenia, Turkey, Ukraine ]

Middle East (mea)
[ Saudi Arabia, Israel ]

Northern Africa (naf)
[ Egypt ]

North America (nam)
[ Canada (English), Canada (French), United States, Mexico ]

Northern Europe (neu)
[ Denmark, Finland, Iceland, Norway (Bokmal), Norway (Nyorsk),  Sweden ]

South America (sam)
[ Argentina, Bolivia, Brazil, Chile, Colombia, Ecuador, Paraguay, Peru, Uruguay, Venezuela ]

Southern Europe (seu)
[ Cyprus, Italy, Greece, Malta (English), Malta (Maltese), Portugal, Spain (Catalan), Spain (Spanish) ]

Western Europe (weu)
[France, Holland, Belgium (French), Belgium (Flemish), Ireland, England, Luxembourg (French), Luxembourg (German) ]

Japanese (ja)

Korean (korean)

Simplified Chinese (china)

Traditional Chinese (Hong Kong) (hongkong)

Traditional Chinese (taiwan)

Thai (th_th)

Hindi (hi_in)

Done.
#

Checking
=======================
# locale
LANG=C
LC_CTYPE=”C”
LC_NUMERIC=”C”
LC_TIME=”C”
LC_COLLATE=”C”
LC_MONETARY=”C”
LC_MESSAGES=”C”
LC_ALL=
# ls -ltr /var/adm/messages*
-rw-r–r–   1 root     root      350534 Feb 28 20:11 /var/adm/messages.2
-rw-r–r–   1 root     root      435091 Mar 28 23:05 /var/adm/messages.1
-rw-r–r–   1 root     root      124690 Apr 16 21:04 /var/adm/messages.0
-rw-r–r–   1 root     root       59680 Apr 22 02:59 /var/adm/messages

# export LANG=ja
# export LC_ALL=ja
# locale
LANG=ja
LC_CTYPE=”ja”
LC_NUMERIC=”ja”
LC_TIME=”ja”
LC_COLLATE=”ja”
LC_MONETARY=”ja”
LC_MESSAGES=”ja”
LC_ALL=ja

# ls -ltr /var/adm/messages*
-rw-r–r–   1 root     root      350534  2?????? 28??????  20:11 /var/adm/messages.2
-rw-r–r–   1 root     root      435091  3?????? 28??????  23:05 /var/adm/messages.1
-rw-r–r–   1 root     root      124690  4?????? 16??????  21:04 /var/adm/messages.0
-rw-r–r–   1 root     root       59680  4?????? 22??????  02:59 /var/adm/messages

List of packages gets installed by localeadm can be found at  “/usr/sadm/lib/localeadm/Locale_config_S10.txt”

April 22, 2011 Posted by | Solaris | | 1 Comment