My "swap" space seems to have vanished....

DB Freddog_de at yahoo.co.uk
Sat Mar 19 12:24:30 UTC 2011


On 03/18/2011 04:42 PM, users-request at lists.fedoraproject.org wrote:
> Subject:
> Re: My "swap" space seems to have vanished....
> From:
> "Michael D. Setzer II" <mikes at kuentos.guam.net>
> Date:
> Sat, 19 Mar 2011 01:42:33 +1000
>
> To:
> Martin Airs <martin at airs.me.uk>, users at lists.fedoraproject.org
>
>
> On 18 Mar 2011 at 15:34, Martin Airs wrote:
>
> From:	Martin Airs<martin at airs.me.uk>
> To:	users at lists.fedoraproject.org
> Subject:	Re: My "swap" space seems to have vanished....
> Date sent:	Fri, 18 Mar 2011 15:34:10 +0000
> Send reply to:	Martin Airs<martin at airs.me.uk>,
> 	Community support for Fedora users<users at lists.fedoraproject.org>
> 	<mailto:users-request at lists.fedoraproject.org?subject=unsubscribe>
> 	<mailto:users-request at lists.fedoraproject.org?subject=subscribe>
>
>> >  On Friday 18 Mar 2011 14:46:23 DB wrote:
>>> >  >     df
>>> >  >  Filesystem           1K-blocks      Used Available Use% Mounted on
>>> >  >  /dev/sda2             28833848   5518600  23022388  20% /
>>> >  >  tmpfs                  1899484      1068   1898416   1% /dev/shm
>>> >  >  /dev/sda1               474440     50462    399481  12% /boot
>>> >  >  /dev/sda3            288370940  26611056 247111416  10% /home
>>> >  >
>> >
> Your swap is part of the LVM partitions.

I don't have LVM partitions - at least, I never set any up!!!

> cat /proc/partitions
>
> On mine it shows
> major minor  #blocks  name
>
>     8        0  488386584 sda
>     8        1     204800 sda1
>     8        2   32696288 sda2
>     8        3  455482912 sda3
>   253        0   27123712 dm-0
>   253        1    5570560 dm-1
>
> In this case dm-1 is the swap partition.
>
> swapon -s shows the status of the swap.
>
> On my system.
> Filename		Type		Size	        Used	  Priority
> /dev/dm-1           partition	5570556	2156	     -1

Yes, mine is similar
  swapon -s
Filename                       Type            Size    Used    Priority
/dev/sdb5                    partition       2047996     0       -1

>
>
>
>
>> >  df -h on my system doesn't show swap either
>> >
>> >  [martin at desktop ~]$ df -h
>> >  Filesystem            Size  Used Avail Use% Mounted on
>> >  /dev/mapper/VolGroup-lv_root
>> >                          22G   20G  904M  96% /
>> >  tmpfs                1005M  3.3M 1001M   1% /dev/shm
>> >  /dev/sda1             194M   62M  123M  34% /boot
>> >  /dev/mapper/VolGroup-lv_home
>> >                          50G   38G  9.5G  80% /home
>> >  /dev/sdb1             112G   95G   18G  85% /media/disk
>> >
>>> >  >
>>> >  >  Dave
>>> >  >
>>> >  >  uname -ar
>>> >  >  Linux Fedora-Blue 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC
>>> >  >  2011 x86_64 x86_64 x86_64 GNU/Linux
>> >
>> >  however if i type free -m
>> >  [martin at desktop ~]$ free -m
>> >                total       used       free     shared    buffers     cached
>> >  Mem:          2008       1759        248          0        100        585
>> >  -/+ buffers/cache:       1073        934
>> >  Swap:         3967         16       3951
>> >
>> >  my swap is indeed there, does free show swap on your system??

Indeed:
free -m
             total       used       free     shared    buffers     cached
Mem:         3709       2013       1696          0        102       1139
-/+ buffers/cache:        770       2939
Swap:         1999          0       1999

>> >
>> >  Martin
>> >


Thanks all for the many suggestions!

Strangely, just after I sent my original mail, System Monitor suddenly 
decided, all on its own, to add the 2GB swap partition....???????  I
think I must have a Gremlin somewhere!

Anyway, things appear to be (back to) "normal"!

Thanks again

Dave


More information about the users mailing list