MacOSX 10.10.3 にアップデート

会社のMain MacOSX Serverを10.9から、ようやく10.10にアップデートした。

特に問題も無くOSはアップデート完了

しかし再起動後、Guardが動かない。

gem install guard

# gem install guard
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: hitimes-1.2.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing guard:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin14/ruby/config.h', needed by `hitimes.o'.  Stop.


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

エラー出るです。
hitimes.oが必要やと?
gem をアップデートとかできんのやっけ?

調べてみる。
そのまでに、Xcodeをアップデートして、もう一度 gem installしてみます。

Building native extensions.  This could take a while...
ERROR:  Error installing guard:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

エラーは減ったけど、肝心の ERROR: Failed to build gem native extension. 治ってない。

gem updateしてみる。

gem update
Updating installed gems
Updating CFPropertyList
Fetching: CFPropertyList-2.3.1.gem (100%)
Successfully installed CFPropertyList-2.3.1
Parsing documentation for CFPropertyList-2.3.1
Installing ri documentation for CFPropertyList-2.3.1
Installing darkfish documentation for CFPropertyList-2.3.1
Updating bigdecimal
Fetching: bigdecimal-1.2.7.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing bigdecimal:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/bigdecimal-1.2.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/bigdecimal-1.2.7/./gem_make.out
Updating json
Fetching: json-1.8.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing json:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.8.2/ext/json/ext/generator/gem_make.out
Updating libxml-ruby
Fetching: libxml-ruby-2.8.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing libxml-ruby:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/libxml-ruby-2.8.0 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/libxml-ruby-2.8.0/ext/libxml/gem_make.out
Updating minitest
Fetching: minitest-5.6.1.gem (100%)
Successfully installed minitest-5.6.1
Parsing documentation for minitest-5.6.1
Installing ri documentation for minitest-5.6.1
Installing darkfish documentation for minitest-5.6.1
Updating nokogiri
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
Updating psych
Fetching: psych-2.0.13.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing psych:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/psych-2.0.13 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/psych-2.0.13/ext/psych/gem_make.out
Updating rake
Fetching: rake-10.4.2.gem (100%)
rake's executable "rake" conflicts with /usr/bin/rake
Overwrite the executable? [yN]  
Updating rdoc
Fetching: rdoc-4.2.0.gem (100%)
rdoc's executable "rdoc" conflicts with /usr/bin/rdoc
Overwrite the executable? [yN]  
ERROR:  Error installing rdoc:
	"rdoc" from rdoc conflicts with /usr/bin/rdoc
Updating sqlite3
Fetching: sqlite3-1.3.10.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.10 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.10/ext/sqlite3/gem_make.out
Updating test-unit
Fetching: power_assert-0.2.3.gem (100%)
Successfully installed power_assert-0.2.3
Fetching: test-unit-3.0.9.gem (100%)
Successfully installed test-unit-3.0.9
Parsing documentation for power_assert-0.2.3
Installing ri documentation for power_assert-0.2.3
Installing darkfish documentation for power_assert-0.2.3
Parsing documentation for test-unit-3.0.9
Installing ri documentation for test-unit-3.0.9
Installing darkfish documentation for test-unit-3.0.9
Gems updated: CFPropertyList minitest mini_portile power_assert test-unit

やっぱ、ERROR: Failed to build gem native extension. が出るので、googleに聞いてみる。

その前に、xcodeのコンポーネントをアップデートあるはず。
xcodeを起動したら、思惑通りupdateの画面でた。
osx10-10

ここまで出来たから、
gemを再実行する。

# gem install guard
Building native extensions.  This could take a while...
Successfully installed hitimes-1.2.2
Fetching: timers-4.0.1.gem (100%)
Successfully installed timers-4.0.1
Fetching: celluloid-0.16.0.gem (100%)
Successfully installed celluloid-0.16.0
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: ffi-1.9.8.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ffi-1.9.8
Fetching: rb-inotify-0.9.5.gem (100%)
Successfully installed rb-inotify-0.9.5
Fetching: listen-2.10.0.gem (100%)
Successfully installed listen-2.10.0
Fetching: coderay-1.1.0.gem (100%)
Successfully installed coderay-1.1.0
Fetching: slop-3.6.0.gem (100%)
Successfully installed slop-3.6.0
Fetching: method_source-0.8.2.gem (100%)
Successfully installed method_source-0.8.2
Fetching: pry-0.10.1.gem (100%)
Successfully installed pry-0.10.1
Fetching: lumberjack-1.0.9.gem (100%)
Successfully installed lumberjack-1.0.9
Fetching: formatador-0.2.5.gem (100%)
Successfully installed formatador-0.2.5
Fetching: nenv-0.2.0.gem (100%)
Successfully installed nenv-0.2.0
Fetching: shellany-0.0.1.gem (100%)
Successfully installed shellany-0.0.1
Fetching: notiffany-0.0.6.gem (100%)
Successfully installed notiffany-0.0.6
Fetching: guard-2.12.5.gem (100%)
Successfully installed guard-2.12.5
Parsing documentation for hitimes-1.2.2
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/hitimes/2.0/hitimes.bundle, skipping
Installing ri documentation for hitimes-1.2.2
Parsing documentation for timers-4.0.1
Installing ri documentation for timers-4.0.1
Parsing documentation for celluloid-0.16.0
Installing ri documentation for celluloid-0.16.0
Parsing documentation for rb-fsevent-0.9.4
Installing ri documentation for rb-fsevent-0.9.4
Parsing documentation for ffi-1.9.8
Installing ri documentation for ffi-1.9.8
Parsing documentation for rb-inotify-0.9.5
Installing ri documentation for rb-inotify-0.9.5
Parsing documentation for listen-2.10.0
Installing ri documentation for listen-2.10.0
invalid options: -SNw2
(invalid options are ignored)
Parsing documentation for coderay-1.1.0
Installing ri documentation for coderay-1.1.0
Parsing documentation for slop-3.6.0
Installing ri documentation for slop-3.6.0
Parsing documentation for method_source-0.8.2
Installing ri documentation for method_source-0.8.2
Parsing documentation for pry-0.10.1
Installing ri documentation for pry-0.10.1
Parsing documentation for lumberjack-1.0.9
Installing ri documentation for lumberjack-1.0.9
Parsing documentation for formatador-0.2.5
Installing ri documentation for formatador-0.2.5
Parsing documentation for nenv-0.2.0
Installing ri documentation for nenv-0.2.0
Parsing documentation for shellany-0.0.1
Installing ri documentation for shellany-0.0.1
Parsing documentation for notiffany-0.0.6
Installing ri documentation for notiffany-0.0.6
Parsing documentation for guard-2.12.5
Installing ri documentation for guard-2.12.5
17 gems installed
[\code]

guardは動くようになったのだが、guardのオプションが変わっているようだ。
[code]
# guard -help
Commands:
  _guard-core help [COMMAND]  # Describe available commands or one specific command
  _guard-core init [GUARDS]   # Generates a Guardfile at the current directory (if it is not alre...
  _guard-core list            # Lists Guard plugins that can be used with init
  _guard-core notifiers       # Lists notifiers and its options
  _guard-core show            # Show all defined Guard plugins and their options
  _guard-core start           # Starts Guard
  _guard-core version         # Show the Guard version

Usage:
  _guard-core start

Options:
  -c, [--clear=Auto clear shell before each action], [--no-clear]                                        
  -n, [--notify=Notifications feature], [--no-notify]                                                    
                                                                                                         # Default: true
  -d, [--debug=Show debug information], [--no-debug]                                                     
  -g, [--group=Run only the passed groups]                                                               
  -P, [--plugin=Run only the passed plugins]                                                             
  -w, [--watchdir=Specify the directories to watch]                                                      
  -G, [--guardfile=Specify a Guardfile]                                                                  
  -i, [--no-interactions=Turn off completely any Guard terminal interactions], [--no-no-interactions]    
  -B, [--no-bundler-warning=Turn off warning when Bundler is not present], [--no-no-bundler-warning]     
  -l, [--latency=Overwrite Listen's default latency]                                                     
  -p, [--force-polling=Force usage of the Listen polling listener], [--no-force-polling]                 
  -y, [--wait-for-delay=Overwrite Listen's default wait_for_delay]                                       
  -o, [--listen-on=Specify a network address to Listen on for file change events (e.g. for use in VMs)]  

Starts Guard

guard-shellが動かないのね。
OSX10.9 ruby version 1.8
OSX10.10 ruby version 2.0

これって、ruby gemでインストールしたものをすべて再インストールなのか?

やれるところまでやってみよう。

# gem install guard-shell
Fetching: guard-compat-1.2.1.gem (100%)
Successfully installed guard-compat-1.2.1
Fetching: guard-shell-0.7.1.gem (100%)
Successfully installed guard-shell-0.7.1
Parsing documentation for guard-compat-1.2.1
Installing ri documentation for guard-compat-1.2.1
Parsing documentation for guard-shell-0.7.1
Installing ri documentation for guard-shell-0.7.1
2 gems installed
# guard init shell
09:55:24 - INFO - Guardfile already includes shell guard

guard-shellはOK

gem install jabbot
Fetching: xmpp4r-0.5.6.gem (100%)
Successfully installed xmpp4r-0.5.6
Fetching: eventmachine-0.12.10.gem (100%)
Building native extensions.  This could take a while...
Successfully installed eventmachine-0.12.10
Fetching: jabbot-1.0.0.gem (100%)
Successfully installed jabbot-1.0.0
Parsing documentation for xmpp4r-0.5.6
Installing ri documentation for xmpp4r-0.5.6
Parsing documentation for eventmachine-0.12.10
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/fastfilereaderext.bundle, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/rubyeventmachine.bundle, skipping
Installing ri documentation for eventmachine-0.12.10
Parsing documentation for jabbot-1.0.0
Installing ri documentation for jabbot-1.0.0
3 gems installed

いろいろやったが動かん・・・
もう少し、調べて再チャレンジする。

Promise Pegasus M4 vs USB3.0 HDD

USB3.0M4

 

USB3.0 HDDだとシーケンシャルで173MB/sec、ランダムで36MB/sec

PegasusM4だとシーケンシャルで406MB/sec、ランダムで400MB/sec

USB遅い。MacMini Late2012に直接続なのに・・・

参考までに、PegasusR6だとこんな感じ。

R6

シーケンシャルで283MB/sec、ランダム256MB/sec

M4の数値が良いのは、ディスク自体の容量が少ないのと、ディスクドライブ自体が新しいからだろうか・・・

体感的には、R6って感じなのだけど

Backup用 Promise PesasusR6 準備開始

メインストレージである、XSAN FSの状態が酷く、移行すべく新R6に移行を始め、紆余曲折があったが、なんとか無事復旧することが出来た。

今後のため、完全バックアップを作成する方針を新たに立てた。

手順としては、同型の同容量のPegasus R6をもう一台準備することだ。

準備と言っても、今現在Pegasus R6は合計3台所有しており、2台あるサーバーに各1台、クライアントに1台利用していた。

このクライアントのPegasusR6をバックアップ作成用転換することとした。

転換するPegasusR6のHDDを同容量にするため、4TB HDDを6本準備し、早速 RAIDのCreateにかかる。

Spareを1本 5本でRaid5とした。自宅のQNAP RAID5のHDD2本が逝ってしまったためRAID6にするか非常に悩んだw

しかし、今回は、バックアップ態勢を完全にするのでRAID5にした。

Event List at 2014-12-11 07:56:07 .
Index  Device ID      Severity    Time                          Description                                       
1      Ctrl 1         Info        Dec 10, 2014 15:04:57         The system is started                             
2      SEP 1          Info        Dec 10, 2014 15:05:03         SEP is found                                      
3      PD 1           Info        Dec 10, 2014 15:19:59         Physical Disk is marked online                    
4      PD 2           Info        Dec 10, 2014 15:19:59         Physical Disk is marked online                    
5      PD 3           Info        Dec 10, 2014 15:19:59         Physical Disk is marked online                    
6      PD 4           Info        Dec 10, 2014 15:19:59         Physical Disk is marked online                    
7      PD 5           Info        Dec 10, 2014 15:19:59         Physical Disk is marked online                    
8      DA 0           Info        Dec 10, 2014 15:20:00         New disk array has been created                   
9      DA 0           Info        Dec 10, 2014 15:21:01         Disk array settings have been changed             
10     LD 0           Info        Dec 10, 2014 15:21:54         A new Logical drive has been created              
11     LD 0           Info        Dec 10, 2014 15:21:54         Synchronization is started                        
12     LD 0           Info        Dec 11, 2014 05:19:35         Synchronization is completed                      

結局シンクロ始まって10時間かかった。

今日から数日かけて、rsyncでバックアップとるのだ。
しばらく手動ねw

rsync -avz –delete –exclude-from /Volumes/Xsan/.nosync /Volumes/Xsan/ /Volumes/Xsan_BACKUP/

Xsan HTTPD

昨日、師匠とPromiseさんのおかげで、無事 PegasusR6の復旧が終わり、停止していたサービスの再稼働を始めたところ

httpdがうごかん。

ログ見ると、原因は、パーミッションだった。

find ./ -type -d -print | xargs chmod 755

一発でchmodしようとしたが、MacBSDの流儀は違ったみたい。

MacOSXでは、

find ./ -type -d print0 | xargs -o chmod 755

でした。ただ、日本語名のファイルがうまく出来ないようだ。

これで、HTTPDも復旧しました。

もちろんcloudも復旧してますが、owncloudはmysqlに移行したいから、本稼働まで暫くかかる。

FTPはあまり触ってないな・・・