?
Solved

How to create temporary swap on ZFS

Posted on 2010-09-24
5
Medium Priority
?
2,227 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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