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

Re: swap_device (swapctl)



On Fri, 3 Nov 2000, Tor Houghton wrote:

> Hello,
> 
> Just a quick question. How do I change the "swap_device" as seen
> with the swapctl command?
> 
> francine:torh {124} swapctl -l
> Device      512-blocks     Used    Avail Capacity  Priority
> swap_device        128      104       24    81%    0
> /dev/wd2b       524097        8   524089     0%    0
> Total           524225      112   524113     0%
> 
> As you can see, my swap_device is all but useless, so I thought I'd
> permanently change it to /dev/wd2b.
> 
> I've currently added this line to /etc/fstab, but if I could change
> the swap_device altogether it would be neat.
> 
> /dev/wd2b none swap sw 0 0


You can change the swap device which is automatically the 'b' label on
your root disk. To change the swap_device, you must edit your kernel
config. For the config line, use something like

config		bsd	swap on wd2b root on wd0b


or whatever your disks are.


				Eric


> 
> 
> Best regards,
> 
> Tor
> 
>