[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] swap lv

Mark Phillips writes:
> Holger Rauch [Holger Rauch heitec de] wrote:
> > Is it possible to have only one swap partition that resides on an LV? If
> > so, how can this be achieved? Are swap LVs resizable?
> As for resizing a swap partition.  What I would do is as follows.
> First unmount your swap partition so that you are not using it
> anymore.  Then delete the partition.  Then create it again, making it
> a different size.  Then run mkswap again and mount it again.

Actually, it is probably better to make a new swap LV, activate it, and
then deactivate the old one (assuming you have enough disk space to do
so).  Otherwise, you may run out of memory if you don't have a swap

The other alternative is to simply have 2 or more swap partitions.  If
they are created with equal priority, then they will both be used.  There
is no problem with having multiple swap partitions.

Cheers, Andreas
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]