1
0

aoe-mkdevs.8 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .TH aoe-mkdevs 8
  2. .SH NAME
  3. aoe-mkdevs \- create special device files for aoe driver
  4. .SH SYNOPSIS
  5. .nf
  6. .B aoe-mkdevs {device-dir}
  7. .B env n_partitions=1 aoe-mkdevs {device-dir}
  8. .fi
  9. .SH DESCRIPTION
  10. The
  11. .I aoe-mkdevs
  12. command uses mknod to create the character special files necessary to
  13. control the aoe driver. It also uses
  14. .I aoe-mkshelf
  15. to create block special files.
  16. .PP
  17. If your aoe driver supports only one partition per device (whole-disk
  18. partitions), then the device files must match, and you should use the
  19. .I n_partitions
  20. environment variable described below.
  21. .SS Arguments
  22. .TP
  23. \fBdevice-dir\fP
  24. This should be the name of the directory where the special device files
  25. will be created.
  26. .SH ENVIRONMENT VARIABLES
  27. If the
  28. .I n_partitions
  29. variable is set in the environment, it will override the default
  30. number of partitions per aoe disk, namely 16.
  31. .SH EXAMPLE
  32. In this example, the root user on a host named
  33. .I nai
  34. creates special files for using the aoe disks in shelf 7. After
  35. remembering that the driver doesn't have partition support, this
  36. sysadmin gets rid of the mismatching device nodes and calls
  37. \fIaoe-mkdevs\fP again with \fIn_partitions\fP set to 1.
  38. .IP
  39. .EX
  40. nai:~# rm -rf /dev/etherd
  41. nai:~# aoe-mkdevs /dev/etherd
  42. nai:~# ls /dev/etherd | wc -l
  43. 1603
  44. nai:~# rm -rf /dev/etherd
  45. nai:~# n_partitions=1 aoe-mkdevs /dev/etherd
  46. nai:~# ls /dev/etherd | wc -l
  47. 103
  48. .EE
  49. .LP
  50. .SH "SEE ALSO"
  51. .IR aoe-discover (8),
  52. .IR aoe-interfaces (8),
  53. .IR aoe-mkshelf (8),
  54. .IR aoe-stat (8).
  55. .SH AUTHOR
  56. Ed L. Cashin (ecashin@coraid.com)