Solved

How to create temporary swap on ZFS

Posted on 2010-09-24
5
2,016 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now