Oracle Solaris 10 ZFS Administration

Menu

Introduction

Getting Started With ZFS

Mastering ZFS Basics

Managing ZFS Storage Pools

Managing ZFS File Systems

Working With ZFS Snapshots and Clones

Installing and Booting a ZFS Root File System

Troubleshooting ZFS Issues and Recovering ZFS Data

ZFS Advanced Topic


Using ACLs to Protect ZFS Files

ZFS Delegated Administration

Managing ZFS Storage Pools
 
From docs.oracle.com:

Managing ZFS Storage Pools.


Bloggers:

Technology for Sun Partners A Hands on Introduction to ZFS Pools; Part 1: Getting Started (Pool Creation, Export, Import)

Technology for Sun Partners A Hands on Introduction to ZFS Pools

Technology for Sun Partners A Hands on Introduction to ZFS Pools

darren_moffat@blog$ cat /dev/mem | grep /dev/urandom Encrypting ZFS pools using lofi crypto

Roch (rhymes with Spock) Bourbonnais : Kernel Performance Engineering WeblogWhen To (and not to) Use RAID-Z.

Milek's blog HW RAID vs. ZFS software RAID and HW RAID vs. ZFS software RAID - part II.

Jeff Bonwick's Weblog RAID-Z is a detailed description of raidz.

Core Dumps of a Kernel Hacker's Brain - Eric Lowe's Blog, ZFS saves the day(-ta)!

From Ramblings from Richard's Ranch, ZFS RAID recommendations: space, performance, and MTTDL all-in.

Eric Kustarz's Weblog, ZFS - now with history!.

Neil Perrin's Weblog ZFS: The Lumberjack describes the ZFS intent log.

Neelakanth Nadgir's blog A quick guide to the ZFS Intent Log (ZIL).

Neelakanth Nadgir's blog slog blog (or blogging on slogging) support for separate intent logs (slogs) for ZFS.

Multithreaded Musings, Stand back - I'm a scientist! Seven Years of Good Luck: Splitting Mirrors Splitting a ZFS pool for backups.

Constantin Gonzalez, Frequently Asked Questions About Flash Memory (SSDs) and ZFS

Steffen Weiberle, What the krowteN? ZFS zpool and file system version numbers and features

Multithreaded Musings, ZFS Basics

Multithreaded Musings, A ZFS Taxonomy


Other:

From Unixconsult.org, ZFS vs. Linux Raid vs. Linux LVM vs. Linux LVM + Raid.

From Intel, Solaris. ZFS. Enables Hybrid Storage Pools. Shatters Economic and Performance Barriers.

ZFS Configuration Guide.


Setting Up Separate ZFS Logging Devices

The ZFS intent log (ZIL) is provided to satisfy POSIX requirements for synchronous transactions. For example, databases often require their transactions to be on stable storage devices when returning from a system call. NFS and other applications can also use fsync() to ensure data stability. By default, the ZIL is allocated from blocks within the main storage pool. However, better performance might be possible by using separate intent log devices in your ZFS storage pool, such as with NVRAM or a dedicated disk.

Log devices for the ZFS intent log are not related to database log files.

You can set up a ZFS logging device when the storage pool is created or after the pool is created. For example:

# zpool create datap mirror c1t1d0 c1t2d0 mirror c1t3d0 c1t4d0 log mirror c1t5d0 c1t8d0
# zpool status
  pool: datap
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        datap       ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c1t1d0  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0
            c1t4d0  ONLINE       0     0     0
        logs        ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c1t5d0  ONLINE       0     0     0
            c1t8d0  ONLINE       0     0     0

errors: No known data errors

The following example shows how to add a mirrored log device to mirrored storage pool.

# zpool status newpool
  pool: newpool
 state: ONLINE
 scrub: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        newpool      ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c1t9d0   ONLINE       0     0     0
            c1t10d0  ONLINE       0     0     0

errors: No known data errors


# zpool add newpool log mirror c1t11d0 c1t12d0
# zpool status newpool
  pool: newpool
 state: ONLINE
 scrub: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        newpool      ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c1t9d0   ONLINE       0     0     0
            c1t10d0  ONLINE       0     0     0
        logs         ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c1t11d0  ONLINE       0     0     0
            c1t12d0  ONLINE       0     0     0

errors: No known data errors