This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Adding ZIL and L2ARC with 2 SSD's via Webinterface

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
neptunus
experienced User
experienced User
Posts: 79
Joined: 11 Jun 2013 08:50
Status: Offline

Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by neptunus »

Practical help needed:
I have 2 Intel's 320 (120GB). I want to divided them into three partitions . A ZIL, a L2ARC and a data partition.
The ZIL's (both added to the pool) in Mirror and L2ARC striped partitions. The data partition also in Mirror (for future use iscsi). This is actually the perfect setup. A mirrored ZIL, L2ARC striped. So, safe, fast, and functional.

Can anyone out there help me to config it via the web interface?

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by chrisf4lc0n »

With 2 disks it will be overly complicated. You will have to create 4 datasets in total and add them to the pool, that will create another layer of things which can go wrong! Restoring ZIL from such config will be a real pain! You may be better of adding another SSD for ZIL mirror and leave 1 SSD for L2ARC. I am not saying it will not work, but I am worried about your data, as if you loose ZIL, you will struggle to recover...
Watercooling is just the beginning ;)

neptunus
experienced User
experienced User
Posts: 79
Joined: 11 Jun 2013 08:50
Status: Offline

Re: Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by neptunus »

chrisf4lc0n wrote:With 2 disks it will be overly complicated. You will have to create 4 datasets in total and add them to the pool, that will create another layer of things which can go wrong! Restoring ZIL from such config will be a real pain! You may be better of adding another SSD for ZIL mirror and leave 1 SSD for L2ARC. I am not saying it will not work, but I am worried about your data, as if you loose ZIL, you will struggle to recover...
I understand your explanation. Imagine I would still use it in this way, how to config it via the webinterface.

funny in another forum about zfs they write the following:
I had 2 Intel's 320 (80GB) with 3 partitions.
A regular partie which a mirrored ZFS pool was (called root pool), a ZIL and L2ARC partition.
The ZIL's were in Mirror and L2ARC partitions were both added to the pool.
This can actually get the perfect setup. Data separate from OS, mirrored ZIL, L2ARC striped. So, safe, fast, and functional.

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by chrisf4lc0n »

neptunus wrote: funny in another forum about zfs they write the following:
I had 2 Intel's 320 (80GB) with 3 partitions.
A regular partie which a mirrored ZFS pool was (called root pool), a ZIL and L2ARC partition.
The ZIL's were in Mirror and L2ARC partitions were both added to the pool.
This can actually get the perfect setup. Data separate from OS, mirrored ZIL, L2ARC striped. So, safe, fast, and functional.
I agree if you know what you are doing. Let me remind you your question: "Adding ZIL and L2ARC with 2 SSD's via Webinterface".
I would personally do that in command line, but I am still trying to put off that idea...
1. You would need to create 2 single disks pools.
2. Create 2 datasets/volumes on each of them.
3. Create Mirrored Pool for ZIL from created datasets/volumes.
4. Create Stripped Pool for L2ARC from the left 2 datasets/volumes.
5. Add the ZIL and L2ARC to the main pool.

That does not go by the main rule KIS- keep it simple!
You will end up having pools within pools.

With 3 SSDs you will just have to add 2 disks to the main pool and tell the pool they are mirrored for ZIL plus 1 disk for L2ARC.
Something like:

Code: Select all

zpool add "name of your pool" log mirror "name of your 1st disk" "name of your 2nd disk"
zpool add "name of your pool" cache "name of your disk for cache" 
Watercooling is just the beginning ;)

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by chrisf4lc0n »

If you however want to go that way I will advise you to go with command line and do something similar:
http://blog.ociru.net/2013/04/05/zfs-ssd-usage/
Watercooling is just the beginning ;)

neptunus
experienced User
experienced User
Posts: 79
Joined: 11 Jun 2013 08:50
Status: Offline

Re: Adding ZIL and L2ARC with 2 SSD's via Webinterface

Post by neptunus »

Below the command's how I configured my ZFS configuration.

zstore is used for my data
zssddata is used with iSCSI

What do you think?

Code: Select all

gpart destroy -F da1
gpart destroy -F da2
gpart destroy -F da3
gpart destroy -F da4
gpart destroy -F da5
gpart destroy -F da6
gpart destroy -F da7
gpart destroy -F da8
gpart destroy -F da9
gpart destroy -F da10
gpart destroy -F da11
gpart destroy -F da12

gpart create -s gpt da1
gpart create -s gpt da2
gpart create -s gpt da3
gpart create -s gpt da4
gpart create -s gpt da5
gpart create -s gpt da6
gpart create -s gpt da7
gpart create -s gpt da8
gpart create -s gpt da9
gpart create -s gpt da10
gpart create -s gpt da11
gpart create -s gpt da12

gpart add -t freebsd-zfs -b 2048 -a 4k -l disk1 da1
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk2 da2
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk3 da3
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk4 da4
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk5 da5
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk6 da6
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk7 da7
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk8 da8
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk9 da9
gpart add -t freebsd-zfs -b 2048 -a 4k -l disk10 da10

gpart add -t freebsd-zfs -a 4k -l log1 -s 8G da11
gpart add -t freebsd-zfs -a 4k -l cache1 -s 24G da11
gpart add -t freebsd-zfs -b 2048 -a 4k -l ssddata1 -s 64G da11

gpart add -t freebsd-zfs -a 4k -l log2 -s 8G da12
gpart add -t freebsd-zfs -a 4k -l cache2 -s 24G da12
gpart add -t freebsd-zfs -b 2048 -a 4k -l ssddata2 -s 64G da12

zpool create zstore raidz2 gpt/disk1 gpt/disk2 gpt/disk3 gpt/disk4 gpt/disk5 gpt/disk6 gpt/disk7 gpt/disk8 gpt/disk9 gpt/disk10
zpool add zstore log mirror gpt/log1 gpt/log2
zpool add zstore cache gpt/cache1
zpool add zstore cache gpt/cache2

zpool create zssddata mirror gpt/ssddata1 gpt/ssddata2
After the I created the pools, I used "Disks|ZFS|Configuration|Synchronize" with option "Leave auto snapshot configuration/Import disks" enabled and Synchronize the pools.

Post Reply

Return to “ZFS (only!)”