Linux-HA Logo

DRBDのFAQ

Contents

  1. DRBDのFAQ
  2. 全般的事項
    1. まずはじめに、DRBDとは何ですか?
    2. DRBDのライセンスはどうなっていますか?
    3. DRBDのサポートは受けられますか?
    4. DRBDはどこでダウンロードしたり詳細な情報を得られますか?
  3. インストールと設定
    1. 相互に交換するデータを暗号化または圧縮できますか?
    2. セカンダリをせめてリードオンリーでマウントできませんか?
    3. どうしてDRBDは全ノードへの同時アクセスを許さないのですか?私はGFSやOCFS2を使いたいんですが...
    4. サイズが異なるデバイスを組み合わせて使えますか?
    5. DRBDとXFSはうまく組み合わせられますか?
    6. drbdモジュールをロードしようとすると、次のエラーになります。 compiled for kernel version ''some version'' while this kernel is ''some other version''
    7. DRBDとLVMを組み合わせられますか?
    8. DRBDとLinux-vServerを組み合わせているのですが、"file system in use"というエラーでアンマウントできません。
    9. DRBDとXen、iSCSIの組み合わせについて?
    10. DRBDとOpenVZの組み合わせについて
  4. 操作に関する事項
    1. 同期 (SyncingAll)があまりに遅いのですが
    2. 同期のパフォーマンスを向上させる方法を教えてください。
    3. 書き込み速度を向上させるには?
    4. ロードアベレージが高くなるのはどうしてですか?
    5. heartbeatのdrbddiskスクリプトを使うと、次の警告メッセージが表示されます ''Return code 255 from /etc/ha.d/resource.d/datadisk''
    6. ノード状態をセカンダリからプライマリに切り替えても、プライマリ側でDRBDデバイスがマウントされません。手動のマウントはうまく働きます。
    7. ''out of vmalloc space''というメッセージの意味を教えてください。
    8. /proc/drbdの各フィールド(st、ns、nr、dw、drなど)の意味を教えてください。?

全般的事項

まずはじめに、DRBDとは何ですか?

DRBDのライセンスはどうなっていますか?

DRBDのサポートは受けられますか?

DRBDはどこでダウンロードしたり詳細な情報を得られますか?

インストールと設定

相互に交換するデータを暗号化または圧縮できますか?

セカンダリをせめてリードオンリーでマウントできませんか?

どうしてDRBDは全ノードへの同時アクセスを許さないのですか?私はGFSやOCFS2を使いたいんですが...

サイズが異なるデバイスを組み合わせて使えますか?

DRBDとXFSはうまく組み合わせられますか?

drbdモジュールをロードしようとすると、次のエラーになります。 compiled for kernel version ''some version'' while this kernel is ''some other version''

DRBDとLVMを組み合わせられますか?

DRBDとLinux-vServerを組み合わせているのですが、"file system in use"というエラーでアンマウントできません。

DRBDとXen、iSCSIの組み合わせについて?

DRBDとOpenVZの組み合わせについて

操作に関する事項

同期 (SyncingAll)があまりに遅いのですが

同期のパフォーマンスを向上させる方法を教えてください。

書き込み速度を向上させるには?

ロードアベレージが高くなるのはどうしてですか?

heartbeatのdrbddiskスクリプトを使うと、次の警告メッセージが表示されます ''Return code 255 from /etc/ha.d/resource.d/datadisk''

ノード状態をセカンダリからプライマリに切り替えても、プライマリ側でDRBDデバイスがマウントされません。手動のマウントはうまく働きます。

''out of vmalloc space''というメッセージの意味を教えてください。

For each device, drbd will (try to) allocate X MB of bitmap, plus some constant amount (<1MB). X = storage_size_in_GB/32, so 1 TB storage -> 32 MB bitmap.

By default Linux allocates 128MB to Vmalloc. For systems using more than 4TB, this may cause an issue.

If you get the following error message in /var/log/messages, Try a Linux 2.6 hugemem kernel.

kernel: allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.

/proc/drbdの各フィールド(st、ns、nr、dw、drなど)の意味を教えてください。?

cs
connection state

Unconfigured

Device waits for configuration.

StandAlone

Not trying to connect to peer, IO requests are only passed on locally.

Primary

the active node; may access the device.

Secondary

the passive node; must not access the device; expects mirrored writes from the other node.

Diskless

No storage attached, or storage had IO errors previously and got detached.

Attaching

in the process of attaching the local storage

ns

network send

nr

network receive


References

[1]http://www.drbd.org/publications.html
[2]http://www.linux-ha.org/DRBD
[3]http://www.linux-ha.org/PhilippReisner
[4]http://www.linux-ha.org/LarsEllenberg
[5]http://www.linbit.com/en/drbd/drbd/support/
[6]http://www.linbit.com/support/drbd-current/
[7]http://www.linux-ha.org/RedHat
[8]http://git.drbd.org/
[9]http://sites.inka.de/~bigred/devel/cipe-faq.html
[10]http://openvpn.net/
[11]http://www.linux-ha.org/HaNFS
[12]http://en.wikipedia.org/wiki/OCFS2
[13]http://en.wikipedia.org/wiki/Global_File_System_2
[14]http://git.drbd.org/?p=drbd-8.2.git;a=blob;f=ChangeLog;hb=HEAD
[15]http://thread.gmane.org/gmane.comp.linux.drbd/6175
[16]http://linux-vserver.org/advanced+DRBD+mount+issues
[17]http://lists.xensource.com/archives/html/xen-users/
[18]http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat
[19]http://www.linux-ha.org/UpToDate


This information provided courtesy of the Linux-HA project at http://linux-ha.org/