Moving Swap file
Tom H
tomh0665 at gmail.com
Tue Mar 15 15:28:37 UTC 2011
On Tue, Mar 15, 2011 at 9:00 AM, Andy Graybeal
<andy.graybeal at casanueva.com> wrote:
>
> I'd like to move our swap file onto our RAID array.
>
> This is my fstab:
>
> proc /proc proc nodev,noexec,nosuid 0 0
> /dev/mapper/buddleia_vg-root_lv / ext4
> relatime,errors=remount-ro 0 1
> /dev/mapper/data_vg-home_lv /home ext4 relatime 0 2
> /dev/mapper/data_vg-srv_lv /srv ext4 acl,relatime 0 2
> /dev/mapper/buddleia_vg-swap_lv none swap sw 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
> /dev/sdf1 /media/maxtor ntfs-3g rw 0 0
>
> /srv is where all our data lives.
>
> Should I make a swap file? I'm reading this:
> https://help.ubuntu.com/community/SwapFaq
>
> It looks like making a swap partition would be best, but I'm afraid to mess
> around with partitions because I'm afraid of messing up. I'd rather do this
> when I have some downtime. Maybe re-do the whole partitions scheme.
>
> Can I simply follow the SwapFaq instructions for making a swapfile and
> comment out my current swap partition in fstab?
IIUC, you want to move swap_lv from buddleia_vg to data_vg and leave
root_lv on buddleia_vg.
You're using LVM so it's easy to move swap to data_vg (especially
since there'll be no data to move) if all the PEs on the PV(s) of
data_vg aren't yet allocated. If they are, it's do-able but more
complicated.
(You want swap to be on a RAID volume but not "/"!)
More information about the ubuntu-users
mailing list