increase SWAP on ZFS file system


 
Thread Tools Search this Thread
Operating Systems Solaris increase SWAP on ZFS file system
# 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:
# 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

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

100% full file system - error when trying to increase

Hi, I came across a situation where I had to increase a filesystem that was 100% full and received this error: /tmp:chfs -a size=+5000M /tmp 0516-634 lquerypv: /tmp directory does not have enough space, delete some files and try again. 0516-788 extendlv: Unable to extend logical... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

2. Red Hat

Procedure to increase file system

Hi, How/what is the procedure to increase file system in linux server ? Regards, Maddy (6 Replies)
Discussion started by: Maddy123
6 Replies

3. Solaris

Not able to increase ZFS file system on NGZ

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... (16 Replies)
Discussion started by: solaris_1977
16 Replies

4. HP-UX

[Solved] Increase the file system size

Dear Friends, I would like to increase the size of a file system from 10GB to 15GB. System is runing on HP-UX 11.31. Please help in the matter. Regards, Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies

5. Red Hat

Increase root file system size ...

Hello Admins, I am running a redhat linux 5 on vmware workstation. I need to increase or add some more space to my root (/) partition. I don't have any LVM configured.. Please suggest. # df -kh Filesystem Size Used Avail Use% Mounted on /dev/sda2 3.8G 3.1G ... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

6. Solaris

Swap size increase

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 (8 Replies)
Discussion started by: jegaraman
8 Replies

7. AIX

increase the size of file system

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... (2 Replies)
Discussion started by: younusdba
2 Replies

8. UNIX for Advanced & Expert Users

Swap file system

This questions only concerns Solaris 10. Let's say I have swap configured like so in /etc/vfstab: /dev/dsk/c1t0d0s1 - - swap - no - /dev/dsk/c1t1d0s1 - - swap - no - /dev/md/dsk/d1 - - swap - no - ... (1 Reply)
Discussion started by: bluescreen
1 Replies

9. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

10. UNIX for Dummies Questions & Answers

Increase space in the solaris file system

How can I check how much space is left in the solaris file system? and how can I increase those space in the file system?. I am trying to install Oracle Database on Solaris 8.But, it keep giving me error message says that"There is not enough space on the volume you have specified". Thanks ... (1 Reply)
Discussion started by: jung1975
1 Replies
Login or Register to Ask a Question