HI All,
Recently during oracle install I realized that I did not have enough swap space.
So I -
1. Created a swap file "swap_fille1" in /rpool using mkfile -
PHP Code:
# ls -ltr /rpool
total 10487121
drwxr-xr-x 3 root root 3 Dec 21 12:09 boot
drwxr-xr-x 2 root root 3 Dec 21 12:09 etc
-rw------T 1 root root 5368709120 Dec 29 13:38 swap_file1
2. Then I added that file to the /etc/vfstab file -
PHP Code:
# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/zvol/dsk/rpool/swap - - swap - no -
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
/rpool/swap_file1 - - swap - no -
3. Reboot .
But this did not help the swap space -
PHP Code:
# df -h
Filesystem size used avail capacity Mounted on
rpool/ROOT/s10x_u6wos_07b
146G 6.2G 133G 5% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.8G 360K 1.8G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
139G 6.2G 133G 5% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 1.8G 80K 1.8G 1% /tmp
swap 1.8G 28K 1.8G 1% /var/run
rpool/export 146G 19K 133G 1% /export
rpool/export/home 146G 24K 133G 1% /export/home
rpool 146G 5.0G 133G 4% /rpool
Then where did the 5GB space go? How can I use the other space to increase the swap space becuase I have couple of big s/w installation pending.
current swap space info -
PHP Code:
# /usr/sbin/swap -s
total: 295428k bytes allocated + 83004k reserved = 378432k used, 1594308k available
# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,2 8 2052088 2052088
I will appreciate any help.
Thanks
Sumeet