Increase /tmp file system size dynamically in Solaris zone


 
Thread Tools Search this Thread
Operating Systems Solaris Increase /tmp file system size dynamically in Solaris zone
# 1  
Old 04-02-2018
Increase /tmp file system size dynamically in Solaris zone

Hi

Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone

HTML Code:
# df -h
Filesystem             size   used  avail capacity  Mounted on
zones/zone1             11G   1.0G  10.0G    10%    /
/dev                    11G   1.0G  10.0G    10%    /dev
/lib                    45G    13G    32G    30%    /lib
/platform               45G    13G    32G    30%    /platform
/sbin                   45G    13G    32G    30%    /sbin
/usr                    45G    13G    32G    30%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                   2.0G   186M   1.8G    10%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
                        45G    13G    32G    30%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   512M    32K   512M     1%    /tmp
swap                   2.0G   186M   1.8G    10%    /var/run
# 
#
# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
/proc           -               /proc           proc    -       no      -
ctfs            -       /system/contract        ctfs    -       no      -
objfs           -       /system/object  objfs   -       no      -
sharefs         -       /etc/dfs/sharetab       sharefs -       no      -
fd              -               /dev/fd         fd      -       no      -
swap            -               /tmp            tmpfs   -       yes     size=512m

#
# 2  
Old 04-03-2018
What is your Solaris release ?

Can you provide output of following :
zonecfg -z <your_zone> info

Depending on your configuration and available memory on the system, same could be achieved using prctl command.

It also looks like the size in enforced inside zone in /etc/vfstab
Code:
swap            -               /tmp            tmpfs   -       yes     size=512m

I'm not sure there is a way without reboot of the zone to increase that value, if configured in above manner.

Keep in mind if you are installing Oracle software, there are variables TMP and TMPDIR which can point to any directory having more space, for install to work.

Regards
Peasant.
# 3  
Old 04-03-2018
Hi Peasant

Thanks for the input.

Please find below output:

Code:
bash-3.2# zonecfg -z zone1 info
zonename: zone1
zonepath: /zones/zone1
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
net:
        address: 192.168.11.71
        physical: e1000g0
        defrouter not specified
capped-memory:
        physical: 3G
        [swap: 2G]
        [locked: 2G]
rctl:
        name: zone.max-swap
        value: (priv=privileged,limit=2147483648,action=deny)
rctl:
        name: zone.max-locked-memory
        value: (priv=privileged,limit=2147483648,action=deny)
bash-3.2#
bash-3.2# uname -a
SunOS sun 5.10 Generic_150401-30 i86pc i386 i86pc
bash-3.2#

Yes I know that changing the value in vfstab from 512 to 1024 and reboot of zone will solve the issue. Here I am doing it in my test VM as we got this request once in every month. Please let us know how can we do it from prctl ( here we want to limit the use of /tmp mean swap) command and also let us know how to do it through TMP and TMPDIR if we get the request for Oracle Database Software from DB team

Regards
# 4  
Old 04-03-2018
Unfortunately you cannot do it live with vfstab entry.
The zone currently has 3 GB memory and 2 GB swap, with /tmp limited via vfstab entry inside the zone to 512 MB.

Otherwise (if no limit is imposed in vfstab), prctl / rctladm commands can be used against zone.max-swap during runtime.

This will increase it during runtime, but you still need to add using zonecfg so it is set during next reboot.
Since you will need to reboot, best to do it via zonecfg exclusively.

As for Oracle DB install, just issue export TMP=/some/path and export TMPDIR=/some/path where /some/path is any location on the system which has at least 1 GB of free space, following by installer run in the same shell session.

Regards
Peasant.
# 5  
Old 04-03-2018
thanks for your valuable input Peasant

I have Question that is setting TMP and TMPDIR variable as a Oracle user with some path on which they have access so that when oracle installer software will run it will use that path for temporary files within same shell. After installation complete unset these variable .

I know how to use prctl command . Could you let me know rctladm command usage for dynamic changes.

Further change done by prctl or rctladm command is not permanent and will gone after reboot till we add those change through zonecfg command.
# 6  
Old 04-04-2018
Yep, only current shell session will use those variables.
But be advised, oracle software will require some /tmp space to function properly.
Some being written in software documentation, being requirements for that software.

As for prctl and other commands, one should exercise in virtual environment, due to those commands being (mostly) universal on all solaris architectures (x86 or sparc).

No post will replace experience which a virtual solaris instance can provide on laptop / pc using one of many virtualization techs present.

Regards
Peasant.
These 2 Users Gave Thanks to Peasant For This Post:
# 7  
Old 04-04-2018
This is a wonderful concept:
Quote:
No post will replace experience which a virtual solaris instance can provide on laptop / pc using one of many virtualization techs present.
It means create a toy system, a sandbox - a system you can play with and not cause damage.
or heartburn or for anybody.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

[Solved] Increase the file system size

Dear Friends, I would like to increase the size of a file system from 10GB to 15GB. System is runing on HP-UX 11.31. Please help in the matter. Regards, Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies

2. Solaris

How to increase jvm size for solaris 10 (sparc) operating system

Hi, I have solaris 10 (sparc) operating system machine on which I have installed supported weblogic 10.3. It was installed properly. As we know weblogic uses jvm to run and uses a part of jvm memory. But I am facing one problem in which JVM is getting crashed again and again resulting my... (2 Replies)
Discussion started by: neeraj.tati
2 Replies

3. Red Hat

Increase root file system size ...

Hello Admins, I am running a redhat linux 5 on vmware workstation. I need to increase or add some more space to my root (/) partition. I don't have any LVM configured.. Please suggest. # df -kh Filesystem Size Used Avail Use% Mounted on /dev/sda2 3.8G 3.1G ... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

4. Solaris

how to increase file size in solaris 10 os

hi, let me know how to increase file size in solaris 10 OS (4 Replies)
Discussion started by: meet2muneer
4 Replies

5. Solaris

Increase /tmp size temporarily

Hi all system Solaris 10 10/09 s10x_u8wos_08a X86 ufs file system I would like to install SunStudio. After the gui comes up it shows that i need to add swap space of at least 900m. the command swap-s shows 880m free. My question is can you temporarily increase swap by 1 or 2... (3 Replies)
Discussion started by: kc2dws
3 Replies

6. AIX

increase the size of file system

Hi all, we are usig aix 4.3 and i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then... (2 Replies)
Discussion started by: younusdba
2 Replies

7. Solaris

increase root file system size in solaris

Hi frnz, Need an urgent help... I have installed solaris 8 in a sunblade workstation with 136GB hdd. While installation it has taken a default filesystem size as 1.37GB for root. AFtr completing the installation i have extended the root partition to 130GB. But still df output shows... (4 Replies)
Discussion started by: sriram.s
4 Replies

8. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

9. UNIX for Dummies Questions & Answers

increase size of /tmp

My /tmp is full, and the oracle installation is crashing. How can I increase the size of /tmp, even though I have allocated all the available disk space to other partitions? (2 Replies)
Discussion started by: pkappaz
2 Replies

10. UNIX for Dummies Questions & Answers

Increase space in the solaris file system

How can I check how much space is left in the solaris file system? and how can I increase those space in the file system?. I am trying to install Oracle Database on Solaris 8.But, it keep giving me error message says that"There is not enough space on the volume you have specified". Thanks ... (1 Reply)
Discussion started by: jung1975
1 Replies
Login or Register to Ask a Question