Since swap is also used as /tmp's backing store, you may not be able to delete the primary swap area on a running system. I would suggest first adding the bigger swap size that you need and deleting the old one.
-Sanjay ----- Original Message ----- From: [email protected] To: [email protected] Cc: [email protected] Sent: Sunday, April 4, 2010 9:26:46 AM GMT -07:00 US/Canada Mountain Subject: Re: [indiana-discuss] Grow swap on zpool? On 04/ 4/10 10:51 AM, Jennifer Pioch wrote: > How can I grow swap on a zpool in Opensolaris? > > I have: > > $ zfs list | grep -F swap > rpool/swap 816M 24.4G 112M - > > I want to extend this to 4G swap. How do I do that? Did you try # swap -d to delete this one and then create larger one? AFAIK that's the only way to change the size of an existing swap file. You could just add a new one, too (swap -a). swap -l will tell you what the system thinks the swap dataset is called. Make sure to update /etc/vfstab if you add rather than replace. Google for creating zfs swap if you aren't sure how to make a swap dataset. HTH -- Frank _______________________________________________ indiana-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/indiana-discuss _______________________________________________ indiana-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
