Angry Dome

  1. Search
  2. About
  3. Subscribe
  4. Archive
  5. Random

Angry Dome

This is a place where I tend to rant.

My name is Chris, I apparently managed to help write a book (Beginning Mac OS X Snow Leopard Server), and I sometimes get angried up enough to write about something, hence the angrydome.

@mrzarquon

Newer
Older
  • Quick way to review Affinities for your SAN

    I still haven’t gotten around to cleaning up this space, but a quick one liner to let you see all your folder affinities in one place, compliments of the find command and cvaffinity.

    From the terminal, run the following:

    find /Volumes/SANNAME -type d -maxdepth 1 -exec cvaffinity -l '{}' \;

    And now you have a nice list showing you the affinity set to each folder, up to 1 level deep, on the volume SANNAME. If you want to go more granular, increase maxdepth to 2,3,etc.

    And if you want to change an affinity on a folder after it has files in it, sometimes the files will not be moved to the new affinity, but you can let snfsdefrag do that for you (note: this can negatively impact your performance while the command is running, use the affinity name as labeled in your volume .cfg file, have backups, etc. etc.):

    snfsdefrag -vr -k Affinity -m 0 /Volumes/SANNAME/foldertochange

    Posted on November 11, 2009

  • heckyeahblackcats
  • signonpdx
  • staff
  • thinkstank
  • uselessfliers

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.