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

List:       evms-devel
Subject:    [Evms-devel] Re: deleting swap partition
From:       Steve Dobbelstein <steved () us ! ibm ! com>
Date:       2005-02-24 16:03:05
Message-ID: OFD9C9A3A4.6D7777A4-ON06256FB2.005703BE-06256FB2.00582C6F () us ! ibm ! com
[Download RAW message or body]





susmitha <sushmitha@comodo.com> wrote on 02/23/2005 09:41:44 PM:

> Hi Steve,

<snip>

> > 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 tested now also by creating hda8 and hda9 as volumes.
> For /dev/evms/hda8 Ext2/3 and /dev/evms/hda9 as Swap(swapon)
> Now I did what I told to you before.
> I tried to swapoff for /dev/evms/hda8 through Evms but not able to
> swapoff.
> Using linux swapoff I am able to swapoff for /dev/evms/hda8.
>
> In /proc/swaps after deleting hda9 it is like this
>
> [susmitha@fortocent susmitha]$ cat /proc/swaps
> Filename                                Type            Size    Used
> Priority
> /dev/hda3                               partition       570296  0
> -1
> /dev/evms/hda9\040(deleted)             partition       305192  0
> -25
>
>
> I gave command for swapoff as
>
> [root@fortocent root]# swapoff /dev/evms/hda8
>
> After doing swapoff using linux cli
>
> [susmitha@fortocent susmitha]$ cat /proc/swaps
> Filename                                Type            Size    Used
> Priority
> /dev/hda3                               partition       570296  0
>
>
> >
> > 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.
>
>
> Using linux cli I am able to swapoff even if /proc/swaps shows
> /dev/evms/hda9.
>
> After that I deleted /dev/evms/hda8 using Evms its working.

I'm not sure why running "swapoff /dev/evms/hda8" removes /dev/evms/hda9
from /proc/swaps.  It may have something to do with the distribution you
are using.  I'm running SuSE 9.0.  I'm also wondering why the volume is
listed in /proc/swaps as /dev/evms/hda9\040 with the trailing space.

If you want we can pursue the details of what exactly is happening on your
system.  Otherwise, I am willing to leave it at "when DOS renames
partitions it can cause unexpected results elsewhere in the system."  To
me, the idea that partitions can change names when they are in use is a
poor design and is asking for trouble.  It's no surprise that you get weird
behavior when that happens.

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