Good morning everybody I was migrating my ufs ? rootfilesystem to a zfs ? one, but was a little upset finding out that it became bigger (what was clear because of the swap and dump size). Now I am questioning myself if it is possible to set the swap and dump size by using the lucreate ? command (I wanna try it again but on less space). Unfortunately I did not find any advice in manpages. Maybe you can help me? -- This message posted from opensolaris.org
Patrick Bittner wrote:> Good morning everybody > > I was migrating my ufs ? rootfilesystem to a zfs ? one, but was a little upset finding out that it became bigger (what was clear because of the swap and dump size). > > Now I am questioning myself if it is possible to set the swap and dump size by using the lucreate ? command (I wanna try it again but on less space). Unfortunately I did not find any advice in manpages.I don''t know the official answer, but since swap and dump are now just zfs filesystems, you can just "zfs set volsize=8G zboot/swap" to any size you want. That is, after lucreate, but before you "init 6" to reboot. Or indeed any time after, as long as you "swap -d", "swap -a" to make it notice the new size. (I believe you should set volsize and refreservation to the same value). -- Jorgen Lundman | <lundman at lundman.net> Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work) Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell) Japan | +81 (0)3 -3375-1767 (home)
Thx for your quick answer, but that is exactly what i am trying: to manage this by lucreate command or earlier. The reason for that is VERY small volumes. I hope it is possible to create the BE without using much diskspace.. and swap is a little chance to get at least some space.. now it is on 5GB by default.. i hope to thrill it down on 2 GB or something.. that would be enough. -- This message posted from opensolaris.org
So there is no possibility to do this with or before the lucreate command? hm. well- thank you anyway then -- This message posted from opensolaris.org
Hi, it is recommended to delete old swap and make new one: # *swap -d /dev/zvol/dsk/rpool/swap* # *zfs volsize=8G rpool/swap* # *swap -a /dev/zvol/dsk/rpool/swap* kind regards, Moutacim Patrick Bittner schrieb:> Thx for your quick answer, but that is exactly what i am trying: to manage this by lucreate command or earlier. > > The reason for that is VERY small volumes. > I hope it is possible to create the BE without using much diskspace.. and swap is a little chance to get at least some space.. now it is on 5GB by default.. i hope to thrill it down on 2 GB or something.. that would be enough. >-- Moutacim LACHHAB Service Engineer Software Technical Services Center Sun Microsystems Inc. Email moutacim.lachhab at Sun.COM <mailto:moutacim.lachhab at sun.com> +33(0)134030594 x31457 For knowledge and support: http://sunsolve.sun.com
> # *swap -d /dev/zvol/dsk/rpool/swap* > # *zfs volsize=8G rpool/swap* > # *swap -a /dev/zvol/dsk/rpool/swap*I''m still a bit fuzzy about how swap/dump and ZFS. If I have a pool: pool: pool1 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool1 ONLINE 0 0 0 c3t0d0s1 ONLINE 0 0 0 which occupies nearly the entire disk, should I allocate both swap and dump in the same pool? Right now I have a swap on a second disk: # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t1d0s0 32,8 16 8395184 8395184 Would I do something like: # zfs volsize=4G pool1/swap # swap -a /dev/zvol/dsk/pool1/swap # swap -d /dev/dsk/c3t1d0s0 What about a dump, any recommendations? Thanks... -- This message posted from opensolaris.org
Hi Patrick, To answer your original question, yes, you can create your root swap and dump volumes before you run the lucreate operation. LU won''t change them if they are already created. Keep in mind that you''ll need approximately 10 GBs of disk space for the ZFS root BE and the swap/dump volumes. See the steps below. Cindy Patrick Bittner wrote:> So there is no possibility to do this with or before the lucreate command? > > hm. well- > thank you anyway then# zpool create rpool c0t0d0s0 # zfs create -V 1g rpool/dump # zfs create -V 2g -b 8k rpool/swap # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 3.00G 30.2G 18K /rpool rpool/dump 1G 31.2G 16K - rpool/swap 2G 32.2G 16K - # lucreate -c ufsBE -n zfsBE -p rpool . . . . Population of boot environment <zfsBE> successful. Creation of boot environment <zfsBE> successful. # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 7.62G 25.6G 92.5K /rpool rpool/ROOT 4.62G 25.6G 18K /rpool/ROOT rpool/ROOT/zfsBE 4.62G 25.6G 4.62G / rpool/dump 1G 26.6G 16K - rpool/swap 2G 27.6G 16K -