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

NAME

6       aoe-mkdevs - create special device files for aoe driver
7

SYNOPSIS

9       aoe-mkdevs {device-dir}
10       env n_partitions=1 aoe-mkdevs {device-dir}
11

DESCRIPTION

13       The  aoe-mkdevs  command  is deprecated in favor of udev.  Systems with
14       udev do not need to use the aoe-mkdevs or aoe-mkself commands,  because
15       udev will create device nodes as needed.
16
17       Systems  without  udev  use  aoe-mkdevs to create the character special
18       files necessary to control the aoe driver.  The aoe-mkdevs command uses
19       aoe-mkshelf to also create block special files.
20
21       The  aoe  drivers after version 49 support dynamic minor device numbers
22       so that a greater number of devices can be supported.   The  aoe-mkdevs
23       command  is  incompatible  with dynamic device numbers.  If your system
24       lacks udev, and you are using an aoe driver version 50  or  above,  use
25       the  aoe_dyndevs=0  module option to force the aoe driver to use static
26       device numbers.
27
28       If you are not using dynamic device numbers, and  you  built  your  aoe
29       driver  to  support  only  one  partition per device (whole-disk parti‐
30       tions), then the device files must match, and you should use the n_par‐
31       titions environment variable described below.
32
33   Arguments
34       device-dir
35              This  should  be  the  name  of  the directory where the special
36              device files will be created.
37

ENVIRONMENT VARIABLES

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

EXAMPLE

43       In  this  example,  the  root  user on a host named nai creates special
44       files for using the aoe disks in shelf 7.  After remembering  that  the
45       driver  doesn't  have  partition support, this sysadmin gets rid of the
46       mismatching device nodes and calls aoe-mkdevs again  with  n_partitions
47       set to 1.
48
49              nai:~# rm -rf /dev/etherd
50              nai:~# aoe-mkdevs /dev/etherd
51              nai:~# ls /dev/etherd | wc -l
52              1603
53              nai:~# rm -rf /dev/etherd
54              nai:~# n_partitions=1 aoe-mkdevs /dev/etherd
55              nai:~# ls /dev/etherd | wc -l
56              103
57

SEE ALSO

59       aoe-discover(8),  aoe-interfaces(8),  aoe-mkshelf(8), aoe-stat(8), aoe‐
60       tools(8), udev(7).
61

AUTHOR

63       Ed L. Cashin (ecashin@coraid.com)
64
65
66
67                                                                 aoe-mkdevs(8)
Impressum