Solved

How to create temporary swap on ZFS

Posted on 2010-09-24
5
2,183 Views
Last Modified: 2013-12-21
I make new installation of Solaris 10 with ZFS for Oracle 11 installation.
When Solaris 10 was with UFS I created temporary swap just by:
# mkfile 16g /var/newswap
# swap -a /var/newswap

ZFS doesn't accept this way: Invalid operation for this filesystem type.

Please advise
0
Comment
Question by:gbcbr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:Christopher Martinez
ID: 33754727
i thought it was   "zfs create -v 16 g ...." command followed by the "swap -a"
0
 

Author Comment

by:gbcbr
ID: 33754870
something wrong
# mkfile 16g /var/newswap
# swap -a zfs create -v 16g /var/newswap
Usage:  swap -l
        swap -s
        swap -d <file name> [low block]
        swap -a <file name> [low block] [nbr of blocks]
0
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
ID: 33754900
You need to create a zvol. See the zfs man page. Like this:

zfs create -V  16gb zpool/swapvol
swap -a /dev/zvol/dsk/zpool/swapvol
0
 

Author Comment

by:gbcbr
ID: 33754981
thanks a lot
very professionas answer
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 33762255
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question