Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

swap space not mounting

hi there

I just noticed this morning that the swap space didn't mount.

I got this when i was forced to reboot last night because of what might have been an emergancy shutdown.

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda7               494143    104008    364621  22% /
/dev/hda3               153727     56351     89438  39% /var/log
/dev/hda5               109802     57683     46450  55% /var/chroot-smtp
/dev/hda6                51237         6     48586   0% /var/recovery
/dev/hda8               274514      8153    252187   3% /var/chroot-squid
/dev/hda9               292828         2    277707   0% /var/chroot-report
none                    155464         0    155464   0% /var/shm

and here are the mrtg png this morning
 http://www.planetorange.com/wierd.html 

I have rebooted and swap (/dev/hda2 according to /etc/fstab) is still not mounted

what would cause this?

Emma ^..^


This thread was automatically locked due to age.
Parents
  • strange. try mount -a on the console and see if you get an error message.


    /tom
  • hi tom

    here is the output of mount -v -a

    mount: /dev/hda3 already mounted on /var/log
    mount: /dev/hda5 already mounted on /var/chroot-smtp
    mount: /dev/hda6 already mounted on /var/recovery
    mount: /dev/hda8 already mounted on /var/chroot-squid
    mount: /dev/hda9 already mounted on /var/chroot-report
    mount: none already mounted on /var/shm
    mount: devpts already mounted on /dev/pts
    mount: proc already mounted

    any clues?

    Emma ^..^
  • Hi all,

    mounting swap space .... ????
    You cant mount swap space, never!

    Please try cat /proc/meminfo and everything becomes good :-)
  • still no swap space after a few reboots.

    Anyone else seen this problem?

    thanks

    Emma ^..^
  • sorry, brain fart.

    what I meant is swapon -a, not mount -a  

    try this:



    /tom
  • here is swapon -a
    swapon: /dev/hda2: Device or resource busy

    but it's not  [:(]

    df -k gives

    /dev/hda7               494143    104009    364620  22% /
    /dev/hda3               153727     16705    129084  11% /var/log
    /dev/hda5               109802     49925     54208  48% /var/chroot-smtp
    /dev/hda6                51237         6     48586   0% /var/recovery
    /dev/hda8               274514      8153    252187   3% /var/chroot-squid
    /dev/hda9               292828         2    277707   0% /var/chroot-report
    none                    172092         0    172092   0% /var/shm

    here is output of cat /proc/meminfo


            total:    used:    free:  shared: buffers:  cached:
    Mem:  128233472 115998720 12234752        0 32382976 56553472
    Swap: 131600384        0 131600384
    MemTotal:       125228 kB
    MemFree:         11948 kB
    MemShared:           0 kB
    Buffers:         31624 kB
    Cached:          55228 kB
    Active:          32688 kB
    Inact_dirty:     52712 kB
    Inact_clean:      1452 kB
    Inact_target:       16 kB
    HighTotal:           0 kB
    HighFree:            0 kB
    LowTotal:       125228 kB
    LowFree:         11948 kB
    SwapTotal:      128516 kB
    SwapFree:       128516 kB

    thanks

    Emma ^..^
Reply
  • here is swapon -a
    swapon: /dev/hda2: Device or resource busy

    but it's not  [:(]

    df -k gives

    /dev/hda7               494143    104009    364620  22% /
    /dev/hda3               153727     16705    129084  11% /var/log
    /dev/hda5               109802     49925     54208  48% /var/chroot-smtp
    /dev/hda6                51237         6     48586   0% /var/recovery
    /dev/hda8               274514      8153    252187   3% /var/chroot-squid
    /dev/hda9               292828         2    277707   0% /var/chroot-report
    none                    172092         0    172092   0% /var/shm

    here is output of cat /proc/meminfo


            total:    used:    free:  shared: buffers:  cached:
    Mem:  128233472 115998720 12234752        0 32382976 56553472
    Swap: 131600384        0 131600384
    MemTotal:       125228 kB
    MemFree:         11948 kB
    MemShared:           0 kB
    Buffers:         31624 kB
    Cached:          55228 kB
    Active:          32688 kB
    Inact_dirty:     52712 kB
    Inact_clean:      1452 kB
    Inact_target:       16 kB
    HighTotal:           0 kB
    HighFree:            0 kB
    LowTotal:       125228 kB
    LowFree:         11948 kB
    SwapTotal:      128516 kB
    SwapFree:       128516 kB

    thanks

    Emma ^..^
Children
  • Hi Emma,

     
    quote:
     
    here is output of cat /proc/meminfo
    total:    used:    free:  shared: buffers:  cached:
    Mem:  128233472 115998720 12234752        0 32382976 56553472
    Swap: 131600384        0 131600384 


    This means that you have 128 Megs of Swap, 0 bytes are used, so your ASL has the full 128 Megs free to use.

    >> Swap space is never mounted!