ユーザ用ツール

サイト用ツール


サイドバー

solaris:solaris10_03

Solaris 10 設定 svm RAID 5編

準備

VMにSCSI HDD 1.5G x 20 を追加する。

  • RAID 5のボリュームはディスク名d8で作成
  • 作成したボリュームはソフトパーティションで使用する

手順

追加したHDDの確認をformatにて行う。SCSI HDDの場合、devfsadm実行前に認識されていた。

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c0d1 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
       2. c1d1 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
       3. c2t0d0 <DEFAULT cyl 765 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       4. c2t1d0 <DEFAULT cyl 765 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@1,0
(中略)
      21. c3t3d0 <DEFAULT cyl 765 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,790@11/pci15ad,1976@2/sd@3,0
      22. c3t4d0 <DEFAULT cyl 765 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,790@11/pci15ad,1976@2/sd@4,0
Specify disk (enter its number):

領域の確保を行う。/var/tmp/04_fdisk.shを作成して実行する。

#!/bin/sh

fdisk -B /dev/rdsk/c2t0d0p0
fdisk -B /dev/rdsk/c2t1d0p0
fdisk -B /dev/rdsk/c2t2d0p0
fdisk -B /dev/rdsk/c2t3d0p0
fdisk -B /dev/rdsk/c2t4d0p0
fdisk -B /dev/rdsk/c2t5d0p0
fdisk -B /dev/rdsk/c2t6d0p0
fdisk -B /dev/rdsk/c2t8d0p0
fdisk -B /dev/rdsk/c2t9d0p0
fdisk -B /dev/rdsk/c2t10d0p0
fdisk -B /dev/rdsk/c2t11d0p0
fdisk -B /dev/rdsk/c2t12d0p0
fdisk -B /dev/rdsk/c2t13d0p0
fdisk -B /dev/rdsk/c2t14d0p0
fdisk -B /dev/rdsk/c2t15d0p0
fdisk -B /dev/rdsk/c3t0d0p0
fdisk -B /dev/rdsk/c3t1d0p0
fdisk -B /dev/rdsk/c3t2d0p0
fdisk -B /dev/rdsk/c3t3d0p0
fdisk -B /dev/rdsk/c3t4d0p0

04_fidisk.shによるfdiskの実行

# sh /var/tmp/04_fdisk.sh
#

RAID 5ボリュームを作成するために/var/tmp/05_raid5.shを作成する。

#!/bin/sh

metainit -f d8 -r c2t0d0s2 c2t1d0s2 c2t2d0s2 c2t3d0s2 c2t4d0s2 c2t5d0s2 c2t6d0s2 c2t8d0s2 c2t9d0s2 c2t10d0s2 c2t11d0s2 c2t12d0s2 c2t13d0s2 c2t14d0s2 c2t15d0s2 c3t0d0s2 c3t1d0s2 c3t2d0s2 c3t3d0s2 c3t4d0s2

05_raid5.shの実行

# sh /var/tmp/05_raid.sh
d8: RAID is setup
#

metainit実行後、状態の確認を行う。

# metastat d8
d8: RAID
    State: Okay
    Interlace: 32 blocks
    Size: 59371520 blocks (28 GB)
Original device:
    Size: 59373024 blocks (28 GB)
        Device      Start Block  Dbase        State Reloc  Hot Spare
        c2t0d0s2        4426        No         Okay   Yes
        c2t1d0s2        4426        No         Okay   Yes
        c2t2d0s2        4426        No         Okay   Yes
        c2t3d0s2        4426        No         Okay   Yes
        c2t4d0s2        4426        No         Okay   Yes
        c2t5d0s2        4426        No         Okay   Yes
        c2t6d0s2        4426        No         Okay   Yes
        c2t8d0s2        4426        No         Okay   Yes
        c2t9d0s2        4426        No         Okay   Yes
        c2t10d0s2       4426        No         Okay   Yes
        c2t11d0s2       4426        No         Okay   Yes
        c2t12d0s2       4426        No         Okay   Yes
        c2t13d0s2       4426        No         Okay   Yes
        c2t14d0s2       4426        No         Okay   Yes
        c2t15d0s2       4426        No         Okay   Yes
        c3t0d0s2        4426        No         Okay   Yes
        c3t1d0s2        4426        No         Okay   Yes
        c3t2d0s2        4426        No         Okay   Yes
        c3t3d0s2        4426        No         Okay   Yes
        c3t4d0s2        4426        No         Okay   Yes

Device Relocation Information:
Device    Reloc Device ID
c2t0d0    Yes   id1,sd@f1905a80749fd3f31000215c50005
c2t1d0    Yes   id1,sd@f1905a80749fd3f31000698170006
c2t2d0    Yes   id1,sd@f1905a80749fd3f3100096d150007
c2t3d0    Yes   id1,sd@f1905a80749fd3f31000cbe9e0008
c2t4d0    Yes   id1,sd@f1905a80749fd3f3200003d080009
c2t5d0    Yes   id1,sd@f1905a80749fd3f32000379a9000a
c2t6d0    Yes   id1,sd@f1905a80749fd3f3200082588000b
c2t8d0    Yes   id1,sd@f1905a80749fd3f32000af01a000c
c2t9d0    Yes   id1,sd@f1905a80749fd3f32000df168000d
c2t10d0   Yes   id1,sd@f1905a80749fd3f3300008d2f000e
c2t11d0   Yes   id1,sd@f1905a80749fd3f33000277d7000f
c2t12d0   Yes   id1,sd@f1905a80749fd3f33000426590010
c2t13d0   Yes   id1,sd@f1905a80749fd3f33000553a20011
c2t14d0   Yes   id1,sd@f1905a80749fd3f3300070dfc0012
c2t15d0   Yes   id1,sd@f1905a80749fd3f330009826f0013
c3t0d0    Yes   id1,sd@f1905a80749fd3f310000693f0000
c3t1d0    Yes   id1,sd@f1905a80749fd3f31000080720001
c3t2d0    Yes   id1,sd@f1905a80749fd3f31000097280002
c3t3d0    Yes   id1,sd@f1905a80749fd3f310000ad9e0003
c3t4d0    Yes   id1,sd@f1905a80749fd3f310000c71b0004
#
solaris/solaris10_03.txt · 最終更新: 2011/10/18 09:44 by dummy@dummy