aoe-mkshelf.8 1.7 KB

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