USBメモリーブート

  • OSインストール先としてのUSBメモリー
    • USBメモリーの製品によって、インストール時間は大幅に違う。遅い製品を使うと、6時間以上かかるようだ。
    • USBメモリー上にOSをインストールすると、OS稼動中は、頻繁なUSBメモリー書き込みが発生する。そこで寿命が心配になるが、以下の記事によれば、USBメモリやメモリカードに使われているコントローラの多くは、ウェアレベリングをサポートしていないそうだ。寿命を考えるなら、ウェアレベリングの実装は必須だろう。
    • 現状、廉価なUSBメモリーでこの用途に向いていると思われるのは、SSD用コントローラー JMF603を搭載したと言われている、シリコンパワー LuxMini 920 である。
    • LuxMini 920 (16GB) 2本のZFSミラー構成で、Solaris 10 5/09 をインストールし、運用中。
      • OSインストール所要時間は、約34分と、非常に速い。
      • OSの操作レスポンスもハードディスク並みかそれ以上で、快適。
      • OS起動時、Check ConditionのWARNINGがsyslogに吐かれるが、特に問題はないようだ。
usba: [ID 912658 kern.info] USB 2.0 device (usb5421,1538) operating at hi speed (USB 2.x) on USB 2.0 root hub: storage@1, scsa2usb0 at bus address 2
usba: [ID 349649 kern.info]       Silicon-Power Luxmini-920 00000000000000000297
genunix: [ID 936769 kern.info] scsa2usb0 is /pci@0,0/pci1734,10e0@1a,7/storage@1
genunix: [ID 408114 kern.info] /pci@0,0/pci1734,10e0@1a,7/storage@1 (scsa2usb0) online
scsi: [ID 193665 kern.info] sd0 at scsa2usb0: target 0 lun 0
genunix: [ID 936769 kern.info] sd0 is /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0
magma scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0 (sd0):
  Check Condition on REQUEST SENSE
genunix: [ID 408114 kern.info] /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0 (sd0) online
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0 (sd0):
  Check Condition on REQUEST SENSE
pcplusmp: [ID 398438 kern.info] pcplusmp: pciclass,0c0320 (ehci) instance #1 vector 0x17 ioapic 0x2 intin 0x17 is bound to cpu 0
npe: [ID 236367 kern.info] PCI Express-device: pci1734,10e0@1d,7, ehci1
genunix: [ID 936769 kern.info] ehci1 is /pci@0,0/pci1734,10e0@1d,7
usba: [ID 912658 kern.info] USB 2.0 device (usb5421,1538) operating at hi speed (USB 2.x) on USB 2.0 root hub: storage@3, scsa2usb1 at bus address 2
usba: [ID 349649 kern.info]       Silicon-Power Luxmini-920 00000000000000000292
genunix: [ID 936769 kern.info] scsa2usb1 is /pci@0,0/pci1734,10e0@1d,7/storage@3
genunix: [ID 408114 kern.info] /pci@0,0/pci1734,10e0@1d,7/storage@3 (scsa2usb1) online
scsi: [ID 193665 kern.info] sd1 at scsa2usb1: target 0 lun 0
genunix: [ID 936769 kern.info] sd1 is /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0 (sd1):
  Check Condition on REQUEST SENSE
genunix: [ID 408114 kern.info] /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0 (sd1) online
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0 (sd1):
  Check Condition on REQUEST SENSE
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0 (sd0):
  Check Condition on REQUEST SENSE
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0 (sd1):
  Check Condition on REQUEST SENSE
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1a,7/storage@1/disk@0,0 (sd0):
  Check Condition on REQUEST SENSE
scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1734,10e0@1d,7/storage@3/disk@0,0 (sd1):
  Check Condition on REQUEST SENSE
genunix: [ID 308332 kern.info] root on rpool/ROOT/s10x_u7wos_08 fstype zfs
  • USBメモリーにOSインストールした場合の注意点
  • USBメモリーの延命対策
    • スワップデバイスの移動
      • USBメモリー上にOSをインストールした場合、デフォルトではスワップデバイスもUSBメモリー上に置かれることになる。スワップデバイスは書き込み頻度が高いと考えられるため、以下の手順でデータ用HDD上などに移すことが望ましい。(ネタ元: スワップデバイスおよびダンプデバイスの ZFS サポート @ docs.sun)
        • # swap -l
        • # zfs create -V 2G -b 4k tank/swap
        • # swap -a /dev/zvol/dsk/tank/swap
        • # swap -d /dev/zvol/dsk/rpool/swap
        • # swap -l
      • 上記手順で問題なく移せることが確認できたら、/dev/vfstabを書き換えて、OS再起動。
    • atimeの無効化
  • USBメモリーへのSolaris10 05/09インストール
    • ソフトウエアグループをエンドユーザーサポートとした場合、iscsi targetの別途追加が必要
    • USBメモリー容量8GBで使用率60%
ファイルシステム      kbytes 使用済み 使用可能 容量      マウント先
rpool/ROOT/s10x_u7wos_08
                     7741440 3364171 2279365    60%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                  878696     352  878344     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                     5643536 3364171 2279365    60%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                  878384      40  878344     1%    /tmp
swap                  878368      24  878344     1%    /var/run
rpool/export         7741440      24 2279365     1%    /export
rpool/export/home    7741440      18 2279365     1%    /export/home
ispool               2873622528      18 2705849663     1%    /ispool
rpool                7741440      35 2279365     1%    /rpool
最終更新:2009年12月13日 03:19
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。