We help IT Professionals succeed at work.

# swap -l No swap devices configured

bkreynolds48 asked
Last Modified: 2013-12-27
I just installed Solaris 10 on a Sun T2000 and manually sliced the first drive.
I don't see any swap space defined though so am sure I missed a step.
I have 8 gig of ram in this machine.
/etc/vfstab has

# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no
/dev/dsk/c0t0d0s5       /dev/rdsk/c0t0d0s5      /var    ufs     1       no
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /export/home    ufs     2
yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0       19G   3.3G    15G    18%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   6.5G  1016K   6.5G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
                        19G   3.3G    15G    18%    /platform/sun4v/lib/libc_psr
                        19G   3.3G    15G    18%    /platform/sun4v/lib/sparcv9/
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c0t0d0s5       24G    81M    24G     1%    /var
swap                   6.5G     8K   6.5G     1%    /tmp
swap                   6.5G    40K   6.5G     1%    /var/run
/dev/dsk/c0t0d0s3       24G    24M    24G     1%    /export/home

I thought I should see 16 gig allocated to swap not 6.5
Why does swap -l say no swap devices configured?


Watch Question



During the installation, you have the option to partition the boot disk. In this step, you need to allocate a certain amount of space to a "swap" partition. The disk will then be partitioned to include a swap slice.

If you need to add a swap slice afterwards, you need a free partition on a disk that can be used for this purpose.

If e.g. the slice /dev/dsk/c1t0d0s4 is still free, you can add it as swap by adding this to the /etc/vfstab

/dev/dsk/c1t0d0s4 -      -      swap      -      no      -


I need to repartition the disk anyway so I can add a mirror database.
How much space should I add to the swap partition?  There is 8 gig of ram as I said.
When I look at my production T2000 it shows swap as 16gig.


Unless you have specific needs, it is common to choose 2 x RAM as swap.


Unless you have specific needs, it is common to choose 2 x RAM as swap.
This one is on us!
(Get your first solution completely free - no credit card required)


SO I will allocate 18 gig to swap in the partition table -right? Thanks


16GB, yes.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.