Re: [OmniOS-discuss] move dump and swap to other pool

2014-05-10 Thread Johan Kragsterman

Hi!



-Dan McDonald dan...@omniti.com skrev: -
Till: Johan Kragsterman johan.kragster...@capvert.se
Från: Dan McDonald dan...@omniti.com
Datum: 2014-05-08 16:37
Kopia: OmniOS-discuss@lists.omniti.com omnios-discuss@lists.omniti.com
Ärende: Re: [OmniOS-discuss] move dump and swap to other pool

On May 8, 2014, at 4:30 AM, Johan Kragsterman johan.kragster...@capvert.se 
wrote:

 
 Hi!
 
 
 I got a relatively small(20 GB) SLC SSD as rpool, and I would like to move 
 the dump and swap devices to another pool. ATM the pkg update process isn't 
 possible, because I got too little space left on the rpool.
 
 Can someone give me some advices here, how I would do this in the best way?







About dump:  Unless you have r151008 or later, you can only use a zvol on a 
mirror or single-disk pool.  Having said that:

zfs create -V size newpool/dump
dumpadm -d /dev/zvol/newpool/dump

And for swap (which should be good regardless what newpool is...):

zfs create -V size newpool/swap
swap -a /dev/zvol/newpool/swap
swap -d /dev/zvol/oldpool/swap








This all worked fine, but swap -a /dev/zvol/newpool/swap doesn't persist 
across reboots...I checked the swap(1M), but can't find anything that suggest 
how to handle that.

Any advices?

Regards Johan







Hope this helps,
Dan




___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] move dump and swap to other pool

2014-05-10 Thread Jim Klimov
10 мая 2014 г. 11:45:02 CEST, Johan Kragsterman johan.kragster...@capvert.se 
пишет:

Hi!



-Dan McDonald dan...@omniti.com skrev: -
Till: Johan Kragsterman johan.kragster...@capvert.se
Från: Dan McDonald dan...@omniti.com
Datum: 2014-05-08 16:37
Kopia: OmniOS-discuss@lists.omniti.com
omnios-discuss@lists.omniti.com
Ärende: Re: [OmniOS-discuss] move dump and swap to other pool

On May 8, 2014, at 4:30 AM, Johan Kragsterman
johan.kragster...@capvert.se wrote:

 
 Hi!
 
 
 I got a relatively small(20 GB) SLC SSD as rpool, and I would like to
move the dump and swap devices to another pool. ATM the pkg update
process isn't possible, because I got too little space left on the
rpool.
 
 Can someone give me some advices here, how I would do this in the
best way?







About dump:  Unless you have r151008 or later, you can only use a zvol
on a mirror or single-disk pool.  Having said that:

zfs create -V size newpool/dump
dumpadm -d /dev/zvol/newpool/dump

And for swap (which should be good regardless what newpool is...):

zfs create -V size newpool/swap
swap -a /dev/zvol/newpool/swap
swap -d /dev/zvol/oldpool/swap








This all worked fine, but swap -a /dev/zvol/newpool/swap doesn't
persist across reboots...I checked the swap(1M), but can't find
anything that suggest how to handle that.

Any advices?

Regards Johan







Hope this helps,
Dan




___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss

Fix up /etc/vfstab
--
Typos courtesy of K-9 Mail on my Samsung Android
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


[OmniOS-discuss] move dump and swap to other pool

2014-05-08 Thread Johan Kragsterman

Hi!


I got a relatively small(20 GB) SLC SSD as rpool, and I would like to move the 
dump and swap devices to another pool. ATM the pkg update process isn't 
possible, because I got too little space left on the rpool.

Can someone give me some advices here, how I would do this in the best way?


Best regards from/Med vänliga hälsningar från

Johan Kragsterman

Capvert

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] move dump and swap to other pool

2014-05-08 Thread Dan McDonald

On May 8, 2014, at 4:30 AM, Johan Kragsterman johan.kragster...@capvert.se 
wrote:

 
 Hi!
 
 
 I got a relatively small(20 GB) SLC SSD as rpool, and I would like to move 
 the dump and swap devices to another pool. ATM the pkg update process isn't 
 possible, because I got too little space left on the rpool.
 
 Can someone give me some advices here, how I would do this in the best way?

About dump:  Unless you have r151008 or later, you can only use a zvol on a 
mirror or single-disk pool.  Having said that:

zfs create -V size newpool/dump
dumpadm -d /dev/zvol/newpool/dump

And for swap (which should be good regardless what newpool is...):

zfs create -V size newpool/swap
swap -a /dev/zvol/newpool/swap
swap -d /dev/zvol/oldpool/swap

Hope this helps,
Dan

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] move dump and swap to other pool

2014-05-08 Thread Johan Kragsterman

Hi!


-Dan McDonald dan...@omniti.com skrev: -
Till: Johan Kragsterman johan.kragster...@capvert.se
Från: Dan McDonald dan...@omniti.com
Datum: 2014-05-08 16:37
Kopia: OmniOS-discuss@lists.omniti.com omnios-discuss@lists.omniti.com
Ärende: Re: [OmniOS-discuss] move dump and swap to other pool

On May 8, 2014, at 4:30 AM, Johan Kragsterman johan.kragster...@capvert.se 
wrote:

 
 Hi!
 
 
 I got a relatively small(20 GB) SLC SSD as rpool, and I would like to move 
 the dump and swap devices to another pool. ATM the pkg update process isn't 
 possible, because I got too little space left on the rpool.
 
 Can someone give me some advices here, how I would do this in the best way?

About dump:  Unless you have r151008 or later, you can only use a zvol on a 
mirror or single-disk pool.  Having said that:

zfs create -V size newpool/dump
dumpadm -d /dev/zvol/newpool/dump

And for swap (which should be good regardless what newpool is...):

zfs create -V size newpool/swap
swap -a /dev/zvol/newpool/swap
swap -d /dev/zvol/oldpool/swap

Hope this helps,
Dan


Thanks, Dan, that was EXACTLY what I needed!!! And the newpool, wich is 
called mainpool here, are mirrored disk, yes.


Regards Johan


___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


Re: [OmniOS-discuss] move dump and swap to other pool

2014-05-08 Thread Paul B. Henson
 From: Dan McDonald
 Sent: Thursday, May 08, 2014 7:38 AM

 And for swap (which should be good regardless what newpool is...):
 
 zfs create -V size newpool/swap

Unless I'm misremembering, the default blocksize for a zvol is 8k, and the
recommended blocksize for a swap zvol on x86 is 4k, so I usually explicitly
specify the blocksize when creating a swap zvol:

zfs create -b 4k -V size pool/swap

Also, in the past there was a bug that could result in a kernel wedge unless
you tweaked the cache settings for a zvol in use for swap:

zfs set primarycache=metadata pool/swap
zfs set secondarycache=none pool/swap

Possibly that has been fixed? But I don't think it hurts either way, so I
still do it.


___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss