"How do I add extra ZFS swap in Solaris 11.3?"

Post #303028592 by feroccimx on Thursday 10th of January 2019 06:57:04 PM

How do I add extra ZFS swap in Solaris 11.3?


I have given 3 x 1 TB LUNs to add more swap space in a Solaris 11.3 OS

-bash-4.4# swap -l
swapfile                 dev            swaplo      blocks        free
/dev/zvol/dsk/rpool/swap 303,1              16     8388592     8388592
-bash-4.4# swap -s
total: 84780376k bytes allocated + 157031888k reserved = 241812264k used, 1495043920k available
-bash-4.4# zfs list | grep rpool/swap
rpool/swap                                           4.13G  33.1G  4.00G  -

Adding or Changing Swap Space in an Oracle Solaris ZFS Root Environment - Oracle Solaris 11.1 Administration: Devices and File Systems
Above Oracle Document states that you can expand your swap from rpool. However, there is not enough space in my rpool to do it.

Please your assistance as this is urgent matter.
Linux and UNIX

Linux is a family of open source Unix-like operating systems based on the Linux kernel. The Linux kernel is an operating system kernel first released by Linus Torvalds on 17 September 1991. Linux distributions include the Linux kernel, system software and libraries. Popular free open source Linux distributions include Debian, Fedora, and Ubuntu. Commercial Linux distributions include Red Hat Enterprise Linux and SUSE Linux Enterprise Server. Linux may be freely modified and redistributed. Anyone on the planet may create a Linux distribution for any purpose.
Unix (trademarked as the UNIX certification mark) is a very mature family of multitasking, multiuser computer operating systems that evolved from the original AT&T Unix. Unix development starting in the 1970s by legendary Bell Labs programmers Ken Thompson, Dennis Ritchie, and others. Unix was first targeted for the Bell System and AT&T licensed Unix to outside parties. In the 1970s time period, this lead to a variety of for-profit as well as not-for-profit Unix variants.
In the early days, this included the University of California, Berkeley (BSD), Microsoft (Xenix), IBM (AIX), and Sun Microsystems (Solaris). In the early 1990s, AT&T sold their Unix rights to Novell. In 1995 Novell sold their Unix business to the Santa Cruz Operation (SCO). The UNIX trademark was passed to The Open Group, a "neutral" industry consortium. The Open Group promoted the use of the UNIX trademark for certified operating systems that comply with the Single UNIX Specification (SUS). In 2014 Apple's macOS became the Unix version with the largest global install base and macOS remains the largest Unix-user base today.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.
Related Linux and UNIX Technical Support
How can I create a new swap location in ZFS?
I am running OpenSolaris v5.11 During installation, the installation created default ZFS filesystems, like the dump and swap locations. I want to change the blocksize of the /dump and /swap locations and make them ZFS volumes. The ZFS system is on a zpool called rpool I was able to do...... Solaris
increase SWAP on ZFS file system
Hi All, I am using this commands to dynamically increase ZFS swap space on Solaris my question is: 1- after i make these commands it will permanent or it will remove after restart 2- how to make it permanent # swap -l swapfile dev swaplo bloques libre /dev/zvol/dsk/rpool/swap...... Solaris
Add extra columns help
Hi Gurus, This below script adds a column extra to my flat file..But how can i add another column, Say if i just put mention an other column beside the first column..it does get generated but as one column only while IFS="" read r; do printf "dummy\t%s\n" "$r" done < xxx.txt > zzz.txt ...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
dual boot solaris/solaris zfs file system
Hi, I am running into a some problems creating a dual boot system of 2 solaris instances using ZFS file system and I was wondering if someone can help me out. First some back ground. I have been asked to change the file system of our server from UFS to ZFS. Currently we are using Solaris...... Solaris