|
|
Question : Permanent Swap File is not permanment!
|
|
hello Expert: I added swap file using commands below: 1.cd /data2;mkfile 200000m tmpfile 2.swap -a /data2/tmpfile 3.vi /etc/vfstab adding " /data2/tmpfile/ - - swap - no -" 4.swap -l That's show "swapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 32,1 16 8392048 8392048 /data2/tmpfile - 16 40959984 40959984" 5.swap -s That 's show "total: 647304k bytes allocated + 138112k reserved = 785416k used, 26810480k available" But when reboot the system,run "df -k",the result is "swap 6247440 16 6247424 1% /var/run swap 6262976 15552 6247424 1% /tmp" Why? Thank your help. lk235 24 Mon,2004
|
Answer : Permanent Swap File is not permanment!
|
|
After you reboot , can you do:
swap -a /data2/tmpfile
To reactive the addon swap?
You OS patch level is low, consider to to apply the latest Solaris 8 Recommended Patch Cluster.
PS: I can see the problem with your /var/adm/message file. If you can manually run "swap -a /data2/tmpfile" to reative the addon swap. the work around is to use a startup script to do the job, Here' s the one:
#!/sbin/sh # script name: S99swap, put in /etc/rc2.d
/usr/sbin/swap -a /data2/tmpfile
exit #End of script
If you use the about script, please remember to comment out the addon swap from /etc/vfstab file.
You can try to apply the latest patches first, if the patches can fix the problem, you can forget about the workaround, if not use the about script.
|
|
|
|
|