Hi Guys,<br><br>Im using check_swap to monitor swap usage on a solaris machine, however its reporting back<br><br>SWAP WARNING - 0% free (0 MB out of 1024 MB) <br><br>Thing is, the box has 4GB of swap, and not 1GB!<br><br>
from top<br><br>Memory: 4.0G real, 128M free, 3.3G swap in use, 801M swap free<br><br>db5# swap -l<br>swapfile             dev  swaplo blocks   free<br>/dev/md/dsk/d20     85,20     16 2097392      0<br>db5# swap -s<br>total: 3431360k bytes allocated + 34488k reserved = 3465848k used, 820608k available
<br><br>And d20 is made up of a mirror as follows<br><br>db5# metastat d20<br>d20: Mirror<br>    Submirror 0: d21<br>      State: Okay<br>    Submirror 1: d22<br>      State: Okay<br>    Pass: 1<br>    Read option: roundrobin (default)
<br>    Write option: parallel (default)<br>    Size: 2097414 blocks<br><br>d21: Submirror of d20<br>    State: Okay<br>    Size: 2097414 blocks<br>    Stripe 0:<br>        Device              Start Block  Dbase State        Hot Spare
<br>        c1t0d0s1                   0     No    Okay<br><br><br>d22: Submirror of d20<br>    State: Okay<br>    Size: 2097414 blocks<br>    Stripe 0:<br>        Device              Start Block  Dbase State        Hot Spare
<br>        c1t1d0s1                   0     No    Okay<br><br>Anyone seen this before or got any ideas where to start looking?  Certainly looks like the code for check_swap isnt calculating the total correctly although im not a coder so a bit stuck as to where to look ;-)
<br><br>Cheers for any help.<br><br>Ben<br clear="all"><br>-- <br>"A Scientist will earn a living by taking a really difficult problem and spends many years solving it, an engineer earns a living by finding really difficult problems and side stepping them"