Why I Love Linux part 001
When I set up my new FC5 installation it allowed me to create a swap
partition on my LVM, but the installer didn't have the option to make it
stripe across the two drives. It's a trivial thing, I know: the server
has 4GB of SDRAM, so it's not really likely to need a large bunch of fast
swap space. But I could play with it, so I did.
And the thing I love about Linux is that you have total control. You
want to turn off swapping? swapoff -a. There it is, gone,
and the system is still mabulating away happily. Delete the old
swap partition? lvremove /dev/mainvg/swaplv. Create the
new swap partition? lvcreate -i 2 -I 64 -L 4G -n swaplv mainvg
to create a 4GB partition striped across the two disks. After a bit of
mental prodding I remembered I have to do mkswap
/dev/mainvg/swaplv to make the partition look like a swap device,
and then swapon -a Just Works. There you go, 4GB of new
improved faster swap space. No reboots, no special utilities, no
"what's this C:\win386.swp file?". Easy.
posted at: 12:52 | path: /tech/fedora | permanent link to this entry
All posts licensed under the CC-BY-NC license. Author Paul Wayper.