LINBIT / linstor-client

Python client for LINSTOR
https://docs.linbit.com/docs/linstor-guide/
GNU General Public License v3.0
22 stars 10 forks source link

linstor rd sp -h: Help did not list all usable keys #37

Closed ggzengel closed 4 years ago

ggzengel commented 4 years ago

These keys are missing:

DrbdOptions/Net/allow-two-primaries DrbdOptions/Resource/on-no-quorum DrbdOptions/Resource/quorum

Perhaps there more keys missing ?

# rd sp -h
  key         'StorPoolName': Linstor storage pool name to use.
              'StorPoolNameDrbdMeta': Linstor storage pool name to use.
              'PeerSlotsNewResource': DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future
              'FileSystem/MkfsParams': Additional parameters for the mkfs command
              'sys/fs/blkio_throttle_read': Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device
              'sys/fs/blkio_throttle_write': Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
              'DrbdOptions/auto-quorum': Enables automatic setting of the 'quroum' and 'on-no-quroum' property
              'DrbdOptions/auto-add-quorum-tiebreaker': Enables automatic management (creation and deletion) of tie breaking resource
              'Writecache/PoolName': Linstor storage pool name for writecache
              'Writecache/Size': Size of the writecache in % (0-100) or KiB otherwise
              'Writecache/Blocksize': 4096 is recommended; the maximum block size is the page size
              'Writecache/Options/StartSector': offset from the start of cache device in 512-byte sectors
              'Writecache/Options/HighWatermark': start writeback when the number of used blocks reach this watermark
              'Writecache/Options/LowWatermark': stop writeback when the number of used blocks drops below this watermark
              'Writecache/Options/WritebackJobs': limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests
              'Writecache/Options/AutocommitBlocks': when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited
              'Writecache/Options/AutocommitTime': autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received
              'Writecache/Options/Fua': "On" results in "fua" as argument, whereas the value "Off" results in "nofua" argument
              'Writecache/Options/Additional': Additional arguments passed through
              'Cache/OpMode': Operation mode
              'Cache/MetaPool': Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property
              'Cache/Metasize': Size of the cache in % (0-100) or KiB otherwise.
              'Cache/CachePool': Name of the storage pool used for the cache cache device
              'Cache/Metasize': Size of the cache in % (0-100) or KiB otherwise.
              'Cache/Blocksize': Block size
              'Cache/Policy': Replacemant policy
# rd lp vm-310-disk-2 
┊ DrbdOptions/Net/allow-two-primaries ┊ yes        ┊
┊ DrbdOptions/Resource/on-no-quorum   ┊ suspend-io ┊
┊ DrbdOptions/Resource/quorum         ┊ off        ┊
┊ DrbdPrimarySetOn                    ┊ PX2        ┊
rp- commented 4 years ago

The properties you are missing are usually set via the drbd-options command that is why they are missing from the set-property command.

ggzengel commented 4 years ago

Here https://www.linbit.com/drbd-user-guide/linstor-guide-1_0-en/ I found this:

2.9. Setting options for resources DRBD options are set using LINSTOR commands.