• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2304
  • Last Modified:

How to create temporary swap on ZFS

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
gbcbr
Asked:
gbcbr
1 Solution
 
Christopher MartinezCommented:
i thought it was   "zfs create -v 16 g ...." command followed by the "swap -a"
0
 
gbcbrAuthor Commented:
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
 
Brian UtterbackPrinciple Software EngineerCommented:
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
 
gbcbrAuthor Commented:
thanks a lot
very professionas answer
0
 
Joseph GanSystem AdminCommented:
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now