On 23/02/2011 19:34, Bill Shannon wrote:
Is there an easy way to add more swap space to a system that's using
zfs for
swap space? I tried mkfile and swap -a but that doesn't work.
This one I can answer, because I've just been through it. This worked
for me
> swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 256,1 16 67108848 25095728
> calc 67108848+16 # blocks + swaplo
67108864
> zfs set volsize=64G rpool/swap
> zfs set refreserv=64G rpool/swap
> env NOINUSE_CHECK=1 swap -a /dev/zvol/dsk/rpool/swap 67108864 #
blocks + swaplo from swap -l
> swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 256,1 16 67108848 25095728
/dev/zvol/dsk/rpool/swap 256,1 67108864 67108864 67108864
> swap -s
total: 33592920k bytes allocated + 246624k reserved = 33839544k used,
47414296k available
>
Rob
--
E-Mail: rob.mcma...@warwick.ac.uk PHONE: +44 24 7652 3037
Rob McMahon, IT Services, Warwick University, Coventry, CV4 7AL, England
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org