background image

GNBD Driver and Command Usage

The Global Network Block Device (GNBD) driver allows a node to export its local storage as a

GNBD over a network so that other nodes on the network can share the storage. Client nodes

importing the GNBD use it like any other block device. Importing a GNBD on multiple clients

forms a shared storage configuration through which GFS can be used.

The GNBD driver is implemented through the following components.

gnbd_serv

— Implements the GNBD server. It is a user-space daemon that allows a node to

export local storage over a network.

gnbd.ko

— Implements the GNBD device driver on GNBD clients (nodes using GNBD

devices).

Two user commands are available to configure GNBD:

gnbd_export

(for servers) — User program for creating, exporting, and managing GNBDs on

a GNBD server.

gnbd_import

(for clients) — User program for importing and managing GNBDs on a GNBD

client.

1. Exporting a GNBD from a Server

The

gnbd_serv

daemon must be running on a node before it can export storage as a GNBD.

You can start the

gnbd_serv

daemon running

gnbd_serv

as follows:

#gnbd_serv

gnbd_serv: startup succeeded

Once local storage has been identified to be exported, the

gnbd_export

command is used to

export it.

Note

When you configure GNBD servers with device-mapper multipath, you must not

use page caching. All GNBDs that are part of a logical volume must run with

caching disabled. By default, the

gnbd_export

command exports with caching

turned off.

Chapter 3.

5

Содержание GNBD WITH GLOBAL FILE SYSTEM 5.2

Страница 1: ...Using GNBD with Global File System Configuration and Administration 5 2 Global_Network_Block_Device ISBN N A Publication date May 2008...

Страница 2: ...This book provides an overview on using Global Network Block Device GNBD with Red Hat GFS for Red Hat Enterprise Linux 5 2 Using GNBD with Global File System...

Страница 3: ...ion of the copyright holder Distribution of the work or derivative of the work in any standard paper book form for commercial purposes is prohibited unless prior permission is obtained from the copyri...

Страница 4: ...Using GNBD with Global File System...

Страница 5: ...Document Conventions viii 1 Using GNBD with Red Hat GFS 1 2 Considerations for Using GNBD with Device Mapper Multipath 3 1 Linux Page Caching 3 2 Fencing GNBD Server Nodes 3 3 GNBD Driver and Command...

Страница 6: ...vi...

Страница 7: ...Documentation For more information about using Red Hat Enterprise Linux refer to the following resources Red Hat Enterprise Linux Installation Guide Provides information regarding installation of Red...

Страница 8: ...edback If you spot a typo or if you have thought of a way to make this manual better we would love to hear from you Please submit a report in Bugzilla http bugzilla redhat com bugzilla against the com...

Страница 9: ...and text found on a graphical interface When shown like this OK it indicates a button on a graphical application interface Additionally the manual uses different strategies to draw your attention to...

Страница 10: ...on indicates an act that would violate your support agreement such as recompiling the kernel Warning A warning indicates potential data loss as may happen when tuning hardware for maximum performance...

Страница 11: ...GNBDs on a GNBD client gnbd_serv A server daemon that allows a node to export local storage over the network Table 1 1 GNBD Software Subsystem Components You can configure GNBD servers to work with de...

Страница 12: ...2...

Страница 13: ...nd Exporting GNBD devices is described in Chapter 3 GNBD Driver and Command Usage 1 Linux Page Caching For GNBD with device mapper multipath do not specify Linux page caching the c option of the gnbd_...

Страница 14: ...4...

Страница 15: ...ing GNBD devices Two user commands are available to configure GNBD gnbd_export for servers User program for creating exporting and managing GNBDs on a GNBD server gnbd_import for clients User program...

Страница 16: ...nbd_export command does not enable caching Note When you configure GNBD servers with device mapper multipath do not specify the c option All GNBDs that are part of a logical volume must run with cachi...

Страница 17: ...evice but are given the same UID data corruption will occur UCommand Gets the UID command The UID command is a command the gnbd_export command will run to get a Universal Identifier for the exported d...

Страница 18: ...Ds When GNBDs are imported device nodes are created for them in dev gnbd with the name assigned when they were exported Usage gnbd_import iServer Server Specifies a GNBD server by hostname or IP addre...

Страница 19: ...ver node must have local access to all storage devices needed to mount a GFS file system The GNBD server node must not import gnbd_import command other GNBD devices to run the file system 2 The GNBD s...

Страница 20: ...10...

Страница 21: ...on a client 8 E exporting from a server daemon 5 F feedback viii viii fencing GNBD server nodes 3 G GFS using on a GNBD server node 9 GNBD using with Red Hat GFS 1 gnbd ko module 5 8 gnbd_export comm...

Страница 22: ...12...

Отзывы: