increase SWAP on ZFS file system

Tags
solaris

 
Thread Tools Search this Thread
# 1  
Old 10-04-2011
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

Code:
 # swap -l
  swapfile dev swaplo bloques libre
  /dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136
  # zfs set volsize=2G rpool/swap
  # env NOINUSE_CHECK=1 swap -a /dev/zvol/dsk/rpool/swap $((8+2097136))
  # swap -l
  swapfile dev swaplo bloques libre
  /dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136
  /dev/zvol/dsk/rpool/swap 256,2 2097152 2097152 2097152

# 2  
Old 10-04-2011
You need to put an entry in /etc/vfstab file.
Code:
#echo "/dev/zvol/dsk/rpool/swap -  -  swap  -  no   -" >> /etc/vfstab

Code:
#/usr/sbin/swap -a /dev/zvol/dsk/rpool/swap

This User Gave Thanks to h@foorsa.biz For This Post:
jim mcnamara (04-23-2013)
# 3  
Old 10-04-2011
i tried this 2 command and i got this result
Code:
-bash-3.00# echo "/dev/zvol/dsk/rpool/swap -  -  swap  -  no   -" >> /etc/vfstab
You have new mail in /usr/mail/root

this line as been add to /etc/vfstab
Code:
-bash-3.00# /usr/sbin/swap -a /dev/zvol/dsk/rpool/swap
/dev/zvol/dsk/rpool/swap is currently used by swap. Please see swap(1M).
-bash-3.00#

i think no need to make the second command because it is already done "is that correct or not "
# 4  
Old 10-04-2011
Quote:
Originally Posted by osmanux
i tried this 2 command and i got this result
[CODE]
Code:
-bash-3.00# /usr/sbin/swap -a /dev/zvol/dsk/rpool/swap
/dev/zvol/dsk/rpool/swap is currently used by swap. Please see swap(1M).
-bash-3.00#

i think no need to make the second command because it is already done "is that correct or not "
You have a new mail due to the newer vfstab entry just read your email.

Yes you are right no need to issue the second command.
Otherwise issue the following commands again
1- Remove swap sapce.
Code:
# swap -d /dev/zvol/dsk/rpool/swap

2- Make sure that the swap sapce you have configured doesn't exist.
Code:
# swap -l

3- Re add the swap sapce again.
Code:
#swap -a /dev/zvol/dsk/rpool/swap


Last edited by h@foorsa.biz; 10-04-2011 at 05:16 PM..
# 5  
Old 10-05-2011
try this code

Code:
#swap -a /dev/zvol/dsk/rpool/swap


|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
100% full file system - error when trying to increase BG_JrAdmin AIX 2 04-10-2015 08:46 PM
Procedure to increase file system Maddy123 Red Hat 6 08-01-2014 04:47 PM
Not able to increase ZFS file system on NGZ solaris_1977 Solaris 16 10-23-2013 01:39 AM
[Solved] Increase the file system size BPANDEY HP-UX 3 12-04-2012 03:57 AM
File system full, swap nikhil kasar Solaris 2 08-22-2012 05:10 AM
Not able to extend ZFS file system solaris_1977 Emergency UNIX and Linux Support 5 06-11-2012 02:33 AM
Patching on ZFS file-system solaris_1977 Solaris 6 10-13-2011 06:24 AM
Increase root file system size ... snchaudhari2 Red Hat 4 08-09-2011 03:52 AM
Swap size increase jegaraman Solaris 8 06-08-2011 12:20 PM
increase the size of file system younusdba AIX 2 10-05-2009 08:05 PM
Swap file system bluescreen UNIX for Advanced & Expert Users 1 05-12-2009 01:43 AM
zfs file system mehrdad68 UNIX for Dummies Questions & Answers 2 03-18-2009 06:46 PM
increase root file system size in solaris sriram.s Solaris 4 04-02-2007 04:28 AM
Increase size of /tmp swap File cmackin Solaris 2 06-01-2006 03:14 PM
Increase space in the solaris file system jung1975 UNIX for Dummies Questions & Answers 1 12-27-2001 10:17 AM