Best practice installation commands

Tips and troubleshooting the ZEVO installation process

Moderators: jhartley, MSR734, nola

Best practice installation commands

Post by TomUnderhill » Wed Jan 09, 2013 10:36 pm

I've been using Zevo as my primary file system since early October. During this time, I have created a four-disk RAID-z, several single disk zpools, played with L2ARC, put zfs on top of a home-brew Fusion Drive, and my current four disk stripe of mirrors (or is a mirror of stripes?). I've experienced many of the growing pains reported and discussed on the site, and I've pulled all my data off a pool, only to reformat because I didn't know of an integral option on the command line. In the beginning, I went back to the Quick Start Guide, hoping to find what I had missed... Later I discovered that even simple things just weren't there, like elevating all the commands with sudo.

Thank Heaven for the people on this site.

I understand this Zevo release is an enthusiast's product. I know many "enthusiasts" whose second format would have been back to JHFS+. I'd like to keep them "in the pool", so to speak. To help accomplish this, Has anyone seen a comprehensive "best practices" list of Terminal commands, with the proper flags and options (and perhaps a short discussion of the various settings) for the most common usages? I prefer not to have people tell me that "everything I need is on this site" or other such nonsense. When we were just starting out, I doubt any of us knew all the questions for which we'd be seeking answers.

As I have worked with Zevo, I've developed the following commands, and I have no ego in their presentation here. If anyone has better, I welcome input.

For example...

Single Disk
Code: Select all
$ zpool create example /dev/diskx -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD

RAIDz
Code: Select all
$ zpool create -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD -O compression=on NAME raidz /dev/disk0 /dev/disk1 /dev/disk2

Since I'm writing this on my iPad, I'm not sure if these are my production commands. My thought is to create a two or three page document to allow enthusiasts to hit the ground running with a minimum of frustration and reformatting.

I see this document would containing the most utilized scenarios:
  • Single disk
  • Mirror of n drives
  • RAIDz of n drives
  • Stripe of n drives
  • Stripe of mirrors/Mirror of stripes
Depending on the response, I'm happy to post my production commands for review, or anyone else can take the lead and post theirs.
TomUnderhill Offline


 
Posts: 36
Joined: Wed Oct 10, 2012 8:06 am
Location: Southern California

simplification

Post by grahamperrin » Sun Jan 13, 2013 5:05 am

NFD: normalization=formD (normalisation form D)

Highlight:

> the Apple-oriented defaults of ZEVO Community Edition 1.1 and 1.1.1 make it
> not necessary to set normalization=formD when using either version of ZEVO to create a pool or file system

In other words: including that setting in a command is best practice only if using something other than ZEVO to create a ZFS file system for a Mac.
Last edited by grahamperrin on Sun Jan 13, 2013 5:13 am, edited 1 time in total.
grahamperrin Offline

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

Cross references

Post by grahamperrin » Sun Jan 13, 2013 5:06 am

Last edited by grahamperrin on Sun Jan 13, 2013 4:51 pm, edited 2 times in total.
grahamperrin Offline

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

Re: Best practice installation commands

Post by mnos3c » Sat Mar 30, 2013 10:22 am

Note that the command
Code: Select all
$ zpool create example /dev/diskx -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD


Does not work. You should put poolname <device> after commands:

Code: Select all
$ zpool create -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD example /dev/diskx


My 2c
mnos3c Offline


 
Posts: 33
Joined: Wed Dec 26, 2012 6:40 am


Return to ZEVO Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron