L2ARC on a partition?

Moderators: jhartley, MSR734, nola

L2ARC on a partition?

Post by maxijazz » Sun Sep 23, 2012 12:27 pm

I did try to set up L2ARC on SSD, which is also a boot drive (osx 10.8.1):
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *480.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS ROOT 417.3 GB disk1s2
3: Apple_Boot Recovery HD 650.0 MB disk1s3
4: Apple_HFS ZIL 10.0 GB disk1s6
5: Apple_HFS L2ARC 51.0 GB disk1s4

Here is the error message:
$ sudo zpool add extra cache /dev/disk1s4
invalid vdev specification
use '-f' to override the following errors:
/dev/disk1s4 is in use by filesystem at "/Volumes/L2ARC"

$ sudo zpool add -f extra cache /dev/disk1s4
diskutil eraseVolume failed, exit status 1

What am i doing wrong? Is it possible to set up L2ARC on partition?
maxijazz Offline


 
Posts: 12
Joined: Wed Sep 19, 2012 8:42 pm

Re: L2ARC on a partition?

Post by dbrady » Sun Sep 23, 2012 3:31 pm

There is a regression in diskutil(8) under 10.8 for the eraseVolume case. The special name "%noformat%" no longer works and gets rejected by diskutil. Since the zpool command is using this syntax it fails. We have a fix that were testing that works around this bug in diskutil. If you have access to an earlier version of the OS you can use that to configure your pool until our fix is available.
dbrady Offline


 
Posts: 67
Joined: Wed Sep 12, 2012 12:43 am

Re: L2ARC on a partition?

Post by maxijazz » Sun Sep 23, 2012 5:07 pm

Yes, i have access to 10.6 and 10.7, but since it is not urgent yet matter for me, i rather wait for your fix.
Thank you for help.
maxijazz Offline


 
Posts: 12
Joined: Wed Sep 19, 2012 8:42 pm

Re: L2ARC on a partition?

Post by grahamperrin » Thu Sep 27, 2012 12:54 am

maxijazz wrote:… 

$ sudo zpool add extra cache /dev/disk1s4
invalid vdev specification



ZEVO CE Update 1.1.1 (Build 2012.09.23) fixed zpool create/add for the case when using an existing GPT slice (like /dev/disk2s3).
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: L2ARC on a partition?

Post by maxijazz » Thu Sep 27, 2012 7:52 pm

Thank you.

Adding l2arc and zil log on SSD partition worked like a charm.
maxijazz Offline


 
Posts: 12
Joined: Wed Sep 19, 2012 8:42 pm

Spun off

Post by grahamperrin » Mon Apr 15, 2013 10:14 pm

At viewtopic.php?p=4637#p4637 under Does ZEVO support TRIM?:

raattgift wrote:… If you have a huge SSD and want cache vdev(s), use GPT partitions and make the cache vdevs use slice devices. A good size is single-digit GBytes per slice. You probably don't want more total L2ARC space than a verrrrrry small multiple of total system RAM. …
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron