Solarisに接続されているテープドライブを認識させる
システム起動直後は、テープドライブが認識されているかどうか分からない
システム起動直後のドライブの情報を確認すると
stXXという記載が無い
# iostat -E sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318404LSUN18G Revision: 4203 Serial No: aaaaa11111 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318203LSUN18G Revision: 034A Serial No: bbbbb22222 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd15 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: TOSHIBA Product: CD-ROM XM-7002Bc Revision: 1110 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0
一見、テープドライブが認識されていないように見える
そこで、テープを挿入して次のコマンドを実行してみる
認識されている場合は、このように出力される
# mt -f /dev/rmt/0 status HP DDS-3 4MM DAT tape drive: sense key(0x6)= Unit Attention residual= 0 retries= 0 file no= 0 block no= 0
このときに再度ドライブを確認すると次のように表示される
st4という記載が追加されている
# iostat -E sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318404LSUN18G Revision: 4203 Serial No: aaaaa11111 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318203LSUN18G Revision: 034A Serial No: bbbbb22222 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd15 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: TOSHIBA Product: CD-ROM XM-7002Bc Revision: 1110 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0 st4 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: HP Product: C1537A Revision: L007 Serial No: 62
これがテープドライブ
この後テープを抜いてもシステムを再起動するまではstXXは無くならない
もしも、ドライブが認識されていないようであれば、
認識させる必要がある
そのためには、OBPでrオプションを付けてブートし直す
ok boot -r
起動後ログインして、再度ドライブを確認
# iostat -E sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318404LSUN18G Revision: 4203 Serial No: aaaaa11111 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318203LSUN18G Revision: 034A Serial No: bbbbb22222 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd15 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: TOSHIBA Product: CD-ROM XM-7002Bc Revision: 1110 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0 st4 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: HP Product: C1537A Revision: L007 Serial No: 62
st4が見られるので、テープドライブが認識されていることが確認できる
参考までに、
システム起動後に一度テープにアクセスすると、次のコマンドの出力がstXXからrmt/0に変わる
# iostat -En c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318404LSUN18G Revision: 4203 Serial No: aaaaa11111 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 c0t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST318203LSUN18G Revision: 034A Serial No: bbbbb22222 Size: 18.11GB <18110967808 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 c1t2d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: TOSHIBA Product: CD-ROM XM-7002Bc Revision: 1110 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0 rmt/0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: HP Product: C1537A Revision: L007 Serial No: 62