swap problem

Hi Can you please help on my issue,we have sol 8,on our prod boxes when the servers are rebooting all the swap file systems are mounting,can you pl suggest any thing on this.ThanksMadhuSree
[224 byte] By [MadhuSree] at [2007-11-25 23:40:13]
# 1
Sorry in my previous thread there is a typo,all swap file systems are not mounting after reboot.Thanks in advancethxmadhusree
MadhuSree at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 2
Can you give us the output of more /etc/vfstab
michhood622 at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 3

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

fd-/dev/fd fd-no-

/proc-/procproc-no-

#

#

#dev/dsk/cxtxdxsx--swap-no-

#xxxxxxxx/ufs1nologging

#xxxxxxxx/varufs1nologging

#

#

/dev/md/dsk/dXX --swap-no-

/swapvol1--swap-no-

/dev/md/dsk/dXX /dev/md/rdsk/dXX /ufs1nologging

/dev/md/dsk/dXX /dev/md/rdsk/dXX/varufs1nologging

/dev/md/dsk/dXX0 --swap-no-

/dev/md/dsk/dXX0 --swap-no-

#

swap-/tmptmpfs-yes-

Thanks

MadhuSree

MadhuSree at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 4

swap -l

swapfile dev swaplo blocksfree

/dev/md/dsk/d1085,1016 42026720

/dev/md/dsk/d6085,6016 42026720

/dev/md/dsk/d7085,7016 420267216

/swapvol1 -16 65011696 52763808

is the swap -l output

swapvol1 is not mounting after reboot,hence after reboot we are seeing low swap problem,Pl advice

Thanks

Madhu

MadhuSree at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 5

Hi Madhu,

The /swapvol1 is a file, right? What are the permissions and file modes? Did you create the file with mkfile <size> swapvol1?

During boot the /sbin/swapadd script will add all entries in /etc/vfstab which have a 'swap' special entry. I've just tested the same config as you have and it works as expected:

$ swap -l

swapfile dev swaplo blocksfree

/dev/dsk/c0t0d0s1136,916 2101184 2101184

/Xenon/swap/hansolo-16 65011696 65011696

$ ls -l /Xenon/swap/hansolo

-rwT1 rootroot33285996544 Dec 23 14:53 /Xenon/swap/hansolo

Do you really need a 31 GB swap space? What kind of system are you running, how much physical memory does it have?

Regards,

Hans

hnijbacker at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 6
MadhuSree - Have you tried changing the "mount at boot" field for each swap file entry in the /etc/vfstab from "no" to "yes"?
Level3SA at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 7
If you have enough free swap, you might try:1) Remove the /swapvol1 partition from swap toverify the /etc/vfstab entry:swap -d /swapvol12) Test the vfstab entry: grep /swapvol1 /etc/vfstab | /sbin/swapaddswap -l
toddc051905 at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...
# 8

Assuming your vfstab entry is good (verify with grep /swapvol1 /etc/vfstab | /sbin/swapadd), then try running:

/etc/rc2.d/S73nfs.client start

This is the rc script that launches swapadd upon boot up

In some envoirnments, JASS/SST is used to comment out this service from starting.

Jag_London at 2007-7-5 18:48:04 > top of Java-index,General,Sys Admin Best Practices...