1aoe-mkshelf(8)              System Manager's Manual             aoe-mkshelf(8)
2
3
4

NAME

6       aoe-mkshelf - create special device files for one shelf address
7

SYNOPSIS

9       aoe-mkshelf {device-dir} {shelf-address}
10       env n_partitions=1 aoe-mkshelf {device-dir} {shelf-address}
11

DESCRIPTION

13       The  aoe-mkshelf  command  uses mknod to create the block special files
14       necessary to access the AoE devices with the given shelf address.
15
16       If your aoe driver supports only one partition per  device  (whole-disk
17       partitions),  then  the device files must match, and you should use the
18       n_partitions environment variable described below.
19
20   Arguments
21       device-dir
22              This should be the name of the directory where the block  device
23              files will be created.
24
25       shelf-address
26              This  is  the  AoE major address, or shelf address, for which to
27              create device nodes.  For example, specifying a shelf address of
28              1  means  that  the e1.* device nodes will be created in device-
29              dir.
30

ENVIRONMENT VARIABLES

32       If the n_partitions variable is set in the environment, it  will  over‐
33       ride the default number of partitions per aoe disk, namely 16.
34

EXAMPLE

36       In  this  example,  the  root  user on a host named nai creates special
37       files for using the aoe disks in shelf 7.  Then he remembers  that  the
38       driver  doesn't  have partition support, so the command is called again
39       with n_partitions set to 1.
40
41              nai:~# aoe-mkshelf /dev/etherd 7
42              nai:~# ls /dev/etherd/e7.* | wc -l
43              160
44              nai:~# rm /dev/etherd/e7.*
45              nai:~# n_partitions=1 aoe-mkshelf /dev/etherd 7
46              nai:~# ls /dev/etherd/e7.* | wc -l
47              10
48              nai:~#
49

SEE ALSO

51       aoe-discover(8), aoe-interfaces(8), aoe-mkdevs(8), aoe-stat(8).
52

AUTHOR

54       Ed L. Cashin (ecashin@coraid.com)
55
56
57
58                                                                aoe-mkshelf(8)
Impressum