increase SWAP on ZFS file system


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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:
# 3  
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  
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 04:16 PM..
Login or Register to Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
Procedure to increase file system
Maddy123
Hi, How/what is the procedure to increase file system in linux server ? Regards, Maddy... Red Hat
6
Red Hat
Not able to increase ZFS file system on NGZ
solaris_1977
I have Solaris-10 server running ZFS file-system. ctdp04_vs03-pttmsp01 is one of the non global zone. I wanted to increase a /ttms/prod file-system of zone, which is actually /zone/ctdp04_vs03-pttmsp01/ttms/prod on global server. I have added a new disk of 9 GB, which is emcpower56a and now I can...... Solaris
16
Solaris
Swap size increase
jegaraman
Dear All, How to increase the swap size when physicall memory reaches 60 %. OR it can be only done after the physicall memory is full. Rgds Rj... Solaris
8
Solaris
increase the size of file system
younusdba
Hi all, we are usig aix 4.3 and i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then...... AIX
2
AIX
Increase size of /tmp swap File
cmackin
Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson... Solaris
2
Solaris