非同期メッセージング(メッセージ保証あり)構成を利用する場合、データベーススペースを作成するためのRAWデバイスの作成が必要です。ISIをセットアップするサーバマシンに、運用に応じて必要な数のRAWデバイスを作成してください。
RAWデバイスの必要なディスク容量については“1.9.1 ディスク容量の見積り”を参照してください。
データベーススペースの種類 | RAWデバイスの作成 |
|---|---|
ログ管理/テンポラリログファイル用 | 必ず作成してください。 |
RDBディクショナリ用 | |
JMS-Rメッセージ格納DB(システム固有部)用 | |
JMS-Rメッセージ格納DB(ユーザデータ部)用 | |
メッセージ蓄積データベース用 | |
RDBディレクトリ用 | クラスタ運用を行う場合に作成してください。 |
MQDシステム制御用データベーススペース | MQD受信/送信機能を使用する場合に作成してください。 詳細については、“Interstage Application Server MessageQueueDirector説明書”を参照してください。 |
MQDメッセージ格納用データベーススペース |
RAWデバイスの作成方法の例
Solarisの場合
SolarisでRAWデバイスを作成する場合の例です。
以下は、smallモデル用のRAWデバイス(合計約4GB)を作成する例です。以下の例を参考に5種類のRAWデバイスを作成してください。
●ディスク(c0t0d0)上にsmallモデル用のパーティション(合計約4GB)を作成
# format ………formatコマンドを実行
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST340016A cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/ide@d/dad@0,0
Specify disk (enter its number): 0 ………パーティションを作成する装置番号を入力
selecting c0t0d0
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> partition ………partitionを入力
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print ………printを入力
Current partition table (original):
Total disk cylinders available: 19156 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1029 - 11309 20.00GB (10281/0/0) 41946480
1 swap wu 0 - 1028 2.00GB (1029/0/0) 4198320
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition>
※ 37.27GB - 20.00GB - 2.00GB = 15.27GBの空き
partition> 3 ………作成するパーティション番号を入力
Part Tag Flag Cylinders Size Blocks
3 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 11310 …パーティションの開始位置(前のパーティションの直後)を入力
Enter partition size[0b, 0c, 11310e, 0.00mb, 0.00gb]: 129mb …パーティションの容量を入力
partition> print ………printを入力
Current partition table (unnamed):
Total disk cylinders available: 19156 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1029 - 11309 20.00GB (10281/0/0) 41946480
1 swap wu 0 - 1028 2.00GB (1029/0/0) 4198320
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 11310 - 11374 129.49MB (65/0/0) 265200
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> 4 ………作成するパーティション番号を入力
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 11375 …パーティションの開始位置(前のパーティションの直後)を入力
Enter partition size[0b, 0c, 11375e, 0.00mb, 0.00gb]: 100mb …パーティションの容量を入力
partition>
:
※ 以降、上記と同様の操作でパーティションを作成
:
partition> print
Current partition table (unnamed):
Total disk cylinders available: 19156 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1029 - 11309 20.00GB (10281/0/0) 41946480
1 swap wu 0 - 1028 2.00GB (1029/0/0) 4198320
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 11310 - 11374 129.49MB (65/0/0) 265200 …ログ管理用
4 unassigned wm 11375 - 11425 101.60MB (51/0/0) 208080 …ディクショナリ用
5 unassigned wm 11426 - 11427 3.98MB (2/0/0) 8160 …JMS-R用
6 unassigned wm 11428 - 11628 400.43MB (201/0/0) 820080 …JMS-R用
7 unassigned wm 11629 - 13171 3.00GB (1543/0/0) 6295440 …メッセージ蓄積データベース用
partition> quit ………quitを入力
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label ………labelを入力
Ready to label disk, continue? y ………yを入力
format> quit ………quitを入力
# |
Linuxの場合
LinuxでRAWデバイスを作成する場合の例です。
以下は、smallモデル用のRAWデバイス(合計約4GB)を作成する例です。以下の例を参考に5種類のRAWデバイスを作成してください。
注意
OSのユーティリティでパーティションを切り出す場合、ユーティリティで指定したサイズと、実際に切り出されるサイズが若干異なることがあります。
また、複数のパーティションを切り出す場合に、OSのユーティリティにそれぞれ同一のサイズを指定しても、実際に切り出されるパーティションによってサイズが異なることがあります。
そのため、実際に切り出されたパーティションのサイズについては、OSのユーティリティで確認してください。
●パーティションを作成するディスク(/dev/hda)空き容量確認 [root]# unset LANG …………環境変数LANGの削除 [root]# /sbin/parted ………/sbin/partedコマンドを実行 GNU Parted 1.8.1 Using /dev/hda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) unit MB ……………表示単位をMBに変更 (parted) print ………………printを入力 Model: Maxtor 6B200P0 (ide) Disk /dev/hda: 203928MB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.02MB 105MB 105MB fat16 boot 2 105MB 52534MB 52429MB lvm (parted) q ……………………qを入力して終了 ※ 203928 - 52534 = 151394 ……約150GBの空き ●ディスク(/dev/hda)上にsmallモデル用のパーティション(合計約4GB)を作成 [root]# unset LANG …………環境変数LANGの削除 [root]# /sbin/parted ………/sbin/partedコマンドを実行 GNU Parted 1.8.1 Using /dev/hda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) unit MB ……………表示単位をMBに変更 (parted) print ………………printを入力 Model: Maxtor 6B200P0 (ide) Disk /dev/hda: 203928MB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.02MB 105MB 105MB fat16 boot 2 105MB 52534MB 52429MB lvm (parted) mkpart …………………mkpartを入力 Partition name? []? rdbtmp ……パーティション名を入力 File system type? [ext2]?………空エンター Start? 52535MB………………………パーティションの開始位置(前のパーティションの直後)を入力 End? 52671MB…………………………開始位置+136MB(目的の129MBよりも約5%多め)の値を入力 (parted) print………………………printを入力 Model: Maxtor 6B200P0 (ide) Disk /dev/hda: 203928MB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.02MB 105MB 105MB fat16 boot 2 105MB 52534MB 52429MB lvm 3 52535MB 52671MB 136MB rdbtmp ………追加される (parted) mkpart Partition name? []? rdbdic ……パーティション名を入力 File system type? [ext2]?………空エンター Start? 52672MB………………………パーティションの開始位置(前のパーティションの直後)を入力 End? 52777MB…………………………開始位置+105MB(目的の100MBよりも約5%多め)の値を入力 (parted) print………………………printを入力 Model: Maxtor 6B200P0 (ide) Disk /dev/hda: 203928MB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.02MB 105MB 105MB fat16 boot 2 105MB 52534MB 52429MB lvm 3 52535MB 52671MB 136MB rdbtmp 4 52671MB 52777MB 106MB rdbdic ………追加される (parted) : ※ 以降、上記と同様の操作で論理パーティションを作成 : (parted) print Model: Maxtor 6B200P0 (ide) Disk /dev/hda: 203928MB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.02MB 105MB 105MB fat16 boot 2 105MB 52534MB 52429MB lvm 3 52535MB 52671MB 136MB rdbtmp ……ログ管理用 4 52671MB 52777MB 106MB rdbdic ……ディクショナリ用 5 52777MB 52797MB 20MB jmsrsys ……JMS-R用 6 52797MB 53219MB 421MB jmsrdat ……JMS-R用 7 53219MB 56370MB 3151MB msgdb ……メッセージ蓄積データベース用 (parted) ※ 作成したパーティションのディスクラベル名は/dev/hda3~hda7 ●ディスクのパーティションに対応するudevのブロックデバイス名の特定 [root]# ls -l /dev/disk/by-path …………/dev/disk/by-path配下の一覧を確認 total 0 lrwxrwxrwx 1 root root 9 Jun 20 2007 pci-0000:00:1f.1-ide-0:0 -> ../../hda lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part1 -> ../../hda1 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part2 -> ../../hda2 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part3 -> ../../hda3 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part4 -> ../../hda4 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part5 -> ../../hda5 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part6 -> ../../hda6 lrwxrwxrwx 1 root root 10 Jun 20 2007 pci-0000:00:1f.1-ide-0:0-part7 -> ../../hda7 [root]# ※ /dev/hda3のブロックデバイス名は/dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part3となる。 |
[root]# mkdir /dev_symfoware
[root]# cd /dev_symfoware
[root]# ln -s /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part3 raw3
[root]# ln -s /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part4 raw4
[root]# ln -s /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part5 raw5
[root]# ln -s /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part6 raw6
[root]# ln -s /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part7 raw7
[root]# ls -l
total 0
lrwxrwxrwx 1 root root 48 Jun 14 20:37 raw3 -> /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part3
lrwxrwxrwx 1 root root 48 Jun 14 20:37 raw4 -> /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part4
lrwxrwxrwx 1 root root 48 Jun 14 20:38 raw5 -> /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part5
lrwxrwxrwx 1 root root 48 Jun 14 20:38 raw6 -> /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part6
lrwxrwxrwx 1 root root 48 Jun 14 20:38 raw7 -> /dev/disk/by-path/pci-0000:00:1f.1-ide-0:0-part7
[root]#
[root]# LANG=ja_JP.UTF-8;export LANG ………環境変数LANGの設定
※ RAWデバイス名には、ここで作成したシンボリックリンクを指定
(例: /dev_symfoware/raw3) |