How to add swap space in solaris 10

This entry was posted in Unix and tagged on June 17, 2012, by

ADDING SWAP SPACE

As system configuration changes and new packages are install, we might need to add more swap space. In order to add swap space we use mkfile and swap commands in UFS root enviornment

First we need to make swap file and then we need to add into  UFS root Enviornment

1. Make swap file

# cd /

# mkdir data

# cd data

# mkfile 1028M swapfile

This will create 1028 M swap file

2. Next step is to activate the swap file

# swap -a /data/swapfile

3 . Verify with below command is it added

# swap -l /data/swapfile

4. To bring it on boot edit the swap file in /etc/vfsatb

# vi /etc/vfstab

/data/swapfile   -      -       swap     -     no     -

You have done adding with swap space.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.