• 検索結果がありません。

ボリュームグループの移行(HDLM デバ イスから SCSI デバイスへの移行)

ドキュメント内 F03-10.book (ページ 146-151)

(2) HBA

3.15  ボリュームグループの移行(HDLM デバ イスから SCSI デバイスへの移行)

HDLMデバイスでボリュームグループを構築していた場合,SCSIデバイスのデバイス ファイルを指定したボリュームグループに移行してください。

移行手順は,クラスタ構成でない場合とクラスタ構成の場合で異なります。次にそれぞ れの手順を示します。

3.15.1 クラスタ構成でない場合

HDLMデバイスで構成しているボリュームグループを,対応するSCSIデバイスを使用 して再構築する手順を次に説明します。

1. vgdisplay -v ボリュームグループの名称コマンドを実行して,ボリュームグルー プの情報を確認します。

# vgdisplay -v vg10 Volume groups

---VG Name /dev/vg10 VG Write Access read/write VG Status available :

Logical volumes :

Physical volumes

PV Name /dev/dsk/ch16t0d0 PV Status available

Total PE 446 Free PE 196 Autoswitch On

PV Nameがボリュームグループを構成する物理ボリュームを示します。

この例では,ボリュームグループ/dev/vg10は,HDLMデバイス/dev/dsk/

ch16t0d0で構成されています。

2. view -luオペレーションを実行して,HDLMデバイスとSCSIデバイスの対応を確 認します。

# dlnkmgr view -lu

Product : SANRISE1000 SerialNumber : 2334

LUs : 140

iLU HDevName Device PathID Status 0000 ch16t0d0 c16t0d0 000000 Online c19t0d0 000140 Online 0001 ch16t0d1 c16t0d1 000001 Online

c19t0d1 000141 Online 0002 ch16t0d2 c16t0d2 000002 Online c19t0d2 000142 Online 0003 ch16t0d3 c16t0d3 000003 Online c19t0d3 000143 Online :

HDLMデバイス「ch16t0d0」が移行元,SCSIデバイス「c16t0d0」および

「c19t0d0」が移行先です。

3. vgextendコマンドにSCSIデバイスのデバイスファイルを指定して実行し,物理ボ リュームとしてボリュームグループに追加します。

# vgextend /dev/vg10 /dev/dsk/c16t0d0

Volume group "/dev/vg10" has been successfully extended.

Volume Group configuration for /dev/vg10 has been saved in /etc/

lvmconf/vg10.conf

# vgextend /dev/vg10 /dev/dsk/c19t0d0

Current path "/dev/dsk/c16t0d0" is an alternate link, skip.

Volume group "/dev/vg10" has been successfully extended.

Volume Group configuration for /dev/vg10 has been saved in /etc/

lvmconf/vg10.conf

4. vgdisplay -vコマンドを実行して,物理ボリュームにSCSIデバイスが代替リンク として追加されていることを確認します。

# vgdisplay -v vg10 Volume groups

---VG Name /dev/vg10 VG Write Access read/write VG Status available :

Logical volumes

LV Name /dev/vg10/lvol1 :

Physical volumes

PV Name /dev/dsk/ch16t0d0

PV Name /dev/dsk/c16t0d0 Alternate Link PV Name /dev/dsk/c19t0d0 Alternate Link PV Status available

Total PE 446 Free PE 196 Autoswitch On

この例では,SCSIデバイス/dev/dsk/c16t0d0および/dev/dsk/c19t0d0が追 加されています。

5. vgreduceコマンドにHDLMデバイスのデバイスファイルを指定して実行し,ボ リュームグループから削除します。

# vgreduce /dev/vg10 /dev/dsk/ch16t0d0

Device file path "/dev/dsk/ch16t0d0" is an primary link.

Removing primary link and switching to an alternate link.

Volume group "/dev/vg10" has been successfully reduced.

Volume Group configuration for /dev/vg10 has been saved in /etc/

lvmconf/vg10.conf

6. vgdisplay -vコマンドを実行して,HDLMデバイスからSCSIデバイスへ移行でき たことを確認します。

# vgdisplay -v vg10 Volume groups

---VG Name /dev/vg10 VG Write Access read/write VG Status available :

Logical volumes :

Physical volumes

PV Name /dev/dsk/c16t0d0

PV Name /dev/dsk/c19t0d0 Alternate Link PV Status available

Total PE 446 Free PE 196 Autoswitch On

HDLMデバイス/dev/dsk/ch16t0d0が削除されて,SCSIデバイス/dev/dsk/

c16t0d0および/dev/dsk/c19t0d0が残っていれば,移行に成功しています。

7. 一次リンクのSCSIデバイスへのパスがオーナパスであることを確認してください。

オーナパスでない場合,必要に応じてpvchange -sコマンドを実行して,一次リン クをオーナパスに設定してください。次に,代替リンク/dev/dsk/c19t0d0を一次 リンクに設定する場合のコマンドの実行例を示します。

# pvchange -s /dev/dsk/c19t0d0

Physical volume "/dev/dsk/c19t0d0" has been successfully changed.

Volume Group configuration for /dev/vg10 has been saved in /etc/

lvmconf/vg10.conf

3.15.2 クラスタ構成の場合

ホスト間で共有されているHDLMデバイスで構成されているボリュームグループを,対 応するSCSIデバイスのデバイスファイルを指定して再構成する手順を説明します。ク ラスタを構成するすべてのホストに対して次の手順を実行してください。

(1) ServiceGuard または Oracle RAC の場合

ボリュームグループは,同時には一つのホストでしか活性化できません。vgchange -a yコマンドを実行しても,ホスト間で共有されているボリュームグループは活性化でき ません。このため,まずcmrunclコマンドを実行してServiceGuard,またはOracle

RACを起動します。このとき,該当するボリュームグループを使用しているパッケージ が起動されている場合は,cmhaltpkgコマンドを実行してそのパッケージを停止しま す。そのあと,vgchange -a eコマンドを実行してボリュームグループを排他モード で活性化します。

次に手順を示します。

1. cmrunclコマンドを実行して,ボリュームグループを活性化します。

# cmruncl -v

Successfully started $SGLBIN/cmcld on haneda.

Successfully started $SGLBIN/cmcld on kanku.

cmruncl : Waiting for cluster to form...

cmruncl : Cluster successfully formed.

cmruncl : Check the syslog files on all nodes in the cluster cmruncl : to verify that no warnings occurred during startup.

2. cmviewclコマンドを実行して,起動しているパッケージを確認します。

# cmviewcl

CLUSTER STATUS cluster25 up

NODE STATUS STATE kanku up running

PACKAGE STATUS STATE AUTO_RUN NODE pkg25 up running enabled kanku

この例では,パッケージ「pkg25」が起動しています。

3. 起動しているパッケージがある場合,cmhaltpkgコマンドを実行して,パッケージ を終了させます。

パッケージ「pkg25」を終了させる場合のコマンドの実行例を,次に示します。

# cmhaltpkg pkg25

cmhaltpkg : Completed successfully on all packages specified.

4. vgchange -a eコマンドを実行して,ボリュームグループを排他モードで活性化し ます。

# vgchange -a e /dev/vg10

Activated volume group in Exclusive Mode.

Volume group "/dev/vg10" has been successfully changed.

5. ボリュームグループを移行します。

「3.15.1 クラスタ構成でない場合」の手順に従って,SCSIデバイスのデバイスファ イルを指定したボリュームグループへ移行してください。

6. vgchange -a nコマンドを実行して,ボリュームグループを非活性化します。

# vgchange -a n /dev/vg10

Volume group "/dev/vg10" has been successfully changed.

(2) HA モニタの場合

ボリュームグループは,同時には一つのホストでしか活性化できません。vgchange -a yコマンドを実行して共有されているボリュームグループを活性化します。

次に手順を示します。

1. vgchangeコマンドを実行して,ボリュームグループを活性化します。

# vgchange -a y /dev/vg10 Activated volume group

Volume group "/dev/vg10" has been successfully changed.

2. ボリュームグループを移行します。

「3.15.1 クラスタ構成でない場合」の手順に従って,SCSIデバイスのデバイスファ イルを指定したボリュームグループへ移行してください。

3. vgchange -a nコマンドを実行して,ボリュームグループを非活性化します。

# vgchange -a n /dev/vg10

Volume group "/dev/vg10" has been successfully changed.

3.16 IVM 環境から HDLM をアンインストール

ドキュメント内 F03-10.book (ページ 146-151)