Solved

How to create temporary swap on ZFS

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
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.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
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

895 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

15 Experts available now in Live!

Get 1:1 Help Now