How I added two Seagate 240G SSDs as SmartOS L2ARC

How I added two Seagate 240G SSDs as SmartOS L2ARC

  1. removed icepacks from two western digital velociraptors
  2. installed ssds into icepacks
  3. installed icepacks into HP hotswap trays
  4. installed trays into HP prolaient g6 server

How to list all drive installed in Solaris, Open Solaris, or SmartOS

iostat -eE
format

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 
          /pci@0,0/pci103c,330b@1f,2/disk@0,0
       1. c1t1d0 
          /pci@0,0/pci103c,330b@1f,2/disk@1,0
       2. c1t2d0 
          /pci@0,0/pci103c,330b@1f,2/disk@2,0
       3. c1t3d0 
          /pci@0,0/pci103c,330b@1f,2/disk@3,0

list zpools:

zpool list
NAME    SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
zones  1.81T  41.4G  1.77T         -     2%  1.00x  ONLINE  -

Add the two 240G SSDs as L2ARC devices:

zpool add zones cache c1t2d0 c1t3d0

Look at the iostats of the drives in the zpool

zpool iostat -v
               capacity     operations    bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zones       41.4G  1.77T      5     46  78.7K   730K
  mirror    41.4G  1.77T      5     46  78.7K   730K
    c1t0d0      -      -      0     15  41.5K   733K
    c1t1d0      -      -      0     15  41.6K   733K
cache           -      -      -      -      -      -
  c1t2d0    14.6M   224G      0      3  2.48K   273K
  c1t3d0    45.5M   224G      0      6  2.48K   852K
----------  -----  -----  -----  -----  -----  -----

This machine is a test hypervisor and after reviewing the output from zpool iostat -v over the last couple days, I’m pretty sure adding L2ARC to this box was not needed, but it was a great learning experience.

Leave a Reply

Your email address will not be published. Required fields are marked *