[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    Re: [Evms-devel] deleting swap partition
From:       Steve Dobbelstein <steved () us ! ibm ! com>
Date:       2005-02-23 16:30:10
Message-ID: OF90A2635C.2528C39E-ON06256FB1.00585CFF-06256FB1.005AA764 () us ! ibm ! com
[Download RAW message or body]





susmitha <sushmitha@comodo.com> wrote on 02/23/2005 05:17:48 AM:

> Hi,

Hi, Susmitha.

> I deleted volume and segment(hda8) which is before
> Swap partition (hda9).Swap is on.
> Now that Swap partition name was changed to /dev/evms/hda8.
> Because of changing name into /dev/evms/hda8 mountpoint "swap" is not
> showing for /dev/evms/hda8 which is actually a Swapon partition.
>
> While doing swapoff for Swap partition(/dev/evms/hda8) I got
>
> EVMS: Task:swapoff,/dev/evms/hda8
> The task specified either does not exist or is invalid at this time.
>
> Using Evms I am not able to do swapoff.

This is a variation on the questions you had earlier about EVMS not finding
volume mount points after DOS changes the names of segments.  The same
thing happens when EVMS tries to determine if a volume is mounted as swap
after DOS has renamed the segments.

As you know, you use swapon and swapoff, rather than mount and unmount, to
activate swap volumes.  Similarly, you check /proc/swaps instead of
/etc/mtab to see which swap volumes are activated.

If you look over the discussion in http://sourceforge.net/mail
archive/forum.php?thread_id=6208199&forum_id=2003 and substitute "mount"
with "swapon", "unmount" with "swapoff", and "/etc/mtab" with "/proc/swaps"
you will see that this is essentially the same problem, just with the
different commands and files that are used for swap volumes.

> If I perform swapoff on linux cli it is working.

What volume did you give to the swapoff command?  Giving it
"/dev/evms/hda8" should have failed since /proc/swaps would have had
/dev/evms/hda9 listed as the volume that was mounted as swap.

I ran a similar test on my system.  I created volume /dev/evms/hdd9, put
the swap file system on it, and used the GUI to do the swap on.  Then I
deleted segment hdd8.  Volume /dev/evms/hdd9 became /dev/evms/hdd8.
/proc/swaps lists /dev/evms/hdd9 but also lists it as "(deleted)".
"swapoff /dev/evms/hdd9" fails with "swapoff: /dev/evms/hdd9: No such file
or directory".  "swapoff /dev/evms/hdd8" fails with "swapoff:
/dev/evms/hdd8: Invalid argument".  I'm curious what you ran that worked.

> After that I am able to delete volume and segment of hda8 in Evms.
>
> Can any one please clarify why Evms is not able to swapoff on hda8?

As described above, EVMS cannot run swapoff on /dev/evms/hda8 because it
doesn't find /dev/evms/hda8 in /proc/swaps, so it thinks it is not mounted
as swap.

Hope this helps.

Steve D.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic