Martin,

Thanks a lot!  Yeah, this did the trick.

One more question, do I have to add the below line to
/etc/vfstab? Shouldn't "swap -a" do that automatically?

Tamer

Martin Bochnig wrote:
> ZFS file systems cannot be used for swap files.
>
>     # cd /zpool1
>     # mkfile 10g swapfile
>     # swap -a /zpool1/swapfile
>     "/zpool1/swapfile" may contain holes - can't swap on it.
>
> You can, however, use zvols to add swap space onto a ZFS pool:
>
>     #
>     # Add swap partition in the /export/home zfs partition
>     #
>     echo "adding zfs swap"
>     if [ ! -L /dev/zvol/dsk/export/swap ]
>     then
>            echo "creating swap area"
>            zfs create -V 1gb export/swap
>     fi
>     echo "/dev/zvol/dsk/export/swap -  -  swap  -  no   -" >> /etc/vfstab
>     /usr/sbin/swap -a /dev/zvol/dsk/export/swap
>
>
> %martin
> http://visgetidentifier.blogspot.com/
>
> On 12/16/08, Tamer Embaby <t...@tsemba.org> wrote:
>   
>> Hello all,
>>
>> I have a Solaris 10 U5 server with 3 partitions:
>>
>> 1- UFS for /
>> 2- swap for swap space
>> 3- the rest is used as ZFS pool (/zfs_pool)
>>
>> Now I need to add more more swap space using "swap -a <file>"
>> and I don't have enough space on /, can create this file on
>> the ZFS pool and then add it to the swap space?
>>
>> For instance:
>>
>> # mkfile 4g /zfs_pool/some_zfs_fs/swap_002
>> # swap -a /zfs_pool/some_zfs_fs/swap_002
>>
>> Is this supported?  Will it work?
>>
>> Zpool verison: 4
>> ZFS version: N/A
>>
>> Thanks,
>> Tamer
>>
>> _______________________________________________
>> opensolaris-discuss mailing list
>> opensolaris-discuss@opensolaris.org
>>
>>     
>
>   

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to