Importing A Gnbd On A Client - Red Hat ENTERPRISE LINUX 5 - GLOBAL NETWORK BLOCK DEVICE Use Manual

Using gnbd with red hat global file system
Hide thumbs Also See for ENTERPRISE LINUX 5 - GLOBAL NETWORK BLOCK DEVICE:
Table of Contents

Advertisement

-U Command
Gets the UID command. The UID command is a command the gnbd_export command will run
to get a Universal Identifier for the exported device. The UID is necessary to use device-mapper
multipath with GNBD. The command must use the full path of any executeable that you wish to
run. A command can contain the %M, %m or %n escape sequences. %M will be expanded to the
major number of the exported device, %m will be expaned to the minor number of the exported
device, and %n will be expanded to the sysfs name for the device. If no command is given,
GNBD will use the default command /usr/sbin/gnbd_get_uid. This command will work for
most SCSI devices.
Examples
This example is for a GNBD server configured with GNBD multipath. It exports device /dev/sdc2 as
GNBD gamma. Cache is disabled by default.
gnbd_export -d /dev/sdc2 -e gamma -U
This example is for a GNBD server not configured with GNBD multipath. It exports device /dev/sdb2
as GNBD delta with cache enabled.
gnbd_export -d /dev/sdb1 -e delta -c
This example exports device /dev/sdb2 as GNBD delta with cache enabled.
gnbd_export -d /dev/sdb2 -e delta -c

3.2. Importing a GNBD on a Client

The gnbd.ko kernel module must be loaded on a node before it can import GNBDs. When GNBDs
are imported, device nodes are created for them in /dev/gnbd/ with the name assigned when they
were exported.
Usage
gnbd_import -i Server
Server
Specifies a GNBD server by hostname or IP address from which to import GNBDs. All GNBDs
exported from the server are imported on the client running this command.
Example
This example imports all GNBDs from the server named nodeA.
Examples
7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 5 - GLOBAL NETWORK BLOCK DEVICE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents